Thread: R/W to 0x0 exception how to????

  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    4

    R/W to 0x0 exception how to????

    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.

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    "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

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Exception handling in a large project
    By EVOEx in forum C++ Programming
    Replies: 7
    Last Post: 01-25-2009, 07:33 AM
  2. exception handling
    By coletek in forum C++ Programming
    Replies: 2
    Last Post: 01-12-2009, 05:28 PM
  3. Creating Patterns
    By incognito in forum Game Programming
    Replies: 5
    Last Post: 03-16-2003, 09:02 AM
  4. how many bits in this?
    By incognito in forum C++ Programming
    Replies: 6
    Last Post: 03-16-2003, 01:59 AM
  5. bytes long and short
    By SAMSAM in forum Game Programming
    Replies: 0
    Last Post: 03-08-2003, 09:50 AM