xv6

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 1b517da1056b90a3d8fcaf485719a82a5e7741a0
parent 916fd4062da5cd25d5fe2b8922895de54714e84d
Author: Brian Swetland <swetland@frotz.net>
Date:   Mon, 30 Dec 2013 07:16:14 -0800

entry64: fix stack setup to survive kernel pagetable init

Use the high mapping instead of the bootstrap alias mapping.

When the kernel enables its own page tables, the 1:1 mapping
vaporizes and the kernel becomes unhappy if its stack vanishes
out from under it.

Diffstat:
Mkernel/entry64.S | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/entry64.S b/kernel/entry64.S @@ -143,7 +143,7 @@ entry64high: mov %ax, %gs # setup initial stack - mov $0x00010000, %rax + mov $0xFFFFFFFF80010000, %rax mov %rax, %rsp # enter main()