From 8e244752cb45e2f68678ab20c562ea938ae340f6 Mon Sep 17 00:00:00 2001 From: Justin Hibbits Date: Thu, 15 May 2014 04:18:06 +0000 Subject: [PATCH] A page mask size is 12-bits, not 11. MFC after: 1 week --- sys/powerpc/aim/trap_subr32.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/powerpc/aim/trap_subr32.S b/sys/powerpc/aim/trap_subr32.S index fccca03033c7..0d11ac8cf907 100644 --- a/sys/powerpc/aim/trap_subr32.S +++ b/sys/powerpc/aim/trap_subr32.S @@ -677,7 +677,7 @@ disitrap: mtcr %r31 bt 17,realtrap /* branch is user mode */ mfsprg1 %r31 /* get old SP */ - clrrwi %r31,%r31,11 /* Round SP down to nearest page */ + clrrwi %r31,%r31,12 /* Round SP down to nearest page */ sub. %r30,%r31,%r30 /* SP - DAR */ bge 1f neg %r30,%r30 /* modulo value */