forked from Imagelibrary/rtems
* 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:
@@ -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>
|
2005-12-02 Till Straumann <strauman@slac.stanford.edu>
|
||||||
* shared/irq/irq_init.c, shared/openpic/openpic.h
|
* shared/irq/irq_init.c, shared/openpic/openpic.h
|
||||||
shared/openpic/openpic.c: The 8240's EPIC has a 'serial'
|
shared/openpic/openpic.c: The 8240's EPIC has a 'serial'
|
||||||
|
|||||||
@@ -74,9 +74,10 @@ SYM (push_normalized_frame):
|
|||||||
*/
|
*/
|
||||||
mflr r3
|
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 r3, EXCEPTION_NUMBER_OFFSET(r1)
|
||||||
stw r0, GPR0_OFFSET(r1)
|
stw r0, GPR0_OFFSET(r1)
|
||||||
/* R2 should never change (EABI: pointer to .sdata2) - we
|
/* R2 should never change (EABI: pointer to .sdata2) - we
|
||||||
|
|||||||
Reference in New Issue
Block a user