Changeset 5141


Ignore:
Timestamp:
Feb 22, 2010, 9:32:33 AM (6 years ago)
Author:
stepan
Message:

mini update SMM:

  • allow northbridge and cpu handlers, too
  • support for older rev 2 cpus

Signed-off-by: Stefan Reinauer <stepan@…>
Acked-by: Stefan Reinauer <stepan@…>

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/cpu/x86/smm/smihandler.c

    r4840 r5141  
    119119
    120120        switch (smm_revision) {
     121        case 0x00030002:
    121122        case 0x00030007:
    122123                state_save.type = LEGACY;
     
    146147         * add a CPU or northbridge specific SMI handler, too
    147148         */
    148 
    149         southbridge_smi_handler(node, &state_save);
     149        if (cpu_smi_handler)
     150                cpu_smi_handler(node, &state_save);
     151        if (northbridge_smi_handler)
     152                northbridge_smi_handler(node, &state_save);
     153        if (southbridge_smi_handler)
     154                southbridge_smi_handler(node, &state_save);
    150155
    151156        smi_release_lock();
  • trunk/src/include/cpu/x86/smm.h

    r5127 r5141  
    255255int mainboard_io_trap_handler(int smif);
    256256
    257 void southbridge_smi_handler(unsigned int node, smm_state_save_area_t *state_save);
    258 
     257void __attribute__((weak)) cpu_smi_handler(unsigned int node, smm_state_save_area_t *state_save);
     258void __attribute__((weak)) northbridge_smi_handler(unsigned int node, smm_state_save_area_t *state_save);
     259void __attribute__((weak)) southbridge_smi_handler(unsigned int node, smm_state_save_area_t *state_save);
     260
Note: See TracChangeset for help on using the changeset viewer.