aboutsummaryrefslogtreecommitdiff
path: root/x86_64
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-31 20:59:25 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-01-31 20:59:25 +0100
commitd77225eb8bcf908d21b4d6b2a731d5701c4fc7a8 (patch)
treee110d378f34f909ab5871bf1fc7ccc3ea899f677 /x86_64
parent422ab47d25576587600d093297512d8b6cbec890 (diff)
downloadgnumach-d77225eb8bcf908d21b4d6b2a731d5701c4fc7a8.tar.gz
gnumach-d77225eb8bcf908d21b4d6b2a731d5701c4fc7a8.tar.bz2
gnumach-d77225eb8bcf908d21b4d6b2a731d5701c4fc7a8.zip
Fix other confusions between KERNEL_STACK_SIZE and INTSTACK_SIZE
Diffstat (limited to 'x86_64')
-rw-r--r--x86_64/locore.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/x86_64/locore.S b/x86_64/locore.S
index 21a3e373..5b9c8ef4 100644
--- a/x86_64/locore.S
+++ b/x86_64/locore.S
@@ -556,7 +556,7 @@ trap_from_kernel:
movq %rsp,%rbx /* save current stack */
movq %rsp,%rdx /* on an interrupt stack? */
- and $(~(KERNEL_STACK_SIZE-1)),%rdx
+ and $(~(INTSTACK_SIZE-1)),%rdx
cmpq EXT(int_stack_base),%rdx
je 1f /* OK if so */
@@ -683,7 +683,7 @@ ENTRY(all_intrs)
cld /* clear direction flag */
movq %rsp,%rdx /* on an interrupt stack? */
- and $(~(KERNEL_STACK_SIZE-1)),%rdx
+ and $(~(INTSTACK_SIZE-1)),%rdx
cmpq %ss:EXT(int_stack_base),%rdx
je int_from_intstack /* if not: */