diff options
| author | Michael Brown | 2006-05-13 13:30:03 +0200 |
|---|---|---|
| committer | Michael Brown | 2006-05-13 13:30:03 +0200 |
| commit | 568cad0ddcbadaf9ee2e965afaa3fc54f53962ff (patch) | |
| tree | 8976c7fce629e9ecd3f431ab6d528753d334b44d /src/arch | |
| parent | (Redoing check-in lost by SourceForge's failure.) (diff) | |
| download | ipxe-568cad0ddcbadaf9ee2e965afaa3fc54f53962ff.tar.gz ipxe-568cad0ddcbadaf9ee2e965afaa3fc54f53962ff.tar.xz ipxe-568cad0ddcbadaf9ee2e965afaa3fc54f53962ff.zip | |
(Redoing check-in lost by SourceForge's failure.)
Diffstat (limited to 'src/arch')
| -rw-r--r-- | src/arch/i386/core/hooks.c | 32 | ||||
| -rw-r--r-- | src/arch/i386/include/hooks.h | 6 | ||||
| -rw-r--r-- | src/arch/i386/include/relocate.h | 26 |
3 files changed, 0 insertions, 64 deletions
diff --git a/src/arch/i386/core/hooks.c b/src/arch/i386/core/hooks.c deleted file mode 100644 index 313dc6181..000000000 --- a/src/arch/i386/core/hooks.c +++ /dev/null @@ -1,32 +0,0 @@ -#include "registers.h" -#include "main.h" -#include "hooks.h" - -/* - * This file provides the basic entry points from assembly code. See - * README.i386 for a description of the entry code path. - * - */ - -/* - * arch_main() : call main() and then exit via whatever exit mechanism - * the prefix requested. - * - */ -void arch_main ( struct i386_all_regs *ix86 ) { - void (*exit_path) ( struct i386_all_regs *ix86 ); - - /* Determine exit path requested by prefix */ - exit_path = ( typeof ( exit_path ) ) ix86->regs.eax; - - /* Call to main() */ - ix86->regs.eax = main(); - - if ( exit_path ) { - /* Prefix requested that we use a particular function - * as the exit path, so we call this function, which - * must not return. - */ - exit_path ( ix86 ); - } -} diff --git a/src/arch/i386/include/hooks.h b/src/arch/i386/include/hooks.h deleted file mode 100644 index 3cef262f9..000000000 --- a/src/arch/i386/include/hooks.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef HOOKS_H -#define HOOKS_H - -extern void arch_main ( struct i386_all_regs *ix86 ); - -#endif /* HOOKS_H */ diff --git a/src/arch/i386/include/relocate.h b/src/arch/i386/include/relocate.h deleted file mode 100644 index d8002185a..000000000 --- a/src/arch/i386/include/relocate.h +++ /dev/null @@ -1,26 +0,0 @@ -#ifndef RELOCATE_H -#define RELOCATE_H - -/* relocate() is conceptually impossible with KEEP_IT_REAL */ -#ifndef KEEP_IT_REAL - -#include <gpxe/tables.h> - -/* An entry in the post-relocation function table */ -struct post_reloc_fn { - void ( *post_reloc ) ( void ); -}; - -/* Use double digits to avoid problems with "10" < "9" on alphabetic sort */ -#define POST_RELOC_LIBRM 00 - -/* Macro for creating a post-relocation function table entry */ -#define POST_RELOC_FN( order, post_reloc_func ) \ - struct post_reloc_fn PREFIX_OBJECT(post_reloc_fn__) \ - __table ( post_reloc_fn, order ) = { \ - .post_reloc = post_reloc_func, \ - }; - -#endif - -#endif /* RELOCATE_H */ |
