x86 SMM: Replace weak prototypes with weak function stub
Change-Id: I682617cd2f4310d3e2e2ab6ffec51def28a4779c Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/7961 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@google.com> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
@@ -41,8 +41,7 @@ static void hudson_apmc_smi_handler(void)
|
||||
break;
|
||||
}
|
||||
|
||||
if (mainboard_smi_apmc)
|
||||
mainboard_smi_apmc(cmd);
|
||||
mainboard_smi_apmc(cmd);
|
||||
}
|
||||
|
||||
int southbridge_io_trap_handler(int smif)
|
||||
@@ -66,8 +65,7 @@ static void process_gpe_smi(void)
|
||||
/* Only Bits [23:0] indicate GEVENT SMIs. */
|
||||
if (status & gevent_mask) {
|
||||
/* A GEVENT SMI occurred */
|
||||
if (mainboard_smi_gpi)
|
||||
mainboard_smi_gpi(status & gevent_mask);
|
||||
mainboard_smi_gpi(status & gevent_mask);
|
||||
}
|
||||
|
||||
/* Clear events to prevent re-entering SMI if event isn't handled */
|
||||
|
@@ -41,8 +41,7 @@ static void hudson_apmc_smi_handler(void)
|
||||
break;
|
||||
}
|
||||
|
||||
if (mainboard_smi_apmc)
|
||||
mainboard_smi_apmc(cmd);
|
||||
mainboard_smi_apmc(cmd);
|
||||
}
|
||||
|
||||
int southbridge_io_trap_handler(int smif)
|
||||
@@ -66,8 +65,7 @@ static void process_gpe_smi(void)
|
||||
/* Only Bits [23:0] indicate GEVENT SMIs. */
|
||||
if (status & gevent_mask) {
|
||||
/* A GEVENT SMI occured */
|
||||
if (mainboard_smi_gpi)
|
||||
mainboard_smi_gpi(status & gevent_mask);
|
||||
mainboard_smi_gpi(status & gevent_mask);
|
||||
}
|
||||
|
||||
/* Clear events to prevent re-entering SMI if event isn't handled */
|
||||
|
Reference in New Issue
Block a user