From 27b207fd0a0941b03f27e2a82c0468b1a090c745 Mon Sep 17 00:00:00 2001 From: wdenk Date: Thu, 24 Jul 2003 23:38:38 +0000 Subject: * Implement new mechanism to export U-Boot's functions to standalone applications: instead of using (PPC-specific) system calls we now use a jump table; please see doc/README.standalone for details * Patch by Dave Westwood, 24 Jul 2003: added support for Unity OS (a proprietary OS) --- lib_mips/board.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'lib_mips') diff --git a/lib_mips/board.c b/lib_mips/board.c index 11e5011e70..3c8a2d2d24 100644 --- a/lib_mips/board.c +++ b/lib_mips/board.c @@ -25,7 +25,6 @@ #include #include #include -#include #include #include #include @@ -189,7 +188,7 @@ void board_init_f(ulong bootflag) /* Pointer is writable since we allocated a register for it. */ gd = &gd_data; - memset (gd, 0, sizeof (gd_t)); + memset ((void *)gd, 0, sizeof (gd_t)); for (init_fnc_ptr = init_sequence; *init_fnc_ptr; ++init_fnc_ptr) { if ((*init_fnc_ptr)() != 0) { @@ -278,7 +277,7 @@ void board_init_f(ulong bootflag) bd->bi_memsize = gd->ram_size; /* size of DRAM memory in bytes */ bd->bi_baudrate = gd->baudrate; /* Console Baudrate */ - memcpy (id, gd, sizeof (gd_t)); + memcpy (id, (void *)gd, sizeof (gd_t)); /* On the purple board we copy the code in a special way * in order to solve flash problems @@ -393,8 +392,7 @@ void board_init_r (gd_t *id, ulong dest_addr) /* Initialize devices */ devices_init (); - /* allocate syscalls table (console_init_r will fill it in */ - syscall_tbl = (void **) malloc (NR_SYSCALLS * sizeof (void *)); + jumptable_init (); /* Initialize the console (after the relocation and devices init) */ console_init_r (); -- cgit v1.2.1