#include <device/pnp_def.h>
#include <arch/romcc_io.h>
#include <arch/hlt.h>
-#include "pc80/mc146818rtc_early.c"
-#include "pc80/serial.c"
-#include "console/console.c"
-#include "lib/ramtest.c"
+#include <pc80/mc146818rtc.h>
+#include <console/console.h>
#include "cpu/x86/bist.h"
-//#include "lib/delay.c"
void setup_pars(void)
{
int i;
};
-static inline int spd_read_byte(unsigned device, unsigned address)
-{
-// return smbus_read_byte(device, address);
-}
-
-//#include "lib/generic_sdram.c"
+static int spd_read_byte(unsigned device, unsigned address) { }
static inline void dumpmem(void){
int i, j;
// while(1)
print_err("STATIC MEM DONE\n");
- outb(0xee, 0x80);
+ post_code(0xee);
print_err("loop forever ...\n");
#if 0
dump_pci_device(PCI_DEV(0, 0, 0));
#endif
-#if 0
- print_err("RAM CHECK!\n");
- // Check 16MB of memory @ 0
- ram_check(0x00000000, 0x01000000);
-#endif
-#if 0
- print_err("RAM CHECK for 32 MB!\n");
- // Check 32MB of memory @ 0
- ram_check(0x00000000, 0x02000000);
-#endif
#if 1
{
volatile unsigned char *src = (unsigned char *) 0x2000000 + 0x60000;
*dst = *src;
//print_err(" dst is now "); print_err_hex32(*dst); print_err("\n");
dst++, src++;
- outb((unsigned char)i, 0x80);
+ post_code(i & 0xff);
}
}
dumpmem();
- outb(0, 0x80);
+ post_code(0x00);
+
print_err("loop forever\n");
- outb(0xdd, 0x80);
+ post_code(0xdd);
__asm__ volatile(
"movl %0, %%edi\n\t"
"jmp *%%edi\n\t"
while(1);
#endif
}
-