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