aboutsummaryrefslogtreecommitdiff
path: root/i386/i386at/model_dep.h
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2023-02-01 10:06:05 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-02-01 18:59:36 +0100
commit497d1de6283d6ebb057f800376303c057a8f5192 (patch)
tree4aca5d309d83d32152ba30ac7da7e5e417db604b /i386/i386at/model_dep.h
parentf728cc0ce24020f644ad48f0088783f0f68dd11a (diff)
downloadgnumach-497d1de6283d6ebb057f800376303c057a8f5192.tar.gz
gnumach-497d1de6283d6ebb057f800376303c057a8f5192.tar.bz2
gnumach-497d1de6283d6ebb057f800376303c057a8f5192.zip
kdb: Fix ON_INT_STACK() macro to be cpu_number aware
Message-Id: <20230201100519.784297-5-damien@zamaudio.com>
Diffstat (limited to 'i386/i386at/model_dep.h')
-rw-r--r--i386/i386at/model_dep.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/i386/i386at/model_dep.h b/i386/i386at/model_dep.h
index df327ca2..3d5b6645 100644
--- a/i386/i386at/model_dep.h
+++ b/i386/i386at/model_dep.h
@@ -27,8 +27,8 @@
*/
extern vm_offset_t int_stack_top[NCPUS], int_stack_base[NCPUS];
-/* Check whether P points to the interrupt stack. */
-#define ON_INT_STACK(P) (((P) & ~(INTSTACK_SIZE-1)) == int_stack_base[0])
+/* Check whether P points to the per-cpu interrupt stack. */
+#define ON_INT_STACK(P, CPU) (((P) & ~(INTSTACK_SIZE-1)) == int_stack_base[CPU])
extern vm_offset_t timemmap(dev_t dev, vm_offset_t off, vm_prot_t prot);