In 2007 Adrian Reber suggested that we drop ASSEMBLY in favor of __ASSEMBLER__.
[coreboot.git] / src / mainboard / supermicro / h8dme / ap_romstage.c
index 2f7c723624c4162f547a0cab7d09aeb98aea573a..ebd0305bf978cb38077426a16a17b201baa3a027 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#define ASSEMBLY 1
-#define __PRE_RAM__
-
-#define SET_NB_CFG_54 1
-
 #define K8_REV_F_SUPPORT_F0_F1_WORKAROUND 0
 
 #include <stdint.h>
 #include <arch/romcc_io.h>
 #include <cpu/x86/lapic.h>
 #include <pc80/mc146818rtc.h>
-#include "pc80/serial.c"
 
 #include "console/console.c"
 #include "lib/uart8250.c"
 #include "console/vtxprintf.c"
-#include "./arch/i386/lib/printk_init.c"
+#include "./arch/x86/lib/printk_init.c"
 
 #include <cpu/amd/model_fxx_rev.h>
 #include "northbridge/amd/amdk8/raminit.h"
@@ -84,17 +78,14 @@ void hardwaremain(int ret_addr)
        train_ram(id.nodeid, sysinfo, sysinfox);
 
        /*
-               go back, but can not use stack any more, because we only keep ret_addr and can not restore esp, and ebp
-       */
+        * go back, but can not use stack any more, because we only keep ret_addr and can not restore esp, and ebp
+        */
 
         __asm__ volatile (
                 "movl  %0, %%edi\n\t"
                 "jmp     *%%edi\n\t"
                 :: "a"(ret_addr)
         );
-
-
-
 }
 
 #include <arch/registers.h>
@@ -106,4 +97,3 @@ void x86_exception(struct eregs *info)
         } while(1);
 }
 
-