diff options
author | hpa <hpa> | 2004-12-17 18:54:08 +0000 |
---|---|---|
committer | hpa <hpa> | 2004-12-17 18:54:08 +0000 |
commit | 3a3aea8eed5247c650befe2d5ca82e1b220b54c7 (patch) | |
tree | f6a337e504633d206e9f0e7efdb952ae021ff4ed /dos/malloc.c | |
parent | 8a684d6315e6ecd1bd0a60a5c9008fe584c2d47a (diff) | |
download | syslinux-3a3aea8eed5247c650befe2d5ca82e1b220b54c7.tar.gz |
Actually parse argc/argv properly.
Diffstat (limited to 'dos/malloc.c')
-rw-r--r-- | dos/malloc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dos/malloc.c b/dos/malloc.c index 93a51bbe..8d37b5d3 100644 --- a/dos/malloc.c +++ b/dos/malloc.c @@ -29,13 +29,14 @@ static inline size_t sp(void) return sp; } +extern void *__mem_end; + void __init_memory_arena(void) { - extern char _end[]; /* Symbol created by the linker */ struct free_arena_header *fp; size_t start, total_space; - start = (size_t)ARENA_ALIGN_UP(_end); + start = (size_t)ARENA_ALIGN_UP(__mem_end); total_space = sp() - start; fp = (struct free_arena_header *)start; |