diff options
author | Jordan Crouse <jordan.crouse@amd.com> | 2007-05-10 18:32:28 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2007-05-10 18:32:28 +0000 |
commit | 9934b813da2556ab8159cfc13fb993ae98b04db4 (patch) | |
tree | b5dfde66ae2d7694b4cc16799fa496f28e220059 /src/cpu/amd/model_lx/model_lx_init.c | |
parent | f8030bd9245f2f6fb7418595d58dc4326f6621f3 (diff) | |
download | coreboot-9934b813da2556ab8159cfc13fb993ae98b04db4.tar.xz |
Fix the indent and whitespace to match LinuxBIOS standards
Signed-off-by: Jordan Crouse <jordan.crouse@amd.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2650 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/cpu/amd/model_lx/model_lx_init.c')
-rw-r--r-- | src/cpu/amd/model_lx/model_lx_init.c | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/src/cpu/amd/model_lx/model_lx_init.c b/src/cpu/amd/model_lx/model_lx_init.c index 1cdfda8e54..9e6a1cf558 100644 --- a/src/cpu/amd/model_lx/model_lx_init.c +++ b/src/cpu/amd/model_lx/model_lx_init.c @@ -33,12 +33,9 @@ static void vsm_end_post_smi(void) { - __asm__ volatile ( - "push %ax\n" + __asm__ volatile ("push %ax\n" "mov $0x5000, %ax\n" - ".byte 0x0f, 0x38\n" - "pop %ax\n" - ); + ".byte 0x0f, 0x38\n" "pop %ax\n"); } static void model_lx_init(device_t dev) @@ -55,23 +52,23 @@ static void model_lx_init(device_t dev) vsm_end_post_smi(); // Set gate A20 (legacy vsm disables it in late init) - printk_debug("A20 (0x92): %d\n",inb(0x92)); - outb(0x02,0x92); - printk_debug("A20 (0x92): %d\n",inb(0x92)); + printk_debug("A20 (0x92): %d\n", inb(0x92)); + outb(0x02, 0x92); + printk_debug("A20 (0x92): %d\n", inb(0x92)); printk_debug("CPU model_lx_init DONE\n"); }; static struct device_operations cpu_dev_ops = { - .init = model_lx_init, + .init = model_lx_init, }; static struct cpu_device_id cpu_table[] = { - { X86_VENDOR_AMD, 0x05A2 }, - { 0, 0 }, + {X86_VENDOR_AMD, 0x05A2}, + {0, 0}, }; static struct cpu_driver driver __cpu_driver = { - .ops = &cpu_dev_ops, + .ops = &cpu_dev_ops, .id_table = cpu_table, }; |