[ros-diffs] [fireball] 33825: Stefan Ginsberg <stefan__100__ at hotmail.com> - Remove ExTryToAcquireResourceExclusiveLite from NDK since it's not exported by NT kernel. - Add ObSetSecurityObjectByPointer, RtlInitAnsiStringEx (and implement it, rather straightforward) to NDK. - Uncomment exports in ntoskrnl_i386.def which are already implemented. - Add KeInvalidateAllCaches to ARM's stubs.

fireball at svn.reactos.org fireball at svn.reactos.org
Mon Jun 2 12:21:50 CEST 2008


Author: fireball
Date: Mon Jun  2 05:21:49 2008
New Revision: 33825

URL: http://svn.reactos.org/svn/reactos?rev=33825&view=rev
Log:
Stefan Ginsberg <stefan__100__ at hotmail.com>
- Remove ExTryToAcquireResourceExclusiveLite from NDK since it's not exported by NT kernel.
- Add ObSetSecurityObjectByPointer, RtlInitAnsiStringEx (and implement it, rather straightforward) to NDK.
- Uncomment exports in ntoskrnl_i386.def which are already implemented.
- Add KeInvalidateAllCaches to ARM's stubs.

Modified:
    trunk/reactos/include/ndk/exfuncs.h
    trunk/reactos/include/ndk/obfuncs.h
    trunk/reactos/include/ndk/rtlfuncs.h
    trunk/reactos/lib/rtl/unicode.c
    trunk/reactos/ntoskrnl/include/internal/ex.h
    trunk/reactos/ntoskrnl/ke/arm/stubs_asm.s
    trunk/reactos/ntoskrnl/ntoskrnl_i386.def

Modified: trunk/reactos/include/ndk/exfuncs.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/exfuncs.h?rev=33825&r1=33824&r2=33825&view=diff
==============================================================================
--- trunk/reactos/include/ndk/exfuncs.h [iso-8859-1] (original)
+++ trunk/reactos/include/ndk/exfuncs.h [iso-8859-1] Mon Jun  2 05:21:49 2008
@@ -94,16 +94,6 @@
 ExfUnblockPushLock(
     PEX_PUSH_LOCK PushLock,
     PVOID CurrentWaitBlock
-);
-
-//
-// Resource Functions
-//
-NTKERNELAPI
-BOOLEAN
-NTAPI
-ExTryToAcquireResourceExclusiveLite(
-    IN PERESOURCE Resource
 );
 
 //

Modified: trunk/reactos/include/ndk/obfuncs.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/obfuncs.h?rev=33825&r1=33824&r2=33825&view=diff
==============================================================================
--- trunk/reactos/include/ndk/obfuncs.h [iso-8859-1] (original)
+++ trunk/reactos/include/ndk/obfuncs.h [iso-8859-1] Mon Jun  2 05:21:49 2008
@@ -109,6 +109,15 @@
 );
 
 NTKERNELAPI
+NTSTATUS
+NTAPI
+ObSetSecurityObjectByPointer(
+  IN PVOID Object,
+  IN SECURITY_INFORMATION SecurityInformation,
+  IN PSECURITY_DESCRIPTOR SecurityDescriptor
+);
+
+NTKERNELAPI
 BOOLEAN
 NTAPI
 ObFindHandleForObject(

Modified: trunk/reactos/include/ndk/rtlfuncs.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/rtlfuncs.h?rev=33825&r1=33824&r2=33825&view=diff
==============================================================================
--- trunk/reactos/include/ndk/rtlfuncs.h [iso-8859-1] (original)
+++ trunk/reactos/include/ndk/rtlfuncs.h [iso-8859-1] Mon Jun  2 05:21:49 2008
@@ -1628,8 +1628,6 @@
     IN BOOLEAN AllocateDestinationString
 );
 
-#endif
-
 NTSYSAPI
 NTSTATUS
 NTAPI
@@ -1638,6 +1636,8 @@
     IN PCUNICODE_STRING SourceString,
     OUT PUNICODE_STRING DestinationString
 );
+
+#endif
 
 NTSYSAPI
 BOOLEAN
@@ -1754,6 +1754,14 @@
 VOID
 NTAPI
 RtlInitAnsiString(
+    PANSI_STRING DestinationString,
+    PCSZ SourceString
+);
+
+NTSYSAPI
+NTSTATUS
+NTAPI
+RtlInitAnsiStringEx(
     PANSI_STRING DestinationString,
     PCSZ SourceString
 );

