diff options
Diffstat (limited to 'src/mainboard/amd')
-rw-r--r-- | src/mainboard/amd/serengeti_cheetah/apc_auto.c | 10 | ||||
-rw-r--r-- | src/mainboard/amd/serengeti_cheetah_fam10/acpi_tables.c | 2 | ||||
-rw-r--r-- | src/mainboard/amd/serengeti_cheetah_fam10/apc_auto.c | 10 |
3 files changed, 5 insertions, 17 deletions
diff --git a/src/mainboard/amd/serengeti_cheetah/apc_auto.c b/src/mainboard/amd/serengeti_cheetah/apc_auto.c index c8723e6fbf..a855c2fd39 100644 --- a/src/mainboard/amd/serengeti_cheetah/apc_auto.c +++ b/src/mainboard/amd/serengeti_cheetah/apc_auto.c @@ -102,14 +102,8 @@ void hardwaremain(int ret_addr) } -struct eregs { - uint32_t eax, ecx, edx, ebx, esp, ebp, esi, edi; - uint32_t vector; - uint32_t error_code; - uint32_t eip; - uint32_t cs; - uint32_t eflags; -}; + +#include <arch/registers.h> void x86_exception(struct eregs *info) { diff --git a/src/mainboard/amd/serengeti_cheetah_fam10/acpi_tables.c b/src/mainboard/amd/serengeti_cheetah_fam10/acpi_tables.c index 184735b104..f6741b9ec9 100644 --- a/src/mainboard/amd/serengeti_cheetah_fam10/acpi_tables.c +++ b/src/mainboard/amd/serengeti_cheetah_fam10/acpi_tables.c @@ -43,7 +43,7 @@ static void dump_mem(u32 start, u32 end) printk_debug(" %02x", (unsigned char)*((unsigned char *)i)); } print_debug("\n"); - } +} #endif extern u8 AmlCode[]; diff --git a/src/mainboard/amd/serengeti_cheetah_fam10/apc_auto.c b/src/mainboard/amd/serengeti_cheetah_fam10/apc_auto.c index 69e3ffbb9d..ea7e2a6b29 100644 --- a/src/mainboard/amd/serengeti_cheetah_fam10/apc_auto.c +++ b/src/mainboard/amd/serengeti_cheetah_fam10/apc_auto.c @@ -96,14 +96,8 @@ void hardwaremain(int ret_addr) } -struct eregs { - u32 eax, ecx, edx, ebx, esp, ebp, esi, edi; - u32 vector; - u32 error_code; - u32 eip; - u32 cs; - u32 eflags; -}; + +#include <arch/registers.h> void x86_exception(struct eregs *info) { |