* shared/vectors/vectors.S: mask high bits when calculating

the exception vector number to yield correct result even if
	the vectors reside in the upper area (0xfff00000; psim).
This commit is contained in:
Till Straumann
2006-01-05 23:18:55 +00:00
parent d8525b9570
commit 7eb776a29a
2 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2006-01-05 Till Straumann <strauman@slac.stanford.edu>
* shared/vectors/vectors.S: mask high bits when calculating
the exception vector number to yield correct result even if
the vectors reside in the upper area (0xfff00000; psim).
2005-12-02 Till Straumann <strauman@slac.stanford.edu>
* shared/irq/irq_init.c, shared/openpic/openpic.h
shared/openpic/openpic.c: The 8240's EPIC has a 'serial'

View File

@@ -74,9 +74,10 @@ SYM (push_normalized_frame):
*/
mflr r3
/*
* r3 = r3 >> 8 = vector
* r3 = r3 >> 8 = vector #
* mask upper bits in case vectors are in the high area (psim)
*/
srwi r3,r3,8
rlwinm r3,r3,32-8,20,31
stw r3, EXCEPTION_NUMBER_OFFSET(r1)
stw r0, GPR0_OFFSET(r1)
/* R2 should never change (EABI: pointer to .sdata2) - we