Modified: trunk/reactos/lib/rtl/unicode.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/unicode.c?rev=33825&r1=33824&r2=33825&view=diff
==============================================================================
--- trunk/reactos/lib/rtl/unicode.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/unicode.c [iso-8859-1] Mon Jun  2 05:21:49 2008
@@ -432,6 +432,30 @@
     DestinationString->Buffer = (PCHAR)SourceString;
 }
 
+NTSTATUS
+NTAPI
+RtlInitAnsiStringEx(IN OUT PANSI_STRING DestinationString,
+                    IN PCSZ SourceString)
+{
+    ULONG DestSize;
+
+    if(SourceString)
+    {
+        DestSize = strlen(SourceString);
+        if (DestSize >= 0xFFFF) return STATUS_NAME_TOO_LONG;
+        DestinationString->Length = (USHORT)DestSize;
+        DestinationString->MaximumLength = (USHORT)DestSize + sizeof(CHAR);
+    }
+    else
+    {
+        DestinationString->Length = 0;
+        DestinationString->MaximumLength = 0;
+    }
+
+    DestinationString->Buffer = (PCHAR)SourceString;
+    return STATUS_SUCCESS;
+
+}
 /*
  * @implemented
  *

Modified: trunk/reactos/ntoskrnl/include/internal/ex.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/ex.h?rev=33825&r1=33824&r2=33825&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/ex.h [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/include/internal/ex.h [iso-8859-1] Mon Jun  2 05:21:49 2008
@@ -1001,6 +1001,12 @@
 
 /* OTHER FUNCTIONS **********************************************************/
 
