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_arm/board.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'lib_arm/board.c') diff --git a/lib_arm/board.c b/lib_arm/board.c index 5192e649dd7..eebf5e40dd7 100644 --- a/lib_arm/board.c +++ b/lib_arm/board.c @@ -29,7 +29,6 @@ #include #include #include -#include #include #include @@ -212,7 +211,7 @@ void start_armboot (void) /* 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)); gd->bd = &bd_data; memset (gd->bd, 0, sizeof (bd_t)); @@ -287,10 +286,7 @@ void start_armboot (void) devices_init (); /* get the devices list going. */ - /* Syscalls are not implemented for ARM. But allocating - * this allows the console_init routines to work without #ifdefs - */ - syscall_tbl = (void **) malloc (NR_SYSCALLS * sizeof (void *)); + jumptable_init (); console_init_r (); /* fully init console as a device */ -- cgit v1.2.3