]> git.sur5r.net Git - u-boot/blobdiff - lib_i386/board.c
new 405ep defines added
[u-boot] / lib_i386 / board.c
index 5d1c1fb5fc981407ffa810e4666be88a5c76cce3..a1808142e0a1af6eeb02de5fc5f485497f9581d1 100644 (file)
@@ -34,7 +34,6 @@
 #include <devices.h>
 #include <version.h>
 #include <malloc.h>
-#include <syscall.h>
 #include <net.h>
 #include <ide.h>
 #include <asm/u-boot-i386.h>
@@ -129,16 +128,6 @@ char *strmhz (char *buf, long hz)
  * or dropped completely,
  * but let's get it working (again) first...
  */
-static void syscalls_init (void)
-{
-       syscall_tbl[SYSCALL_MALLOC] = (void *) malloc;
-       syscall_tbl[SYSCALL_FREE] = (void *) free;
-
-       syscall_tbl[SYSCALL_INSTALL_HDLR] = (void *) irq_install_handler;
-       syscall_tbl[SYSCALL_FREE_HDLR] = (void *) irq_free_handler;
-
-}
-
 static int init_baudrate (void)
 {
        DECLARE_GLOBAL_DATA_PTR;
@@ -255,6 +244,8 @@ void start_i386boot (void)
        show_boot_progress(0x21);
 
        gd = global_data = &gd_data;
+       /* compiler optimization barrier needed for GCC >= 3.4 */
+       __asm__ __volatile__("": : :"memory");
 
        memset (gd, 0, sizeof (gd_t));
        gd->bd = &bd_data;
@@ -316,13 +307,10 @@ void start_i386boot (void)
 
        devices_init ();
 
-       /* allocate syscalls table (console_init_r will fill it in */
-       syscall_tbl = (void **) malloc (NR_SYSCALLS * sizeof (void *));
-       memset(syscall_tbl, 0, NR_SYSCALLS * sizeof (void *));
+       jumptable_init ();
 
        /* Initialize the console (after the relocation and devices init) */
        console_init_r();
-       syscalls_init();
 
 #ifdef CONFIG_MISC_INIT_R
        /* miscellaneous platform dependent initialisations */
@@ -418,10 +406,6 @@ void start_i386boot (void)
 
 #ifdef CONFIG_POST
        post_run (NULL, POST_RAM | post_bootmode_get(0));
-       if (post_bootmode_get(0) & POST_POWERFAIL) {
-               post_bootmode_clear();
-               board_poweroff();
-       }
 #endif