diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2014-02-18 13:48:09 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2014-03-05 10:20:25 -0500 |
commit | e8436b5bade4887cd4edb2ca39e6b9014a410154 (patch) | |
tree | 00efab36744c819980a49b43fa997859918beaba /vgasrc | |
parent | b62632a3c78e39b9d5fbbed23779c12bac2c0f6b (diff) | |
download | seabios-hppa-e8436b5bade4887cd4edb2ca39e6b9014a410154.zip seabios-hppa-e8436b5bade4887cd4edb2ca39e6b9014a410154.tar.gz seabios-hppa-e8436b5bade4887cd4edb2ca39e6b9014a410154.tar.bz2 |
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.c | 2 |
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" |