ReactOS.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
List overview
Download
Ros-diffs
November 2008
----- 2025 -----
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
ros-diffs@reactos.org
28 participants
657 discussions
Start a n
N
ew thread
[tkreuzer] 37433: fix InterlockedExchangePointer usage
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Mon Nov 17 20:40:51 2008 New Revision: 37433 URL:
http://svn.reactos.org/svn/reactos?rev=37433&view=rev
Log: fix InterlockedExchangePointer usage Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/ex/resource.c branches/ros-amd64-bringup/reactos/ntoskrnl/io/iomgr/iofunc.c branches/ros-amd64-bringup/reactos/ntoskrnl/ps/security.c Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/ex/resource.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/ex/resource.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/ex/resource.c [iso-8859-1] Mon Nov 17 20:40:51 2008 @@ -214,7 +214,7 @@ KeInitializeEvent(Event, SynchronizationEvent, FALSE); /* Set it */ - if (InterlockedCompareExchangePointer(&Resource->ExclusiveWaiters, + if (InterlockedCompareExchangePointer((PVOID*)&Resource->ExclusiveWaiters, Event, NULL)) { @@ -274,7 +274,7 @@ KeInitializeSemaphore(Semaphore, 0, MAXLONG); /* Set it */ - if (InterlockedCompareExchangePointer(&Resource->SharedWaiters, + if (InterlockedCompareExchangePointer((PVOID*)&Resource->SharedWaiters, Semaphore, NULL)) { Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/io/iomgr/iofunc.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/io/iomgr/iofunc.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/io/iomgr/iofunc.c [iso-8859-1] Mon Nov 17 20:40:51 2008 @@ -2451,7 +2451,7 @@ /* Set the Data */ Context->Key = CompletionInfo->Key; Context->Port = Queue; - if (InterlockedCompareExchangePointer(&FileObject-> + if (InterlockedCompareExchangePointer((PVOID*)&FileObject-> CompletionContext, Context, NULL)) Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/ps/security.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/ps/security.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/ps/security.c [iso-8859-1] Mon Nov 17 20:40:51 2008 @@ -634,7 +634,7 @@ if (!Impersonation) return STATUS_INSUFFICIENT_RESOURCES; /* Update the pointer */ - OldData = InterlockedCompareExchangePointer(&Thread-> + OldData = InterlockedCompareExchangePointer((PVOID*)&Thread-> ImpersonationInfo, Impersonation, NULL);
16 years, 1 month
1
0
0
0
[tkreuzer] 37432: fix a typo
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Mon Nov 17 20:31:40 2008 New Revision: 37432 URL:
http://svn.reactos.org/svn/reactos?rev=37432&view=rev
Log: fix a typo Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/ps/amd64/psctx.c Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/ps/amd64/psctx.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/ps/amd64/psctx.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/ps/amd64/psctx.c [iso-8859-1] Mon Nov 17 20:31:40 2008 @@ -69,7 +69,7 @@ /* If we don't have one, grab it from the stack */ if (!TrapFrame) { - FPRINT1("FIXME!!!!\n"); + DPRINT1("FIXME!!!!\n"); /* Trap frame is right under our initial stack */ // TrapFrame = (PKTRAP_FRAME)((ULONG_PTR)Thread->InitialStack - // ROUND_UP(sizeof(KTRAP_FRAME), KTRAP_FRAME_ALIGN) -
16 years, 1 month
1
0
0
0
[tkreuzer] 37430: cleanup ntoskrnl.exe: - Move the last stubs into better places - implement KeQueryActiveProcessors, KeInvalidateAllCaches, KeGetRecommendedSharedDataAlignment, KeSaveStateForHibernate, KeSetDmaIoCoherency, PsGetContext, PsSetContext based on x86 implementations. - remove KdbpGetCommandLine from kd.c where it wasn't supposed to be - remove amd64stubs.c
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Mon Nov 17 20:25:41 2008 New Revision: 37430 URL:
http://svn.reactos.org/svn/reactos?rev=37430&view=rev
Log: cleanup ntoskrnl.exe: - Move the last stubs into better places - implement KeQueryActiveProcessors, KeInvalidateAllCaches, KeGetRecommendedSharedDataAlignment, KeSaveStateForHibernate, KeSetDmaIoCoherency, PsGetContext, PsSetContext based on x86 implementations. - remove KdbpGetCommandLine from kd.c where it wasn't supposed to be - remove amd64stubs.c Added: branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/context.c (with props) branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/stubs.c (with props) branches/ros-amd64-bringup/reactos/ntoskrnl/ps/amd64/ (with props) branches/ros-amd64-bringup/reactos/ntoskrnl/ps/amd64/psctx.c (with props) Removed: branches/ros-amd64-bringup/reactos/ntoskrnl/amd64stubs.c Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/kd/amd64/kd.c branches/ros-amd64-bringup/reactos/ntoskrnl/kdbg/amd64/kdb.c branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/cpu.c branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/except.c branches/ros-amd64-bringup/reactos/ntoskrnl/ntoskrnl-generic.rbuild Removed: branches/ros-amd64-bringup/reactos/ntoskrnl/amd64stubs.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/amd64stubs.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/amd64stubs.c (removed) @@ -1,47 +1,0 @@ - -unsigned long (*FrLdrDbgPrint)(const char *Format, ...); - - - -#define STUB(x) void x() {FrLdrDbgPrint("Sorry, %s is only a stub!\n", __FUNCTION__);} - -STUB(KeActiveProcessors) -STUB(KeConnectInterrupt) -STUB(KeContextToTrapFrame) -STUB(KeDisableInterrupts) -STUB(KeDisconnectInterrupt) -STUB(KeFeatureBits) -STUB(KeFlushEntireTb) -STUB(KeGetRecommendedSharedDataAlignment) -STUB(KeInitializeInterrupt) -STUB(KeInvalidateAllCaches) -STUB(KeProcessorArchitecture) -STUB(KeProcessorLevel) -STUB(KeProcessorRevision) -STUB(KeQueryActiveProcessors) -STUB(KeRaiseUserException) -STUB(KeRestoreFloatingPointState) -STUB(KeSaveFloatingPointState) -STUB(KeSaveStateForHibernate) -STUB(KeSetDmaIoCoherency) -STUB(KeSwitchKernelStack) -STUB(KeSynchronizeExecution) -STUB(KeUpdateRunTime) -STUB(KeUpdateSystemTime) -STUB(KeUserModeCallback) -STUB(KiComputeTimerTableIndex) -STUB(KiDispatchException) -STUB(KiIdleLoop) -STUB(KiInitializeUserApc) -STUB(KiSwapProcess) -STUB(KiSystemService) -STUB(KdbEnterDebuggerException) -STUB(KdbpCliModuleLoaded) -STUB(KdbpCliInit) -STUB(KdpGdbStubInit) -STUB(NtContinue) -STUB(NtCallbackReturn) -STUB(NtRaiseException) -STUB(NtSetLdtEntries) -STUB(NtVdmControl) -STUB(PspGetOrSetContextKernelRoutine) Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/kd/amd64/kd.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/kd/amd64/kd.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/kd/amd64/kd.c [iso-8859-1] Mon Nov 17 20:25:41 2008 @@ -1,30 +1,23 @@ +/* + * PROJECT: ReactOS Kernel + * LICENSE: GPL - See COPYING in the top level directory + * FILE: ntoskrnl/ke/i386/cpu.c + * PURPOSE: Routines for CPU-level support + * PROGRAMMERS: Timo Kreuzer (timo.kreuzer(a)reactos.org) + */ + +/* INCLUDES ******************************************************************/ #include <ntoskrnl.h> #define NDEBUG #include <debug.h> +/* FUNCTIONS *****************************************************************/ + VOID STDCALL -KdbpGetCommandLineSettings(PCHAR p1) +KdpGdbStubInit(PKD_DISPATCH_TABLE WrapperTable, + ULONG BootPhase) { - PCHAR p2; - - while (p1 && (p2 = strchr(p1, ' '))) - { - p2++; - - if (!_strnicmp(p2, "KDSERIAL", 8)) - { - p2 += 8; - KdbDebugState |= KD_DEBUG_KDSERIAL; - KdpDebugMode.Serial = TRUE; - } - else if (!_strnicmp(p2, "KDNOECHO", 8)) - { - p2 += 8; - KdbDebugState |= KD_DEBUG_KDNOECHO; - } - - p1 = p2; - } + UNIMPLEMENTED; } Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/kdbg/amd64/kdb.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/kdbg/amd64/kdb.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/kdbg/amd64/kdb.c [iso-8859-1] Mon Nov 17 20:25:41 2008 @@ -1,10 +1,10 @@ /* * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel - * FILE: ntoskrnl/kdbg/kdb.c + * FILE: ntoskrnl/kdbg/amd64/kdb.c * PURPOSE: Kernel Debugger - * * PROGRAMMERS: Gregor Anich + * Timo Kreuzer (timo.kreuzer(a)reactos.org) */ /* INCLUDES ******************************************************************/ @@ -45,3 +45,27 @@ } } +KD_CONTINUE_TYPE +KdbEnterDebuggerException( + IN PEXCEPTION_RECORD ExceptionRecord OPTIONAL, + IN KPROCESSOR_MODE PreviousMode, + IN PCONTEXT Context, + IN OUT PKTRAP_FRAME TrapFrame, + IN BOOLEAN FirstChance) +{ + UNIMPLEMENTED; + return 0; +} + +VOID +KdbpCliModuleLoaded(IN PUNICODE_STRING Name) +{ + UNIMPLEMENTED; +} + +VOID +KdbpCliInit() +{ + UNIMPLEMENTED; +} + Added: branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/context.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/context.c (added) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/context.c [iso-8859-1] Mon Nov 17 20:25:41 2008 @@ -1,0 +1,36 @@ +/* + * PROJECT: ReactOS Kernel + * LICENSE: GPL - See COPYING in the top level directory + * PURPOSE: CONTEXT related functions + * PROGRAMMERS: Timo Kreuzer (timo.kreuzer(a)reactos.org) + */ + +/* INCLUDES ******************************************************************/ + +#include <ntoskrnl.h> + +#define NDEBUG +#include <debug.h> + +/* FUNCTIONS *****************************************************************/ + +VOID +NTAPI +KeContextToTrapFrame(IN PCONTEXT Context, + IN OUT PKEXCEPTION_FRAME ExceptionFrame, + IN OUT PKTRAP_FRAME TrapFrame, + IN ULONG ContextFlags, + IN KPROCESSOR_MODE PreviousMode) +{ + UNIMPLEMENTED; +} + +VOID +NTAPI +KeTrapFrameToContext(IN PKTRAP_FRAME TrapFrame, + IN PKEXCEPTION_FRAME ExceptionFrame, + IN OUT PCONTEXT Context) +{ + UNIMPLEMENTED; +} + Propchange: branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/context.c ------------------------------------------------------------------------------ svn:eol-style = native Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/cpu.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/cpu.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/cpu.c [iso-8859-1] Mon Nov 17 20:25:41 2008 @@ -3,7 +3,8 @@ * LICENSE: GPL - See COPYING in the top level directory * FILE: ntoskrnl/ke/amd64/cpu.c * PURPOSE: Routines for CPU-level support - * PROGRAMMERS: Timo Kreuzer (timo.kreuzer(a)reactos.org) + * PROGRAMMERS: Alex Ionescu (alex.ionescu(a)reactos.org) + * Timo Kreuzer (timo.kreuzer(a)reactos.org) */ /* INCLUDES *****************************************************************/ @@ -26,11 +27,18 @@ /* CPU Features and Flags */ ULONG KeI386CpuType; ULONG KeI386CpuStep; +ULONG KeProcessorArchitecture; +ULONG KeProcessorLevel; +ULONG KeProcessorRevision; +ULONG KeFeatureBits; ULONG KeI386MachineType; ULONG KeI386NpxPresent = 1; ULONG KeI386XMMIPresent = 0; ULONG KeI386FxsrPresent = 0; +ULONG KeLargestCacheLine = 0x40; +ULONG KiDmaIoCoherency = 0; CHAR KeNumberProcessors = 0; +KAFFINITY KeActiveProcessors = 1; BOOLEAN KiI386PentiumLockErrataPresent; BOOLEAN KiSMTProcessorsPresent; @@ -598,4 +606,84 @@ KeI386MachineType = KeLoaderBlock->u.I386.MachineType & 0x000FF; } - +VOID +NTAPI +KeFlushEntireTb(IN BOOLEAN Invalid, + IN BOOLEAN AllProcessors) +{ + UNIMPLEMENTED; +} + +KAFFINITY +NTAPI +KeQueryActiveProcessors(VOID) +{ + PAGED_CODE(); + + /* Simply return the number of active processors */ + return KeActiveProcessors; +} + +NTSTATUS +NTAPI +KeSaveFloatingPointState(OUT PKFLOATING_SAVE Save) +{ + UNIMPLEMENTED; + return STATUS_UNSUCCESSFUL; +} + +NTSTATUS +NTAPI +KeRestoreFloatingPointState(IN PKFLOATING_SAVE Save) +{ + UNIMPLEMENTED; + return STATUS_UNSUCCESSFUL; +} + +BOOLEAN +NTAPI +KeInvalidateAllCaches(VOID) +{ + /* Only supported on Pentium Pro and higher */ + if (KeI386CpuType < 6) return FALSE; + + /* Invalidate all caches */ + __wbinvd(); + return TRUE; +} + +/* + * @implemented + */ +ULONG +NTAPI +KeGetRecommendedSharedDataAlignment(VOID) +{ + /* Return the global variable */ + return KeLargestCacheLine; +} + +/* + * @implemented + */ +VOID +__cdecl +KeSaveStateForHibernate(IN PKPROCESSOR_STATE State) +{ + /* Capture the context */ + RtlCaptureContext(&State->ContextFrame); + + /* Capture the control state */ + KiSaveProcessorControlState(State); +} + +/* + * @implemented + */ +VOID +NTAPI +KeSetDmaIoCoherency(IN ULONG Coherency) +{ + /* Save the coherency globally */ + KiDmaIoCoherency = Coherency; +} Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/except.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/except.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/except.c [iso-8859-1] Mon Nov 17 20:25:41 2008 @@ -91,3 +91,22 @@ __lidt(&KiIdtDescriptor.Limit); } +VOID +NTAPI +KiDispatchException(IN PEXCEPTION_RECORD ExceptionRecord, + IN PKEXCEPTION_FRAME ExceptionFrame, + IN PKTRAP_FRAME TrapFrame, + IN KPROCESSOR_MODE PreviousMode, + IN BOOLEAN FirstChance) +{ + UNIMPLEMENTED; +} + +NTSTATUS +NTAPI +KeRaiseUserException(IN NTSTATUS ExceptionCode) +{ + UNIMPLEMENTED; + return STATUS_UNSUCCESSFUL; +} + Added: branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/stubs.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/stubs.c (added) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/stubs.c [iso-8859-1] Mon Nov 17 20:25:41 2008 @@ -1,0 +1,161 @@ +/* + * PROJECT: ReactOS Kernel + * LICENSE: GPL - See COPYING in the top level directory + * PURPOSE: stubs + * PROGRAMMERS: Timo Kreuzer (timo.kreuzer(a)reactos.org) + */ + +/* INCLUDES ******************************************************************/ + +#include <ntoskrnl.h> + +#define NDEBUG +#include <debug.h> + +BOOLEAN +NTAPI +KeConnectInterrupt(IN PKINTERRUPT Interrupt) +{ + UNIMPLEMENTED; + return FALSE; +} + +PVOID +NTAPI +KeSwitchKernelStack(PVOID StackBase, PVOID StackLimit) +{ + UNIMPLEMENTED; + return NULL; +} + +BOOLEAN +NTAPI +KeSynchronizeExecution( + IN OUT PKINTERRUPT Interrupt, + IN PKSYNCHRONIZE_ROUTINE SynchronizeRoutine, + IN PVOID SynchronizeContext) +{ + UNIMPLEMENTED; + return FALSE; +} + +VOID +NTAPI +KeUpdateRunTime(IN PKTRAP_FRAME TrapFrame, + IN KIRQL Irql) +{ + UNIMPLEMENTED; +} + +VOID +NTAPI +KeUpdateSystemTime(IN PKTRAP_FRAME TrapFrame, + IN KIRQL Irql, + IN ULONG Increment) +{ + UNIMPLEMENTED; +} + + +NTSTATUS +NTAPI +KeUserModeCallback(IN ULONG RoutineIndex, + IN PVOID Argument, + IN ULONG ArgumentLength, + OUT PVOID *Result, + OUT PULONG ResultLength) +{ + UNIMPLEMENTED; + return STATUS_UNSUCCESSFUL; +} + +ULONG +NTAPI +KiComputeTimerTableIndex(LONGLONG Timer) +{ + UNIMPLEMENTED; + return 0; +} + +VOID +KiIdleLoop() +{ + UNIMPLEMENTED; + for(;;); +} + +VOID +NTAPI +KiInitializeUserApc(IN PKEXCEPTION_FRAME ExceptionFrame, + IN PKTRAP_FRAME TrapFrame, + IN PKNORMAL_ROUTINE NormalRoutine, + IN PVOID NormalContext, + IN PVOID SystemArgument1, + IN PVOID SystemArgument2) +{ + UNIMPLEMENTED; +} + +VOID +NTAPI +KiSwapProcess(IN PKPROCESS NewProcess, + IN PKPROCESS OldProcess) +{ + UNIMPLEMENTED; +} + +VOID +KiSystemService(IN PKTHREAD Thread, + IN PKTRAP_FRAME TrapFrame, + IN ULONG Instruction) +{ + UNIMPLEMENTED; +} + +NTSYSAPI +NTSTATUS +NTAPI +NtCallbackReturn +( IN PVOID Result OPTIONAL, IN ULONG ResultLength, IN NTSTATUS Status ) +{ + UNIMPLEMENTED; + return STATUS_UNSUCCESSFUL; +} + +NTSYSAPI +NTSTATUS +NTAPI +NtContinue( + IN PCONTEXT ThreadContext, IN BOOLEAN RaiseAlert) +{ + UNIMPLEMENTED; + return STATUS_UNSUCCESSFUL; +} + +NTSYSAPI +NTSTATUS +NTAPI +NtRaiseException +(IN PEXCEPTION_RECORD ExceptionRecord, IN PCONTEXT ThreadContext, IN BOOLEAN HandleException ) +{ + UNIMPLEMENTED; + return STATUS_UNSUCCESSFUL; +} + +NTSTATUS +STDCALL +NtSetLdtEntries +(ULONG Selector1, LDT_ENTRY LdtEntry1, ULONG Selector2, LDT_ENTRY LdtEntry2) +{ + UNIMPLEMENTED; + return STATUS_UNSUCCESSFUL; +} + +NTSTATUS +NTAPI +NtVdmControl(IN ULONG ControlCode, + IN PVOID ControlData) +{ + UNIMPLEMENTED; + return STATUS_UNSUCCESSFUL; +} Propchange: branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/stubs.c ------------------------------------------------------------------------------ svn:eol-style = native Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/ntoskrnl-generic.rbuild URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/ntoskrnl-generic.rbuild [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/ntoskrnl-generic.rbuild [iso-8859-1] Mon Nov 17 20:25:41 2008 @@ -36,9 +36,6 @@ <directory name="include"> <pch>ntoskrnl.h</pch> </directory> - <if property="ARCH" value="amd64"> - <file>amd64stubs.c</file> - </if> <directory name="ke"> <if property="ARCH" value="i386"> <directory name="i386"> @@ -93,12 +90,15 @@ <if property="ARCH" value="amd64"> <directory name="amd64"> <file first="true">boot.S</file> + <file>context.c</file> <file>cpu.c</file> <file>ctxswitch.S</file> <file>except.c</file> + <file>interrupt.c</file> <file>irql.c</file> <file>kiinit.c</file> <file>spinlock.c</file> + <file>stubs.c</file> <file>thrdini.c</file> <file>trap.S</file> </directory> @@ -343,6 +343,11 @@ </if> <file>kdbg.c</file> </directory> + <if property="ARCH" value="amd64"> + <directory name="amd64"> + <file>kd.c</file> + </directory> + </if> <file>kdinit.c</file> <file>kdio.c</file> <file>kdmain.c</file> @@ -451,6 +456,11 @@ <file>psctx.c</file> </directory> </if> + <if property="ARCH" value="amd64"> + <directory name="amd64"> + <file>psctx.c</file> + </directory> + </if> <file>debug.c</file> <file>job.c</file> <file>kill.c</file> Propchange: branches/ros-amd64-bringup/reactos/ntoskrnl/ps/amd64/ ------------------------------------------------------------------------------ --- bugtraq:logregex (added) +++ bugtraq:logregex Mon Nov 17 20:25:41 2008 @@ -1,0 +1,2 @@ +([Ii]ssue|[Bb]ug)s? #?(\d+)(,? ?#?(\d+))*(,? ?(and |or )?#?(\d+))? +(\d+) Propchange: branches/ros-amd64-bringup/reactos/ntoskrnl/ps/amd64/ ------------------------------------------------------------------------------ bugtraq:message = See issue #%BUGID% for more details. Propchange: branches/ros-amd64-bringup/reactos/ntoskrnl/ps/amd64/ ------------------------------------------------------------------------------ bugtraq:url =
http://www.reactos.org/bugzilla/show_bug.cgi?id=%BUGID%
Propchange: branches/ros-amd64-bringup/reactos/ntoskrnl/ps/amd64/ ------------------------------------------------------------------------------ tsvn:logminsize = 10 Added: branches/ros-amd64-bringup/reactos/ntoskrnl/ps/amd64/psctx.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/ps/amd64/psctx.c (added) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/ps/amd64/psctx.c [iso-8859-1] Mon Nov 17 20:25:41 2008 @@ -1,0 +1,95 @@ +/* + * PROJECT: ReactOS Kernel + * LICENSE: GPL - See COPYING in the top level directory + * FILE: ntoskrnl/ps/amd64/pxctx.c + * PURPOSE: Process Manager: Set/Get Context for i386 + * PROGRAMMERS: Alex Ionescu (alex.ionescu(a)reactos.org) + * Timo Kreuzer (timo.kreuzer(a)reactos.org) + */ + +/* INCLUDES *******************************************************************/ + +#include <ntoskrnl.h> +#define NDEBUG +#include <debug.h> + +/* FUNCTIONS ******************************************************************/ + +VOID +NTAPI +PspGetContext(IN PKTRAP_FRAME TrapFrame, + IN PVOID NonVolatileContext, + IN OUT PCONTEXT Context) +{ + PAGED_CODE(); + + /* Convert the trap frame to a context */ + KeTrapFrameToContext(TrapFrame, NULL, Context); +} + +VOID +NTAPI +PspSetContext(OUT PKTRAP_FRAME TrapFrame, + OUT PVOID NonVolatileContext, + IN PCONTEXT Context, + IN KPROCESSOR_MODE Mode) +{ + PAGED_CODE(); + + /* Convert the context to a trap frame structure */ + KeContextToTrapFrame(Context, NULL, TrapFrame, Context->ContextFlags, Mode); +} + +VOID +NTAPI +PspGetOrSetContextKernelRoutine(IN PKAPC Apc, + IN OUT PKNORMAL_ROUTINE* NormalRoutine, + IN OUT PVOID* NormalContext, + IN OUT PVOID* SystemArgument1, + IN OUT PVOID* SystemArgument2) +{ + PGET_SET_CTX_CONTEXT GetSetContext; + PKEVENT Event; + PCONTEXT Context; + PKTHREAD Thread; + KPROCESSOR_MODE Mode; + PKTRAP_FRAME TrapFrame = NULL; + PAGED_CODE(); + + /* Get the Context Structure */ + GetSetContext = CONTAINING_RECORD(Apc, GET_SET_CTX_CONTEXT, Apc); + Context = &GetSetContext->Context; + Event = &GetSetContext->Event; + Mode = GetSetContext->Mode; + Thread = Apc->SystemArgument2; + + /* If this is a kernel-mode request, grab the saved trap frame */ + if (Mode == KernelMode) TrapFrame = Thread->TrapFrame; + + /* If we don't have one, grab it from the stack */ + if (!TrapFrame) + { + FPRINT1("FIXME!!!!\n"); + /* Trap frame is right under our initial stack */ +// TrapFrame = (PKTRAP_FRAME)((ULONG_PTR)Thread->InitialStack - +// ROUND_UP(sizeof(KTRAP_FRAME), KTRAP_FRAME_ALIGN) - +// sizeof(FX_SAVE_AREA)); + } + + /* Check if it's a set or get */ + if (Apc->SystemArgument1) + { + /* Get the Context */ + PspSetContext(TrapFrame, NULL, Context, Mode); + } + else + { + /* Set the Context */ + PspGetContext(TrapFrame, NULL, Context); + } + + /* Notify the Native API that we are done */ + KeSetEvent(Event, IO_NO_INCREMENT, FALSE); +} + +/* EOF */ Propchange: branches/ros-amd64-bringup/reactos/ntoskrnl/ps/amd64/psctx.c ------------------------------------------------------------------------------ svn:eol-style = native
16 years, 1 month
1
0
0
0
[tkreuzer] 37429: update amd64subs.c
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Mon Nov 17 18:41:47 2008 New Revision: 37429 URL:
http://svn.reactos.org/svn/reactos?rev=37429&view=rev
Log: update amd64subs.c Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/amd64stubs.c Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/amd64stubs.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/amd64stubs.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/amd64stubs.c [iso-8859-1] Mon Nov 17 18:41:47 2008 @@ -45,5 +45,3 @@ STUB(NtSetLdtEntries) STUB(NtVdmControl) STUB(PspGetOrSetContextKernelRoutine) -STUB(RtlGetCallersAddress) -STUB(RtlpGetStackLimits)
16 years, 1 month
1
0
0
0
[tkreuzer] 37428: RtlWalkFrameChain: - stop when we leave the stack or Rip gets 0
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Mon Nov 17 18:39:39 2008 New Revision: 37428 URL:
http://svn.reactos.org/svn/reactos?rev=37428&view=rev
Log: RtlWalkFrameChain: - stop when we leave the stack or Rip gets 0 Modified: branches/ros-amd64-bringup/reactos/lib/rtl/amd64/unwind.c Modified: branches/ros-amd64-bringup/reactos/lib/rtl/amd64/unwind.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/lib/r…
============================================================================== --- branches/ros-amd64-bringup/reactos/lib/rtl/amd64/unwind.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/lib/rtl/amd64/unwind.c [iso-8859-1] Mon Nov 17 18:39:39 2008 @@ -336,11 +336,14 @@ PVOID HandlerData; INT i; PRUNTIME_FUNCTION FunctionEntry; -DPRINT1("RtlWalkFrameChain called\n"); + + DPRINT("Enter RtlWalkFrameChain\n"); + + /* Capture the current Context */ RtlCaptureContext(&Context); - ControlPc = Context.Rip; + /* Get the stack limits */ RtlpGetStackLimits(&StackLow, &StackHigh); /* Check if we want the user-mode stack frame */ @@ -374,13 +377,24 @@ DPRINT("normal funtion, new Rip = %p, new Rsp = %p\n", (PVOID)Context.Rip, (PVOID)Context.Rsp); } + /* Check if new Rip is valid */ + if (!Context.Rip) + { + break; + } + + /* Check, if we have left our stack */ + if ((Context.Rsp < StackLow) || (Context.Rsp > StackHigh)) + { + break; + } + + /* Save this frame and continue with new Rip */ ControlPc = Context.Rip; - /* Save this frame */ - Callers[i] = (PVOID)ControlPc; - - } - + } + + DPRINT("RtlWalkFrameChain returns %ld\n", i); return i; }
16 years, 1 month
1
0
0
0
[tkreuzer] 37427: remove kernel32 dependency from mingw.rbuild
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Mon Nov 17 18:32:20 2008 New Revision: 37427 URL:
http://svn.reactos.org/svn/reactos?rev=37427&view=rev
Log: remove kernel32 dependency from mingw.rbuild Modified: branches/ros-amd64-bringup/reactos/lib/3rdparty/mingw/mingw.rbuild Modified: branches/ros-amd64-bringup/reactos/lib/3rdparty/mingw/mingw.rbuild URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/lib/3…
============================================================================== --- branches/ros-amd64-bringup/reactos/lib/3rdparty/mingw/mingw.rbuild [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/lib/3rdparty/mingw/mingw.rbuild [iso-8859-1] Mon Nov 17 18:32:20 2008 @@ -4,7 +4,7 @@ <module name="mingw_common" type="staticlibrary" isstartuplib="true" underscoresymbols="true" crt="dll"> <importlibrary definition="moldname-msvcrt.def" dllname="msvcrt.dll" /> <include base="mingw_common">include</include> - <library>kernel32</library> + <!-- library>kernel32</library --> <file>_newmode.c</file> <file>_wgetopt.c</file> <file>argv.c</file>
16 years, 1 month
1
0
0
0
[tkreuzer] 37426: "[00:08] Stefan100: 5) Alex_Ionescu will have your head" Well, no risk, no fun... ; -) Implement RtlpGetStackLimits
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Mon Nov 17 18:31:22 2008 New Revision: 37426 URL:
http://svn.reactos.org/svn/reactos?rev=37426&view=rev
Log: "[00:08] Stefan100: 5) Alex_Ionescu will have your head" Well, no risk, no fun... ;-) Implement RtlpGetStackLimits Modified: branches/ros-amd64-bringup/reactos/dll/ntdll/rtl/libsupp.c branches/ros-amd64-bringup/reactos/ntoskrnl/rtl/libsupp.c Modified: branches/ros-amd64-bringup/reactos/dll/ntdll/rtl/libsupp.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/dll/n…
============================================================================== --- branches/ros-amd64-bringup/reactos/dll/ntdll/rtl/libsupp.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/dll/ntdll/rtl/libsupp.c [iso-8859-1] Mon Nov 17 18:31:22 2008 @@ -204,6 +204,19 @@ *StackEnd = (ULONG_PTR)NtCurrentTeb()->Tib.StackBase; return TRUE; } + +#ifdef _AMD64_ +VOID +NTAPI +RtlpGetStackLimits( + OUT PULONG_PTR LowLimit, + OUT PULONG_PTR HighLimit) +{ + *LowLimit = (ULONG_PTR)NtCurrentTeb()->Tib.StackLimit; + *HighLimit = (ULONG_PTR)NtCurrentTeb()->Tib.StackBase; + return; +} +#endif /* RTL Atom Tables ************************************************************/ Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/rtl/libsupp.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/rtl/libsupp.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/rtl/libsupp.c [iso-8859-1] Mon Nov 17 18:31:22 2008 @@ -435,6 +435,19 @@ #endif +#ifdef _AMD64_ +VOID +NTAPI +RtlpGetStackLimits( + OUT PULONG_PTR LowLimit, + OUT PULONG_PTR HighLimit) +{ + PKTHREAD CurrentThread = KeGetCurrentThread(); + *HighLimit = (ULONG_PTR)CurrentThread->InitialStack; + *LowLimit = (ULONG_PTR)CurrentThread->StackLimit; +} +#endif + /* RTL Atom Tables ************************************************************/ NTSTATUS
16 years, 1 month
1
0
0
0
[tkreuzer] 37425: Implement RtlGetCallersAddress
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Mon Nov 17 17:24:59 2008 New Revision: 37425 URL:
http://svn.reactos.org/svn/reactos?rev=37425&view=rev
Log: Implement RtlGetCallersAddress Modified: branches/ros-amd64-bringup/reactos/lib/rtl/amd64/unwind.c Modified: branches/ros-amd64-bringup/reactos/lib/rtl/amd64/unwind.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/lib/r…
============================================================================== --- branches/ros-amd64-bringup/reactos/lib/rtl/amd64/unwind.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/lib/rtl/amd64/unwind.c [iso-8859-1] Mon Nov 17 17:24:59 2008 @@ -332,7 +332,7 @@ { CONTEXT Context; ULONG64 ControlPc, ImageBase, EstablisherFrame; - ULONG64 StackBegin, StackEnd; + ULONG64 StackLow, StackHigh; PVOID HandlerData; INT i; PRUNTIME_FUNCTION FunctionEntry; @@ -341,7 +341,7 @@ ControlPc = Context.Rip; - RtlpGetStackLimits(&StackBegin, &StackEnd); + RtlpGetStackLimits(&StackLow, &StackHigh); /* Check if we want the user-mode stack frame */ if (Flags == 1) @@ -384,3 +384,29 @@ return i; } +// CHEKCME: return PVOID? +//
http://undocumented.ntinternals.net/UserMode/Undocumented%20Functions/Debug…
+VOID +NTAPI +RtlGetCallersAddress( + OUT PVOID *CallersAddress, + OUT PVOID *CallersCaller ) +{ + PVOID Callers[4]; + ULONG Number; + + /* Get callers: + * RtlWalkFrameChain -> RtlGetCallersAddress -> x -> y */ + Number = RtlWalkFrameChain(Callers, 4, 0); + + if (CallersAddress) + { + *CallersAddress = (Number >= 3) ? Callers[2] : NULL; + } + if (CallersCaller) + { + *CallersCaller = (Number == 4) ? Callers[3] : NULL; + } + + return; +}
16 years, 1 month
1
0
0
0
[tkreuzer] 37424: StackLimit < StackBase! Rename parameters in prototype of RtlpGetStackLimits to LowLimit and HighLimit.
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Mon Nov 17 16:24:54 2008 New Revision: 37424 URL:
http://svn.reactos.org/svn/reactos?rev=37424&view=rev
Log: StackLimit < StackBase! Rename parameters in prototype of RtlpGetStackLimits to LowLimit and HighLimit. Modified: branches/ros-amd64-bringup/reactos/lib/rtl/rtlp.h branches/ros-amd64-bringup/reactos/ntoskrnl/io/iomgr/util.c Modified: branches/ros-amd64-bringup/reactos/lib/rtl/rtlp.h URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/lib/r…
============================================================================== --- branches/ros-amd64-bringup/reactos/lib/rtl/rtlp.h [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/lib/rtl/rtlp.h [iso-8859-1] Mon Nov 17 16:24:54 2008 @@ -28,8 +28,8 @@ VOID NTAPI -RtlpGetStackLimits(PULONG_PTR StackBase, - PULONG_PTR StackLimit); +RtlpGetStackLimits(PULONG_PTR LowLimit, + PULONG_PTR HighLimit); PEXCEPTION_REGISTRATION_RECORD NTAPI Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/io/iomgr/util.c URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/io/iomgr/util.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/io/iomgr/util.c [iso-8859-1] Mon Nov 17 16:24:54 2008 @@ -16,8 +16,8 @@ VOID NTAPI -RtlpGetStackLimits(PULONG_PTR StackBase, - PULONG_PTR StackLimit); +RtlpGetStackLimits(PULONG_PTR LowLimit, + PULONG_PTR HighLimit); /* FUNCTIONS *****************************************************************/
16 years, 1 month
1
0
0
0
[sginsberg] 37423: - "byte" is defined by the Win32 headers, so define it conditionally
by sginsberg@svn.reactos.org
Author: sginsberg Date: Mon Nov 17 16:01:19 2008 New Revision: 37423 URL:
http://svn.reactos.org/svn/reactos?rev=37423&view=rev
Log: - "byte" is defined by the Win32 headers, so define it conditionally Modified: trunk/reactos/lib/3rdparty/adns/src/internal.h Modified: trunk/reactos/lib/3rdparty/adns/src/internal.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/3rdparty/adns/src/inte…
============================================================================== --- trunk/reactos/lib/3rdparty/adns/src/internal.h [iso-8859-1] (original) +++ trunk/reactos/lib/3rdparty/adns/src/internal.h [iso-8859-1] Mon Nov 17 16:01:19 2008 @@ -31,7 +31,11 @@ #define ADNS_INTERNAL_H_INCLUDED #include "config.h" + +#ifndef ADNS_JGAA_WIN32 typedef unsigned char byte; +#endif + #include <stdarg.h> #include <assert.h>
16 years, 1 month
1
0
0
0
← Newer
1
...
33
34
35
36
37
38
39
...
66
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Results per page:
10
25
50
100
200