Does anyone know how to throw a DAR exception when reading or writing to address 0x0? I am using VXworks 5.4 as my OS, on the PPC.
Does anyone know how to throw a DAR exception when reading or writing to address 0x0? I am using VXworks 5.4 as my OS, on the PPC.
"DAR" is the PPC "data access register" - and not an exception.
You don't really "throw" hardware exceptions, but you can probably cause one by simply reading or writting to an invalid address (like 0x0, assuming 0x0 isn't a valid address).
gg
This seems like a technical question for Wind River.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.