diff options
author | Michael Brown | 2007-01-14 01:03:07 +0100 |
---|---|---|
committer | Michael Brown | 2007-01-14 01:03:07 +0100 |
commit | ece4ff929ee3c772f0ae6ea61a1b704101fff4fb (patch) | |
tree | fdd18cd5bbd30351f9f4267b94078e0c2a1c156d /src/arch | |
parent | Use {get,set}_fbms() so that allocated base memory is correctly hidden. (diff) | |
download | ipxe-ece4ff929ee3c772f0ae6ea61a1b704101fff4fb.tar.gz ipxe-ece4ff929ee3c772f0ae6ea61a1b704101fff4fb.tar.xz ipxe-ece4ff929ee3c772f0ae6ea61a1b704101fff4fb.zip |
Use _text, rather than assuming _text==0.
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/i386/core/emalloc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/arch/i386/core/emalloc.c b/src/arch/i386/core/emalloc.c index 550e686b..09f2beb4 100644 --- a/src/arch/i386/core/emalloc.c +++ b/src/arch/i386/core/emalloc.c @@ -33,8 +33,11 @@ /** Equivalent of NOWHERE for user pointers */ #define UNOWHERE ( ~UNULL ) +/** Start of Etherboot text, as defined by the linker */ +extern char _text[]; + /** Top of allocatable memory */ -#define TOP ( virt_to_user ( NULL ) ) +#define TOP ( virt_to_user ( _text ) ) /** An external memory block */ struct external_memory { |