singrdk/base/Kernel/Native/DebugStub.cpp

27 lines
489 B
C++
Raw Normal View History

2008-03-05 09:52:00 -05:00
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// DebugStub.cpp: runtime support for debugging
//
//
#include "hal.h"
#if SINGULARITY_PROCESS
#if PAGING
int ccc;
extern "C" void __cdecl _pushStackMark();
__declspec(naked) void Class_Microsoft_Singularity_DebugStub::g_Foo()
{
__asm
{
ret
}
// ccc = *((int *)_pushStackMark);
}
#endif
void Class_Microsoft_Singularity_DebugStub::g_Break()
{
__asm int 3;
}
#endif