aboutsummaryrefslogtreecommitdiff
path: root/malloc.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2016-09-06 15:44:17 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2016-09-06 16:19:54 +0200
commitf4569f4b687e4302e96764aba2c756513b79e2e0 (patch)
tree50282a20130d060f4a8c688e807a84eab97de11b /malloc.c
parent5ea29a8e87a24ac9e2b1ab4f05094102af6a3c9d (diff)
downloadqboot-f4569f4b687e4302e96764aba2c756513b79e2e0.zip
qboot-f4569f4b687e4302e96764aba2c756513b79e2e0.tar.gz
qboot-f4569f4b687e4302e96764aba2c756513b79e2e0.tar.bz2
copy only ~11K down to low memory
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'malloc.c')
-rw-r--r--malloc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/malloc.c b/malloc.c
index 3ab95ed..c8d865b 100644
--- a/malloc.c
+++ b/malloc.c
@@ -1,10 +1,8 @@
#include <inttypes.h>
#include "string.h"
+#include "bios.h"
-extern uint8_t edata;
static uint8_t *fseg_base = &edata;
-
-extern uint8_t stext;
static uint8_t *malloc_top = &stext;
void *malloc(int n)