Skip to content
  • Bin Meng's avatar
    x86: Fix up PIRQ routing table checksum earlier · 10d569ea
    Bin Meng authored
    
    
    PIRQ routing table checksum is fixed up in copy_pirq_routing_table(),
    which is fine if we only write the configuration table once. But with
    the SeaBIOS case, when we write the table for the second time, the
    checksum will be fixed up to zero per the checksum algorithm, which
    is caused by the checksum field not being zero before fix up, since
    the checksum has already been calculated in the first run.
    
    To fix this, move the checksum fixup to create_pirq_routing_table(),
    so that copy_pirq_routing_table() only does what its function name
    suggests: copy the table to somewhere else.
    
    Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
    Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
    10d569ea