+BOOLEAN
+NTAPI
+ExTryToAcquireResourceExclusiveLite(
+    IN PERESOURCE Resource
+);
+
 LONGLONG
 FASTCALL
 ExfpInterlockedExchange64(

Modified: trunk/reactos/ntoskrnl/ke/arm/stubs_asm.s
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/arm/stubs_asm.s?rev=33825&r1=33824&r2=33825&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/ke/arm/stubs_asm.s [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ke/arm/stubs_asm.s [iso-8859-1] Mon Jun  2 05:21:49 2008
@@ -21,6 +21,7 @@
 GENERATE_ARM_STUB KeGetRecommendedSharedDataAlignment 
 GENERATE_ARM_STUB KeIcacheFlushCount 
 GENERATE_ARM_STUB KeInitializeInterrupt 
+GENERATE_ARM_STUB KeInvalidateAllCaches
 GENERATE_ARM_STUB KeNumberProcessors 
 GENERATE_ARM_STUB KeQueryActiveProcessors 
 GENERATE_ARM_STUB KeRaiseUserException 

Modified: trunk/reactos/ntoskrnl/ntoskrnl_i386.def
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ntoskrnl_i386.def?rev=33825&r1=33824&r2=33825&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/ntoskrnl_i386.def [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ntoskrnl_i386.def [iso-8859-1] Mon Jun  2 05:21:49 2008
@@ -82,7 +82,7 @@
 ExDesktopObjectType
 ExDisableResourceBoostLite at 4
 @ExEnterCriticalRegionAndAcquireFastMutexUnsafe at 4
-;ExEnterCriticalRegionAndAcquireResourceExclusive
+ExEnterCriticalRegionAndAcquireResourceExclusive at 4
 ;ExEnterCriticalRegionAndAcquireResourceShared
 ;ExEnterCriticalRegionAndAcquireSharedWaitForExclusive
 ExEnumHandleTable at 16
@@ -137,7 +137,7 @@
 ExReinitializeResourceLite at 4
 @ExReleaseFastMutexUnsafe at 4
 @ExReleaseFastMutexUnsafeAndLeaveCriticalRegion at 4
-;ExReleaseResourceAndLeaveCriticalRegion
+ at ExReleaseResourceAndLeaveCriticalRegion@4
 ExReleaseResourceForThreadLite at 8
 @ExReleaseResourceLite at 4
 ExReleaseRundownProtection=@ExfReleaseRundownProtection at 4
@@ -158,8 +158,8 @@
 ExWaitForRundownProtectionRelease=@ExfWaitForRundownProtectionRelease at 4
 ExWaitForRundownProtectionReleaseCacheAware=@ExfWaitForRundownProtectionReleaseCacheAware at 4
 ExWindowStationObjectType DATA
-;ExfAcquirePushLockExclusive
-;ExfAcquirePushLockShared
+ at ExfAcquirePushLockExclusive@4
+ at ExfAcquirePushLockShared@4
 @ExfInterlockedAddUlong at 12
 @ExfInterlockedCompareExchange64 at 12
 @ExfInterlockedInsertHeadList at 12
@@ -167,11 +167,11 @@
 @ExfInterlockedPopEntryList at 8
 @ExfInterlockedPushEntryList at 12
 @ExfInterlockedRemoveHeadList at 8
-;ExfReleasePushLock
-;ExfReleasePushLockExclusive
-;ExfReleasePushLockShared
-;ExfTryToWakePushLock
-;ExfUnblockPushLock
+ at ExfReleasePushLock@4
+ at ExfReleasePushLockExclusive@4
+ at ExfReleasePushLockShared@4
+ at ExfTryToWakePushLock@4
+ at ExfUnblockPushLock@8
 @Exfi386InterlockedDecrementLong at 4
 @Exfi386InterlockedExchangeUlong at 8
 @Exfi386InterlockedIncrementLong at 4
@@ -199,7 +199,7 @@
 FsRtlCheckOplock
 FsRtlCopyRead
 FsRtlCopyWrite
-;FsRtlCreateSectionForDataScan
+FsRtlCreateSectionForDataScan at 40
 FsRtlCurrentBatchOplock
 FsRtlDeleteKeyFromTunnelCache
 FsRtlDeleteTunnelCache
@@ -549,7 +549,7 @@
 KeAcquireSpinLockAtDpcLevel at 4
 ;KeAcquireSpinLockForDpc
 KeAddSystemServiceTable at 20
-;KeAreAllApcsDisabled
+KeAreAllApcsDisabled at 0
 KeAreApcsDisabled at 0
 KeAttachProcess at 4
 KeBugCheck at 4
@@ -606,8 +606,8 @@
 KeInsertQueue at 8
 KeInsertQueueApc at 16
 KeInsertQueueDpc at 12
-;KeInvalidateAllCaches
-;KeIpiGenericCall
+KeInvalidateAllCaches at 0
+KeIpiGenericCall at 8
 KeIsAttachedProcess at 0
 KeIsExecutingDpc at 0
 ;KeIsWaitListEmpty
@@ -682,7 +682,7 @@
 ;KeTestSpinLock
 KeTickCount DATA
 @KeTryToAcquireGuardedMutex at 4
-;KeTryToAcquireSpinLockAtDpcLevel
+ at KeTryToAcquireSpinLockAtDpcLevel@4
 KeUnstackDetachProcess at 4
 KeUpdateRunTime at 4
 KeUpdateSystemTime at 0
@@ -888,11 +888,11 @@
 ObReferenceObjectByHandle at 24
 ObReferenceObjectByName at 32
 ObReferenceObjectByPointer at 16
-;ObReferenceSecurityDescriptor at 8
+ObReferenceSecurityDescriptor at 8
 ObReleaseObjectSecurity at 8
 ;ObSetHandleAttributes at 12
-;ObSetSecurityDescriptorInfo at 24
-;ObSetSecurityObjectByPointer at 12
+ObSetSecurityDescriptorInfo at 24
+ObSetSecurityObjectByPointer at 12
 @ObfDereferenceObject at 4
 @ObfReferenceObject at 4
 ;PfxFindPrefix
@@ -974,7 +974,7 @@
 PsImpersonateClient at 20
 PsInitialSystemProcess DATA
 PsIsProcessBeingDebugged at 4
-;PsIsSystempProcess
+;PsIsSystemProcess
 PsIsSystemThread at 4
 PsIsThreadImpersonating at 4
 PsIsThreadTerminating at 4
@@ -1018,7 +1018,7 @@
 KeRosDumpStackFrames at 8
 RtlAbsoluteToSelfRelativeSD at 12
 RtlAddAccessAllowedAce at 16
-;RtlAddAccessAllowedAceEx
+RtlAddAccessAllowedAceEx at 20
 RtlAddAce at 20
 RtlAddAtomToAtomTable at 12
 RtlAddRange at 36
@@ -1140,11 +1140,11 @@
 RtlImageDirectoryEntryToData at 16
 RtlImageNtHeader at 4
 RtlInitAnsiString at 8
-;RtlInitAnsiStringEx
+RtlInitAnsiStringEx at 8
 RtlInitCodePageTable at 8
 RtlInitString at 8
 RtlInitUnicodeString at 8
-;RtlInitUnicodeStringEx
+RtlInitUnicodeStringEx at 8
 RtlInitializeBitMap at 12
 RtlInitializeGenericTable at 20
 RtlInitializeGenericTableAvl at 20



More information about the Ros-diffs mailing list