uint64_t errorCode;
X86FaultBase(const char * _faultName, const char * _mnem,
- const uint8_t _vector, uint64_t _errorCode = -1) :
- faultName(_faultName), mnem(_mnem),
- vector(_vector), errorCode(_errorCode)
+ const uint8_t _vector, uint64_t _errorCode = (uint64_t)-1)
+ : faultName(_faultName), mnem(_mnem),
+ vector(_vector), errorCode(_errorCode)
{
}
{
protected:
X86Fault(const char * name, const char * mnem,
- const uint8_t vector, uint64_t _errorCode = -1) :
- X86FaultBase(name, mnem, vector, _errorCode)
+ const uint8_t vector, uint64_t _errorCode = (uint64_t)-1)
+ : X86FaultBase(name, mnem, vector, _errorCode)
{}
};
{
protected:
X86Trap(const char * name, const char * mnem,
- const uint8_t vector, uint64_t _errorCode = -1) :
- X86FaultBase(name, mnem, vector, _errorCode)
+ const uint8_t vector, uint64_t _errorCode = (uint64_t)-1)
+ : X86FaultBase(name, mnem, vector, _errorCode)
{}
#if FULL_SYSTEM
{
protected:
X86Abort(const char * name, const char * mnem,
- const uint8_t vector, uint64_t _errorCode = -1) :
- X86FaultBase(name, mnem, vector, _errorCode)
+ const uint8_t vector, uint64_t _errorCode = (uint64_t)-1)
+ : X86FaultBase(name, mnem, vector, _errorCode)
{}
#if FULL_SYSTEM
{
protected:
X86Interrupt(const char * name, const char * mnem,
- const uint8_t _vector, uint64_t _errorCode = -1) :
- X86FaultBase(name, mnem, _vector, _errorCode)
+ const uint8_t _vector, uint64_t _errorCode = (uint64_t)-1)
+ : X86FaultBase(name, mnem, _vector, _errorCode)
{}
};