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

This is a discussion on R/W to 0x0 exception how to???? within the C Programming forums, part of the General Programming Boards category; Does anyone know how to throw a DAR exception when reading or writing to address 0x0? I am using VXworks ...

  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,630
    "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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,420
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 06:33 AM
  2. exception handling
    By coletek in forum C++ Programming
    Replies: 2
    Last Post: 01-12-2009, 04:28 PM
  3. Creating Patterns
    By incognito in forum Game Programming
    Replies: 5
    Last Post: 03-16-2003, 08:02 AM
  4. how many bits in this?
    By incognito in forum C++ Programming
    Replies: 6
    Last Post: 03-16-2003, 12:59 AM
  5. bytes long and short
    By SAMSAM in forum Game Programming
    Replies: 0
    Last Post: 03-08-2003, 08:50 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21