From 7e9aef235a685d309e9287d47513511a09fd7da8 Mon Sep 17 00:00:00 2001 From: Marius Strobl Date: Sun, 2 May 2010 12:08:15 +0000 Subject: [PATCH] Add a hack for SPARC64 V CPUs, which set some undocumented bits in the first data word. --- sys/sparc64/sparc64/interrupt.S | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/sparc64/sparc64/interrupt.S b/sys/sparc64/sparc64/interrupt.S index 75a97275301..b71a05da98d 100644 --- a/sys/sparc64/sparc64/interrupt.S +++ b/sys/sparc64/sparc64/interrupt.S @@ -83,8 +83,11 @@ ENTRY(intr_vector) * The 2nd word points to code to execute and the 3rd is an argument * to pass. Jump to it. */ - brnz,a,pt %g3, 1f - nop + brnz,pt %g3, 1f + /* + * NB: Zeus CPUs set some undocumented bits in the first data word. + */ + and %g3, IV_MAX - 1, %g3 jmpl %g4, %g0 nop /* NOTREACHED */