Skip to content
10 changes: 10 additions & 0 deletions src/coreclr/nativeaot/Runtime/Pal.h
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,16 @@ uint32_t PalWaitForSingleObjectEx(HANDLE arg1, uint32_t arg2, UInt32_BOOL arg3);

void PalGetSystemTimeAsFileTime(FILETIME * arg1);

void RuntimeThreadShutdown(void* thread);

typedef void (*ThreadExitCallback)();

extern ThreadExitCallback g_threadExitCallback;

#ifdef TARGET_UNIX
typedef int32_t (*PHARDWARE_EXCEPTION_HANDLER)(uintptr_t faultCode, uintptr_t faultAddress, PAL_LIMITED_CONTEXT* palContext, uintptr_t* arg0Reg, uintptr_t* arg1Reg);
#endif

#include "PalInline.h"

#endif // !PAL_INCLUDED
16 changes: 3 additions & 13 deletions src/coreclr/nativeaot/Runtime/PalLimitedContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.


#ifndef __PAL_COMMON_INCLUDED
#define __PAL_COMMON_INCLUDED
#ifndef PAL_LIMITED_CONTEXT_INCLUDED
#define PAL_LIMITED_CONTEXT_INCLUDED

#include "rhassert.h"

Expand Down Expand Up @@ -209,14 +209,4 @@ struct PAL_LIMITED_CONTEXT
#endif // TARGET_ARM
};

void RuntimeThreadShutdown(void* thread);

typedef void (*ThreadExitCallback)();

extern ThreadExitCallback g_threadExitCallback;

#ifdef TARGET_UNIX
typedef int32_t (*PHARDWARE_EXCEPTION_HANDLER)(uintptr_t faultCode, uintptr_t faultAddress, PAL_LIMITED_CONTEXT* palContext, uintptr_t* arg0Reg, uintptr_t* arg1Reg);
#endif

#endif // __PAL_COMMON_INCLUDED
#endif // PAL_LIMITED_CONTEXT_INCLUDED
Loading