summaryrefslogtreecommitdiff
path: root/lib_arm/board.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-07-24 23:38:38 +0000
committerwdenk <wdenk>2003-07-24 23:38:38 +0000
commit27b207fd0a0941b03f27e2a82c0468b1a090c745 (patch)
tree4d339d7a2a00889f09a876425ce430be57de56e9 /lib_arm/board.c
parent2535d60277cc295adf75cd5721dcecd840c69a63 (diff)
downloadu-boot-imx-27b207fd0a0941b03f27e2a82c0468b1a090c745.zip
u-boot-imx-27b207fd0a0941b03f27e2a82c0468b1a090c745.tar.gz
u-boot-imx-27b207fd0a0941b03f27e2a82c0468b1a090c745.tar.bz2
* 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)
Diffstat (limited to 'lib_arm/board.c')
-rw-r--r--lib_arm/board.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib_arm/board.c b/lib_arm/board.c
index 5192e64..eebf5e4 100644
--- a/lib_arm/board.c
+++ b/lib_arm/board.c
@@ -29,7 +29,6 @@
#include <command.h>
#include <malloc.h>
#include <devices.h>
-#include <syscall.h>
#include <version.h>
#include <net.h>
@@ -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 */