Hello all,
want to configure the exception-vector-table in RAM starting at address 4000_1000 with an entry location every 0x10 bytes: 4000_1000, 4000_1010 ... 4000_10F0. To achieve this,
I initialize IVPR with 4000_0000 and IVOR0..15 with 0000_1000...0000_10F0 using the following code:
e_lis | r0, 0 | |
e_or2i | r0, 0x4000 | |
mtspr | ivpr, r0 |
e_lis | r0, 0 |
e_or2i r0, 0x1000
mtspr | ivor0, r0 | |
When executing the last instruction, the program jumps to a different location. Can somebody help?