Files
openbios/libopenbios/init.c
Mark Cave-Ayland 1b273803c2 The new loader APIs in libopenbios already have routines to detect the type of executable at a given address and react
accordingly. Hence since the loaders are currently written in C, it makes more sense to drop down into C and re-use the same 
code rather than have a second implementation in Forth.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@726 f158a5a8-5612-0410-a976-696ce0be7e32
2010-04-02 13:01:10 +00:00

28 lines
642 B
C

/*
* Creation Date: <2010/04/02 12:00:00 mcayland>
* Time-stamp: <2010/04/02 12:00:00 mcayland>
*
* <init.c>
*
* OpenBIOS intialization
*
* Copyright (C) 2010 Mark Cave-Ayland (mark.cave-ayland@siriusit.co.uk)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2
*
*/
#include "config.h"
#include "libopenbios/openbios.h"
#include "libopenbios/bindings.h"
#include "libopenbios/initprogram.h"
void
openbios_init( void )
{
// Bind the C implementation of (init-program) into Forth
bind_func("(init-program)", init_program);
}