- Remove ntdll exports not applicable for amd64, fix a couple of broken export names and stub out RtlInitializeCriticalSectionEx until its parameters are determined

- Add rtl and ntdll stubs for arch specific routines
- Now ntdll almost links, but some missing crt support is left to do

svn path=/branches/ros-amd64-bringup/; revision=37004
This commit is contained in:
Stefan Ginsberg 2008-10-26 21:35:03 +00:00
parent a9ef487300
commit 054ccf1593
5 changed files with 153 additions and 38 deletions

View file

@ -39,9 +39,6 @@ KiRaiseUserExceptionDispatcher
KiUserApcDispatcher
KiUserCallbackDispatcher
KiUserExceptionDispatcher
KiIntSystemCall
KiFastSystemCallRet
KiFastSystemCall
LdrAccessResource
LdrAddRefDll
LdrDisableThreadCalloutsForDll
@ -475,7 +472,7 @@ RtlFreeSid
RtlFreeUnicodeString
RtlFreeUserThreadStack
RtlGUIDFromString
RtlGeneratedotName
RtlGenerate8dot3Name
RtlGetAce
;RtlGetCallersAddress
RtlGetCompressionWorkSpaceSize
@ -488,7 +485,7 @@ RtlGetFirstRange
RtlGetFullPathName_U
RtlGetGroupSecurityDescriptor
RtlGetLastNtStatus
RtlGetLastWinError
RtlGetLastWin32Error
RtlGetLongestNtPathLength
RtlGetNextRange
RtlGetNtGlobalFlags
@ -519,7 +516,7 @@ RtlInitializeBitMap
RtlInitializeConditionVariable
RtlInitializeContext
RtlInitializeCriticalSection
RtlInitializeCriticalSectionEx
;RtlInitializeCriticalSectionEx
RtlInitializeCriticalSectionAndSpinCount
RtlInitializeGenericTable
RtlInitializeGenericTableAvl
@ -533,26 +530,26 @@ RtlInsertElementGenericTable
RtlInsertElementGenericTableAvl
RtlInsertElementGenericTableFull
RtlInsertElementGenericTableFullAvl
RtlIntToUnicodeString
RtlInt64ToUnicodeString
RtlIntegerToChar
RtlIntegerToUnicodeString
RtlInvertRangeList
RtlIpvAddressToStringA
RtlIpvAddressToStringExA
RtlIpvAddressToStringExW
RtlIpvAddressToStringW
RtlIpvStringToAddressA
RtlIpvStringToAddressExA
RtlIpvStringToAddressExW
RtlIpvStringToAddressW
RtlIpvAddressToStringA
RtlIpvAddressToStringExA
RtlIpvAddressToStringExW
RtlIpvAddressToStringW
RtlIpvStringToAddressA
RtlIpvStringToAddressExA
RtlIpvStringToAddressExW
RtlIpvStringToAddressW
RtlIpv4AddressToStringA
RtlIpv4AddressToStringExA
RtlIpv4AddressToStringExW
RtlIpv4AddressToStringW
RtlIpv4StringToAddressA
RtlIpv4StringToAddressExA
RtlIpv4StringToAddressExW
RtlIpv4StringToAddressW
RtlIpv6AddressToStringA
RtlIpv6AddressToStringExA
RtlIpv6AddressToStringExW
RtlIpv6AddressToStringW
RtlIpv6StringToAddressA
RtlIpv6StringToAddressExA
RtlIpv6StringToAddressExW
RtlIpv6StringToAddressW
RtlIsDosDeviceName_U
RtlIsGenericTableEmpty
RtlIsGenericTableEmptyAvl
@ -635,11 +632,11 @@ RtlReleaseSRWLockShared
;RtlRemoteCall
RtlRemoveVectoredExceptionHandler
RtlResetRtlTranslations
RtlRestoreLastWinError=RtlSetLastWinError
RtlRestoreLastWin32Error=RtlSetLastWin32Error
RtlRunDecodeUnicodeString
RtlRunEncodeUnicodeString
RtlSecondsSinceToTime
RtlSecondsSinceToTime
RtlSecondsSince1970ToTime
RtlSecondsSince1980ToTime
RtlSelfRelativeToAbsoluteSD
RtlSelfRelativeToAbsoluteSD2
RtlSetAllBits
@ -653,8 +650,8 @@ RtlSetDaclSecurityDescriptor
RtlSetEnvironmentVariable
RtlSetGroupSecurityDescriptor
RtlSetInformationAcl
RtlSetLastWinError
RtlSetLastWinErrorAndNtStatusFromNtStatus
RtlSetLastWin32Error
RtlSetLastWin32ErrorAndNtStatusFromNtStatus
RtlSetOwnerSecurityDescriptor
RtlSetProcessIsCritical
RtlSetSaclSecurityDescriptor
@ -970,19 +967,9 @@ __isascii
__iscsym
__iscsymf
__toascii
_alldiv
_allmul
_alloca_probe
_allrem
_allshl
_allshr
_atoi64
_aulldiv
_aullrem
_aullshr
_chkstk
_fltused
_ftol
_itoa
_itow
_i64toa

