Questions tagged [hardware-traps]

4 questions
17
votes
4 answers

What are traps?

There are many different types of traps listed in processor datasheets, e.g. BusFault, MemManage Fault, Usage Fault and Address Error. What is their purpose? How can they be utilized in fault handling?
makes
  • 6,438
  • 3
  • 40
  • 58
7
votes
2 answers

How does a hardware trap in a three-past-the-end pointer happen even if the pointer is never dereferenced?

In his November 1, 2005 C++ column, Herb Sutter writes ... int A[17]; int* endA = A + 17; for( int* ptr = A; ptr < endA; ptr += 5 ) { // ... } [O]n some CPU architectures, including current ones, the aforementioned code can cause a hardware…
Thomas L Holaday
  • 13,614
  • 6
  • 40
  • 51
3
votes
3 answers

Hardware breakpoints on XP 64 bit

Has anyone got hardware breakpoints to work on 64bit XP and if so how? We have an application that uses hardware breakpoints this has worked on 32 bit XP and 32 bit Vista operating systems for sometime now. However having ported our code to 64 bit…
lilburne
  • 565
  • 1
  • 3
  • 10
-3
votes
1 answer

Operating System Trap: What causes addressing errors to occur?

After allocating a logical memory space for a particular process, protection to that space is enforced by using a base register and limit register. To defend against accessing memory outside of the allocated memory space for a process, CPU hardware…
8protons
  • 3,591
  • 5
  • 32
  • 67