add debug_break impl
This was SVN commit r728.
This commit is contained in:
parent
af58165890
commit
7a199f8f16
@ -101,6 +101,12 @@ __asm
|
||||
}
|
||||
|
||||
|
||||
void ia32_debug_break()
|
||||
{
|
||||
__asm int 3
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// data returned by cpuid()
|
||||
// each function using this data must call cpuid (no-op if already called)
|
||||
|
@ -39,6 +39,10 @@ extern u64 rdtsc();
|
||||
|
||||
extern uint _control87(uint new_cw, uint mask);
|
||||
|
||||
extern void ia32_debug_break();
|
||||
|
||||
|
||||
|
||||
// CPU caps (128 bits)
|
||||
// do not change the order! (breaks cpuid())
|
||||
enum CpuCap
|
||||
|
@ -57,6 +57,12 @@ void wdisplay_msg(const wchar_t* caption, const wchar_t* msg)
|
||||
}
|
||||
|
||||
|
||||
void win_debug_break()
|
||||
{
|
||||
DebugBreak();
|
||||
}
|
||||
|
||||
|
||||
|
||||
// need to shoehorn printf-style variable params into
|
||||
// the OutputDebugString call.
|
||||
|
@ -19,4 +19,7 @@
|
||||
#define WINAPI __stdcall
|
||||
#define WINAPIV __cdecl
|
||||
|
||||
|
||||
extern "C" void win_debug_break();
|
||||
|
||||
#endif // #ifndef __WIN_H__
|
||||
|
Loading…
Reference in New Issue
Block a user