View file

@ -0,0 +1,43 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS NT Library
* FILE: dll/ntdll/dispatch/amd64/stubs.c
* PURPOSE: AMD64 stubs
* PROGRAMMERS: Stefan Ginsberg (stefan.ginsberg@reactos.org)
*/
/* INCLUDES *****************************************************************/
#include <ntdll.h>
#define NDEBUG
#include <debug.h>
/* PUBLIC FUNCTIONS **********************************************************/
/*
* @unimplemented
*/
VOID
NTAPI
LdrInitializeThunk(ULONG Unknown1, // FIXME: Parameters!
ULONG Unknown2,
ULONG Unknown3,
ULONG Unknown4)
{
UNIMPLEMENTED;
return;
}
/*
* @unimplemented
*/
VOID
NTAPI
KiUserApcDispatcher(IN PVOID NormalRoutine,
IN PVOID NormalContext,
IN PVOID SystemArgument1,
IN PVOID SystemArgument2)
{
UNIMPLEMENTED;
return;
}

View file

@ -31,6 +31,11 @@
<file>dispatch.S</file>
</directory>
</if>
<if property="ARCH" value="amd64">
<directory name="amd64">
<file>stubs.c</file>
</directory>
</if>
<if property="ARCH" value="arm">
<directory name="arm">
<file>stubs_asm.s</file>

View file

@ -0,0 +1,77 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS Run-Time Library
* PURPOSE: AMD64 stubs
* FILE: lib/rtl/amd64/stubs.c
* PROGRAMMERS: Stefan Ginsberg (stefan.ginsberg@reactos.org)
*/
/* INCLUDES *****************************************************************/
#include <rtl.h>
#define NDEBUG
#include <debug.h>
/* PUBLIC FUNCTIONS **********************************************************/
/*
* @unimplemented
*/
PVOID
NTAPI
RtlLookupFunctionEntry(IN ULONGLONG ControlPC,
OUT PULONGLONG ImageBase,
OUT PULONGLONG TargetGp)
{
UNIMPLEMENTED;
return NULL;
}
/*
* @unimplemented
*/
VOID
NTAPI
RtlInitializeContext(IN HANDLE ProcessHandle,
OUT PCONTEXT ThreadContext,
IN PVOID ThreadStartParam OPTIONAL,
IN PTHREAD_START_ROUTINE ThreadStartAddress,
IN PINITIAL_TEB InitialTeb)
{
UNIMPLEMENTED;
return;
}
/*
* @unimplemented
*/
VOID
NTAPI
RtlCaptureContext(OUT PCONTEXT ContextRecord)
{
UNIMPLEMENTED;
return;
}
/*
* @unimplemented
*/
PVOID
NTAPI
RtlpGetExceptionAddress(VOID)
{
UNIMPLEMENTED;
return NULL;
}
/*
* @unimplemented
*/
BOOLEAN
NTAPI
RtlDispatchException(IN PEXCEPTION_RECORD ExceptionRecord,
IN PCONTEXT Context)
{
UNIMPLEMENTED;
return FALSE;
}

View file

@ -39,7 +39,10 @@
<if property="ARCH" value="amd64">
<directory name="amd64">
<file>debug_asm.S</file>
<file>stubs.c</file>
</directory>
<file>mem.c</file>
<file>memgen.c</file>
</if>
<directory name="austin">
<file>avl.c</file>