aboutsummaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/amd64/amd64/tss.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/tss.c b/sys/arch/amd64/amd64/tss.c
index 5aab74a..f2c9be4 100644
--- a/sys/arch/amd64/amd64/tss.c
+++ b/sys/arch/amd64/amd64/tss.c
@@ -33,6 +33,7 @@
#include <sys/panic.h>
#include <vm/dynalloc.h>
#include <vm/physmem.h>
+#include <vm/vm.h>
#include <machine/tss.h>
#include <machine/cpu.h>
#include <assert.h>
@@ -60,7 +61,7 @@ alloc_resources(struct cpu_info *ci)
}
memset(tss, 0, sizeof(*tss));
- rsp0_base = vm_alloc_frame(1);
+ rsp0_base = vm_alloc_frame(1) + VM_HIGHER_HALF;
if (rsp0_base == 0) {
panic("Could not allocate RSP0 base\n");