From 20b11a6003aec3a27fdd35f55b5ae759ef90eb42 Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Fri, 28 Apr 2000 08:44:42 +0000 Subject: [PATCH] Reserve register t7 on alpha to point at per-cpu global variables. --- share/mk/bsd.kern.mk | 3 ++- sys/conf/kern.mk | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/share/mk/bsd.kern.mk b/share/mk/bsd.kern.mk index abbf3dfa35d..7b45540b452 100644 --- a/share/mk/bsd.kern.mk +++ b/share/mk/bsd.kern.mk @@ -34,7 +34,8 @@ CFLAGS+= -mpreferred-stack-boundary=2 # # On the alpha, make sure that we don't use floating-point registers and # allow the use of EV56 instructions (only needed for low-level i/o). +# Also, reserve register t7 to point at per-cpu global variables. # .if ${MACHINE_ARCH} == "alpha" -CFLAGS+= -mno-fp-regs -Wa,-mev56 +CFLAGS+= -mno-fp-regs -ffixed-8 -Wa,-mev56 .endif diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index abbf3dfa35d..7b45540b452 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -34,7 +34,8 @@ CFLAGS+= -mpreferred-stack-boundary=2 # # On the alpha, make sure that we don't use floating-point registers and # allow the use of EV56 instructions (only needed for low-level i/o). +# Also, reserve register t7 to point at per-cpu global variables. # .if ${MACHINE_ARCH} == "alpha" -CFLAGS+= -mno-fp-regs -Wa,-mev56 +CFLAGS+= -mno-fp-regs -ffixed-8 -Wa,-mev56 .endif