summaryrefslogtreecommitdiff
path: root/lib_i386/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_i386/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_i386/board.c')
-rw-r--r--lib_i386/board.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/lib_i386/board.c b/lib_i386/board.c
index a53fa99..b26d3d5 100644
--- a/lib_i386/board.c
+++ b/lib_i386/board.c
@@ -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;
@@ -316,13 +305,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 */