diff options
author | Michal Simek <monstr@monstr.eu> | 2007-05-08 15:57:43 +0200 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2007-05-08 15:57:43 +0200 |
commit | e69f66c6ebe82bbbd1da766bc4eda40ec7ee5af1 (patch) | |
tree | a7b64115395d553515ecc0a3dfbde9442f4ad508 /cpu/microblaze | |
parent | 1a50f164beb065f360fbddb76029607d6b099698 (diff) | |
download | u-boot-imx-e69f66c6ebe82bbbd1da766bc4eda40ec7ee5af1.zip u-boot-imx-e69f66c6ebe82bbbd1da766bc4eda40ec7ee5af1.tar.gz u-boot-imx-e69f66c6ebe82bbbd1da766bc4eda40ec7ee5af1.tar.bz2 |
add: reading special purpose registers
Diffstat (limited to 'cpu/microblaze')
-rw-r--r-- | cpu/microblaze/exception.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu/microblaze/exception.c b/cpu/microblaze/exception.c index 87ecbea..d76b05a 100644 --- a/cpu/microblaze/exception.c +++ b/cpu/microblaze/exception.c @@ -30,9 +30,9 @@ void _hw_exception_handler (void) int address = 0; int state = 0; /* loading address of exception EAR */ - MFSEAR(address); + MFS (address, rear); /* loading excetpion state register ESR */ - MFSESR(state); + MFS (state, resr); printf ("Hardware exception at 0x%x address\n", address); switch (state & 0x1f) { /* mask on exception cause */ case 0x1: |