Author: sginsberg Date: Sun Oct 26 16:35:03 2008 New Revision: 37004
URL: http://svn.reactos.org/svn/reactos?rev=37004&view=rev Log: - 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
Added: branches/ros-amd64-bringup/reactos/dll/ntdll/dispatch/amd64/ (with props) branches/ros-amd64-bringup/reactos/dll/ntdll/dispatch/amd64/stubs.c (with props) branches/ros-amd64-bringup/reactos/lib/rtl/amd64/stubs.c (with props) Modified: branches/ros-amd64-bringup/reactos/dll/ntdll/def/ntdll_amd64.def branches/ros-amd64-bringup/reactos/dll/ntdll/ntdll.rbuild branches/ros-amd64-bringup/reactos/lib/rtl/rtl.rbuild
Modified: branches/ros-amd64-bringup/reactos/dll/ntdll/def/ntdll_amd64.def URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/dll/nt... ============================================================================== --- branches/ros-amd64-bringup/reactos/dll/ntdll/def/ntdll_amd64.def [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/dll/ntdll/def/ntdll_amd64.def [iso-8859-1] Sun Oct 26 16:35:03 2008 @@ -39,9 +39,6 @@ KiUserApcDispatcher KiUserCallbackDispatcher KiUserExceptionDispatcher -KiIntSystemCall -KiFastSystemCallRet -KiFastSystemCall LdrAccessResource LdrAddRefDll LdrDisableThreadCalloutsForDll @@ -475,7 +472,7 @@ RtlFreeUnicodeString RtlFreeUserThreadStack RtlGUIDFromString -RtlGeneratedotName +RtlGenerate8dot3Name RtlGetAce ;RtlGetCallersAddress RtlGetCompressionWorkSpaceSize @@ -488,7 +485,7 @@ RtlGetFullPathName_U RtlGetGroupSecurityDescriptor RtlGetLastNtStatus -RtlGetLastWinError +RtlGetLastWin32Error RtlGetLongestNtPathLength RtlGetNextRange RtlGetNtGlobalFlags @@ -519,7 +516,7 @@ RtlInitializeConditionVariable RtlInitializeContext RtlInitializeCriticalSection -RtlInitializeCriticalSectionEx +;RtlInitializeCriticalSectionEx RtlInitializeCriticalSectionAndSpinCount RtlInitializeGenericTable RtlInitializeGenericTableAvl @@ -533,26 +530,26 @@ 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 @@ ;RtlRemoteCall RtlRemoveVectoredExceptionHandler RtlResetRtlTranslations -RtlRestoreLastWinError=RtlSetLastWinError +RtlRestoreLastWin32Error=RtlSetLastWin32Error RtlRunDecodeUnicodeString RtlRunEncodeUnicodeString -RtlSecondsSinceToTime -RtlSecondsSinceToTime +RtlSecondsSince1970ToTime +RtlSecondsSince1980ToTime RtlSelfRelativeToAbsoluteSD RtlSelfRelativeToAbsoluteSD2 RtlSetAllBits @@ -653,8 +650,8 @@ RtlSetEnvironmentVariable RtlSetGroupSecurityDescriptor RtlSetInformationAcl -RtlSetLastWinError -RtlSetLastWinErrorAndNtStatusFromNtStatus +RtlSetLastWin32Error +RtlSetLastWin32ErrorAndNtStatusFromNtStatus RtlSetOwnerSecurityDescriptor RtlSetProcessIsCritical RtlSetSaclSecurityDescriptor @@ -970,19 +967,9 @@ __iscsym __iscsymf __toascii -_alldiv -_allmul -_alloca_probe -_allrem -_allshl -_allshr _atoi64 -_aulldiv -_aullrem -_aullshr _chkstk _fltused -_ftol _itoa _itow _i64toa
Propchange: branches/ros-amd64-bringup/reactos/dll/ntdll/dispatch/amd64/ ------------------------------------------------------------------------------ --- bugtraq:logregex (added) +++ bugtraq:logregex Sun Oct 26 16:35:03 2008 @@ -1,0 +1,2 @@ +([Ii]ssue|[Bb]ug)s? #?(\d+)(,? ?#?(\d+))*(,? ?(and |or )?#?(\d+))? +(\d+)
Propchange: branches/ros-amd64-bringup/reactos/dll/ntdll/dispatch/amd64/ ------------------------------------------------------------------------------ bugtraq:message = See issue #%BUGID% for more details.
Propchange: branches/ros-amd64-bringup/reactos/dll/ntdll/dispatch/amd64/ ------------------------------------------------------------------------------ bugtraq:url = http://www.reactos.org/bugzilla/show_bug.cgi?id=%BUGID%
Propchange: branches/ros-amd64-bringup/reactos/dll/ntdll/dispatch/amd64/ ------------------------------------------------------------------------------ tsvn:logminsize = 10
Added: branches/ros-amd64-bringup/reactos/dll/ntdll/dispatch/amd64/stubs.c URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/dll/nt... ============================================================================== --- branches/ros-amd64-bringup/reactos/dll/ntdll/dispatch/amd64/stubs.c (added) +++ branches/ros-amd64-bringup/reactos/dll/ntdll/dispatch/amd64/stubs.c [iso-8859-1] Sun Oct 26 16:35:03 2008 @@ -1,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; +}
Propchange: branches/ros-amd64-bringup/reactos/dll/ntdll/dispatch/amd64/stubs.c ------------------------------------------------------------------------------ svn:eol-style = native
Modified: branches/ros-amd64-bringup/reactos/dll/ntdll/ntdll.rbuild URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/dll/nt... ============================================================================== --- branches/ros-amd64-bringup/reactos/dll/ntdll/ntdll.rbuild [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/dll/ntdll/ntdll.rbuild [iso-8859-1] Sun Oct 26 16:35:03 2008 @@ -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>
Added: branches/ros-amd64-bringup/reactos/lib/rtl/amd64/stubs.c URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/lib/rt... ============================================================================== --- branches/ros-amd64-bringup/reactos/lib/rtl/amd64/stubs.c (added) +++ branches/ros-amd64-bringup/reactos/lib/rtl/amd64/stubs.c [iso-8859-1] Sun Oct 26 16:35:03 2008 @@ -1,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; +}
Propchange: branches/ros-amd64-bringup/reactos/lib/rtl/amd64/stubs.c ------------------------------------------------------------------------------ svn:eol-style = native
Modified: branches/ros-amd64-bringup/reactos/lib/rtl/rtl.rbuild URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/lib/rt... ============================================================================== --- branches/ros-amd64-bringup/reactos/lib/rtl/rtl.rbuild [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/lib/rtl/rtl.rbuild [iso-8859-1] Sun Oct 26 16:35:03 2008 @@ -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>