summaryrefslogtreecommitdiff
path: root/vgasrc
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2014-02-18 13:48:09 -0500
committerKevin O'Connor <kevin@koconnor.net>2014-03-05 10:20:25 -0500
commite8436b5bade4887cd4edb2ca39e6b9014a410154 (patch)
tree00efab36744c819980a49b43fa997859918beaba /vgasrc
parentb62632a3c78e39b9d5fbbed23779c12bac2c0f6b (diff)
downloadqemu-seabios-e8436b5bade4887cd4edb2ca39e6b9014a410154.tar.gz
vgabios: Fix PMM allocation request size.
The size of a PMM memory request is in "paragraphs" so the size needs to be divided by 16. Fix the request so only the desired 512 bytes is allocated instead of 8K. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc')
-rw-r--r--vgasrc/vgainit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vgasrc/vgainit.c b/vgasrc/vgainit.c
index 13221fd..4692c34 100644
--- a/vgasrc/vgainit.c
+++ b/vgasrc/vgainit.c
@@ -75,7 +75,7 @@ allocate_extra_stack(void)
"pushl %0\n"
"pushw $(8|1)\n" // Permanent low memory request
"pushl $0xffffffff\n" // Anonymous handle
- "pushl $" __stringify(CONFIG_VGA_EXTRA_STACK_SIZE) "\n"
+ "pushl $" __stringify(CONFIG_VGA_EXTRA_STACK_SIZE/16) "\n"
"pushw $0x00\n" // PMM allocation request
"lcallw *12(%%esp)\n"
"addl $16, %%esp\n"