diff options
Diffstat (limited to 'src/stacks.c')
-rw-r--r-- | src/stacks.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stacks.c b/src/stacks.c index 9fec2fb7..f4d15ce9 100644 --- a/src/stacks.c +++ b/src/stacks.c @@ -84,7 +84,9 @@ call32_post(void) if (!CONFIG_CALL32_SMM || method != C16_SMM) { // Restore a20 - set_a20(GET_LOW(Call16Data.a20)); + u8 a20 = GET_LOW(Call16Data.a20); + if (!a20) + set_a20(0); // Restore gdt and fs/gs struct descloc_s gdt; |