]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
Use _text, rather than assuming _text==0.
authorMichael Brown <mcb30@etherboot.org>
Sun, 14 Jan 2007 00:03:07 +0000 (00:03 +0000)
committerMichael Brown <mcb30@etherboot.org>
Sun, 14 Jan 2007 00:03:07 +0000 (00:03 +0000)
src/arch/i386/core/emalloc.c

index 550e686b82ef58016b9b0c2c5220a2ad74ff1f62..09f2beb483901fafa441fa40b285baf47233221a 100644 (file)
 /** 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 {