Commit Graph
39710 Commits
Author SHA1 Message Date
Samuel Serapion 321196255a - re-add explorer (old one) to build, it builds.
- use amd64 specific manifest file.
- still not a valid exe according to windows 7

svn path=/branches/ros-amd64-bringup/; revision=44124
2009-11-13 09:24:35 +00:00
Timo Kreuzer 2c2f893be1 fix a typo
svn path=/branches/ros-amd64-bringup/; revision=44123
2009-11-13 02:16:15 +00:00
Timo Kreuzer 2e92cb2a4c Use the kernel mode address for the gdt/idt
svn path=/branches/ros-amd64-bringup/; revision=44095
2009-11-11 04:29:05 +00:00
Timo Kreuzer d3d5631e62 - Correct implementations of MiAddressToP*e() would help a bit... implement them as inline functions.
svn path=/branches/ros-amd64-bringup/; revision=44088
2009-11-11 01:53:48 +00:00
Timo Kreuzer a501510763 [MM]
Implement MmIsAddressValid for amd64.

svn path=/branches/ros-amd64-bringup/; revision=44073
2009-11-10 04:19:43 +00:00
Timo Kreuzer 81a17fc8f4 add missing file
svn path=/branches/ros-amd64-bringup/; revision=44072
2009-11-10 03:36:57 +00:00
Timo Kreuzer 14914c99db fix build of ntoskrnl
svn path=/branches/ros-amd64-bringup/; revision=44071
2009-11-10 03:30:58 +00:00
Timo Kreuzer 843b9ee1eb Merge trunk HEAD (r44067)
svn path=/branches/ros-amd64-bringup/; revision=44069
2009-11-10 02:40:48 +00:00
Timo Kreuzer 82c97ac922 [MM]
- Fix MiAddressToP*e macros
- move miarm constants
- set MmPfnDatabase address
- fix PageCount for pfn database mapping (round up)

svn path=/branches/ros-amd64-bringup/; revision=44067
2009-11-10 00:54:46 +00:00
Timo Kreuzer c203c7f36c don't anable interrupts as long as that's all broken, this way we make it a bit further...
svn path=/branches/ros-amd64-bringup/; revision=44066
2009-11-10 00:50:27 +00:00
Timo Kreuzer c9f7c2317c Use LoaderMemoryData instead of LoaderSpecialMemory for page tables
svn path=/branches/ros-amd64-bringup/; revision=44065
2009-11-10 00:48:09 +00:00
Timo Kreuzer 67918b7bd5 [KE]
- implement KiPageFault

svn path=/branches/ros-amd64-bringup/; revision=44064
2009-11-09 23:37:54 +00:00
Stefan Ginsberg b4835e6bad - Add KCALLOUT_FRAME to define the kernel callback stack layout during user mode callbacks. Define the NextCallback and FramePointer members of the debugger data block more portably with this.
- AMD64's is a copy of x86's to match asm.h's the assembly offsets. ARM's is a stub containing two necessary members to have some offsets for the debugger data block.
- Add ARM stub for KiCallUserMode as this is referenced from the debugger data block.

svn path=/trunk/; revision=44063
2009-11-09 23:19:03 +00:00
Stefan Ginsberg ccd3b00fd2 - Fix unsigned/signed compare, spotted by Christoph
svn path=/trunk/; revision=44062
2009-11-09 23:07:04 +00:00
Stefan Ginsberg a9f0dd5a8d - Implement the generic bus handler support and initialization.
- Add missing hack flags for ACPI hacks.
- Add the hack flags to the registry.

svn path=/trunk/; revision=44061
2009-11-09 22:59:49 +00:00
KJK::Hyperion 652e881f54 ... on the other hand, O_BINARY is a Win32 thing
svn path=/trunk/; revision=44060
2009-11-09 22:56:06 +00:00
KJK::Hyperion f93a056987 modified base/shell/explorer/notifyhook/notifyhook.def
modified   dll/3rdparty/mesa32/src/drivers/windows/icd/mesa.def
modified   dll/nls/idndl/idndl.def
modified   dll/nls/normaliz/normaliz.def
modified   drivers/video/font/ftfd/freetype.def
   Soon, the rbuild "dllname" attribute will have no effect for .def files (only .spec/.pspec): prepare the sources for it by specifying the DLL name in the .def files themselves with the LIBRARY directory

svn path=/trunk/; revision=44059
2009-11-09 22:49:18 +00:00
KJK::Hyperion 34cce6f897 modified tools/pefixup.c
MinGW provides a good enough POSIX-like environment to do away with a couple platform checks/hacks
   Print error messages on stderr instead of stdout
   Don't print anything when pefixup does nothing - "no news is good news"

svn path=/trunk/; revision=44058
2009-11-09 22:42:17 +00:00
Stefan Ginsberg 6fcf0fd7b8 - Set and check for the correct PTE write bits on x86 SMP. The MP kernel is now functional again.
svn path=/trunk/; revision=44057
2009-11-09 22:05:36 +00:00
Timo Kreuzer 9edbc02f78 Fix my broken copy pasta, spotted by talley
svn path=/branches/ros-amd64-bringup/; revision=44056
2009-11-09 21:49:56 +00:00
Timo Kreuzer 906cec399e [KE]
- Fix KeContextToTrapFrame and KeTrapFrameToContext to use the ExceptionFrame and set CS/SS for CONTEXT_CONTROL flag
- Implement _InternalDispatchException, that sets up the ExceptionRecord and ExceptionFrame and calls KiDispatchException
This fixes wrong register value display in WinDbg

svn path=/branches/ros-amd64-bringup/; revision=44055
2009-11-09 21:44:29 +00:00
Stefan Ginsberg 1a3c56692d - Fix build with neither KDBG or _WINKD_ defined -- ReactOS KD wrapper uses the safe memory routines too, so only skip kdmemsup.c if compiling for _WINKD_.
svn path=/trunk/; revision=44054
2009-11-09 21:38:26 +00:00
Timo Kreuzer b291738862 [NDK]
- Add KEXCEPTION_FRAME

svn path=/branches/ros-amd64-bringup/; revision=44053
2009-11-09 21:03:57 +00:00
Timo Kreuzer ca606032fe [NDK]
- Add KEXCEPTION_FRAME offsets

svn path=/branches/ros-amd64-bringup/; revision=44052
2009-11-09 19:49:47 +00:00
Johannes Anderwald 43a6379cc0 - Fix bug introduced 18942 revisions ago
svn path=/trunk/; revision=44050
2009-11-09 17:43:12 +00:00
Dmitry Gorbachev db62b33f92 Simple optimization in RApps. Patch by Love Nystrom. Bug #4952.
svn path=/trunk/; revision=44049
2009-11-09 15:34:18 +00:00
Timo Kreuzer 8413bc04b7 fix build of ntoskrnl
svn path=/branches/ros-amd64-bringup/; revision=44047
2009-11-09 13:42:36 +00:00
Samuel Serapion 4e273afd0f Fix ws2_32 64bit build (2 of 2)
svn path=/branches/ros-amd64-bringup/; revision=44045
2009-11-09 08:57:37 +00:00
Samuel Serapion c2da24df73 Fix ws2_32 64bit build (1 of 2)
svn path=/branches/ros-amd64-bringup/; revision=44044
2009-11-09 08:56:59 +00:00
Samuel Serapion bc8ddc9638 Sync with trunk and additional 64bit build hacks^H^H^H^H^H fixes.
svn path=/branches/ros-amd64-bringup/; revision=44041
2009-11-09 08:31:11 +00:00
Samuel Serapion 23f1416f6e Fix 32bit build.
svn path=/branches/ros-amd64-bringup/; revision=44040
2009-11-09 08:28:59 +00:00
Samuel Serapion 1f946323bb Fix mmTaskCreate and mciGetDriverData prototypes per MSDN
svn path=/branches/ros-amd64-bringup/; revision=44039
2009-11-09 08:27:48 +00:00
Samuel Serapion c465970ad0 Fix Build.
svn path=/branches/ros-amd64-bringup/; revision=44037
2009-11-09 07:17:03 +00:00
Samuel Serapion 5ad4bf2911 Seems that windows cares about manifests and a mismatched processor architecture is not good. Fix amd64 paint in windows.
svn path=/branches/ros-amd64-bringup/; revision=44036
2009-11-09 07:13:48 +00:00
Timo Kreuzer 2e7b3fde50 [MM]
- Halfplement MmArmInitSystem, it's broken atm
- Update some variable drfinitions from ULONG to ULONG_PTR
- Add some amd64 specific constants

svn path=/branches/ros-amd64-bringup/; revision=44035
2009-11-09 06:46:31 +00:00
Timo Kreuzer 256a3cb5cc - Move the hack for MmUpdatePageDir before KeInitializeThread where it belongs.
svn path=/branches/ros-amd64-bringup/; revision=44034
2009-11-09 06:29:46 +00:00
Stefan Ginsberg afd1ab1b6d - HAL uses HARDWARE_PTE, not MMPTE_HARDWARE, so remove broken SMP fix
svn path=/trunk/; revision=44033
2009-11-08 22:17:05 +00:00
Stefan Ginsberg aaad231bf1 - Fix work around for the cmpxchg8b lock errata work around -- don't set write protection if the kernel hasn't set it yet. Move the code out to HalpBiosDisplayReset so we can keep track of this. Also set the correct bit on SMP systems.
svn path=/trunk/; revision=44032
2009-11-08 21:42:28 +00:00
Stefan Ginsberg a3012cacae - Add freeze.c to the build too
svn path=/trunk/; revision=44031
2009-11-08 21:22:24 +00:00
Stefan Ginsberg 4e140f4d79 - Move processor freeze support out from x86 cpu.c to new generic freeze.c as these routines are quite generic.
svn path=/trunk/; revision=44030
2009-11-08 21:10:23 +00:00
Stefan Ginsberg 9475cf4cbc - Make WinLdr's loading screen display the boot method (NT) instead of operating system name (Windows).
svn path=/trunk/; revision=44027
2009-11-08 11:52:23 +00:00
Stefan Ginsberg 335f8ac467 - Fix _WINKD_ build breakage from 44023 -- missed to commit the .rbuild change for the renamed kdsup.c files
svn path=/trunk/; revision=44026
2009-11-08 11:41:35 +00:00
Timo Kreuzer a97697982b [MM]
- implement MmInitGlobalKernelPageDirectory, MmInitializeHandBuiltProcess
- fix MmUpdatePageDir

svn path=/branches/ros-amd64-bringup/; revision=44025
2009-11-08 03:49:08 +00:00
Timo Kreuzer a1908d10b4 [MM]
Implement amd64 versions for MiIsHyperspaceAddress, MiFlushTlb, MiGetPteForProcess, MiGetPteValueForProcess, MmGetPfnForProcess, MmGetPhysicalAddress, MmIsPagePresent, MmIsPageSwapEntry, MmIsDirtyPage, MmGetPageProtect, MmSetPageProtect, MmSetCleanPage, MmSetDirtyPage, MmDeleteVirtualMapping

svn path=/branches/ros-amd64-bringup/; revision=44024
2009-11-08 02:39:47 +00:00
Stefan Ginsberg ef21516cc4 - Disable the MiCacheImageSymbols call in MmLoadSystemImage for KD too as this hack is required for rossym rather than KDBG. Fixes detection of non-boot driver images by WinDbg.
- Add another hack to freeldr.c to make sure that HAL is the second entry in the Load Order list -- detect if it isn't and insert it as the second entry manually if it isn't.
- KdbInitialize can now assume that the 2nd entry in the Load Order list is HAL, just like ExpLoadBootSymbols and KD does, so get the Loader Entry directly instead of searching for it.
- Move KiBootTss and KiBootGdt to freeldr.c as this is where they belong -- they are not required for NTLDR/WINLDR boot style and are only used directly in freeldr.c.
- Get rid of the AcpiTableDetected variable from freeldr.c. Instead, set the AcpiTable entry to something and make PoInitSystem check for that instead to preserve the old behavior.
- Implement KdpGetFirstParameter and KdpGetSecondParameter for ARM too -- just retrieve R3/R4 here. Also rename those macros to clarify what parameters we are retrieving.
- Add MmIsSessionAddress stub and use it from KD handle session space properly in the Memory Query API, and ASSERT that we are not trying to do a copy to/from session space in MmDbgCopyMemory as we don't handle it properly. Put this in mmdbg.c for now as we don't implement session space, and it is only called from KD right now.
- Rename the 3 kdsup.c files to kdx86.c, kdx64.c and kdarm.c to differ them from each other.
- Implement KdpAllowDisable -- just check if any processor breakpoints are set on any processor in the system and disallow the disable if so. The routine is now architecture dependant, so move it to the appropriate files.
- Get rid of the MmFreeLdr* variables too. These have been deprecated for some time now.
- The ModuleObject and ImageBaseAddress parameters of MmLoadSystemImage are not optional so don't treat them as such, and don't zero initialize them as callers shouldn't rely on this.
- Set LDRP_ENTRY_NATIVE instead of LDRP_COMPAT_DATABASE_PROCESSED to mark the image as a native image. Also fix the value of LDRP_ENTRY_NATIVE.
- Fix definition of LDR_DATA_TABLE_ENTRY -- the Checksum member should be in the union too.
- Remove some unnecessary externs for stuff we now define globally in the kernel headers.
- Rename some variables in KD to better match the logic.
- Move some x86 only stuff from global ke.h and ke_x.h to the x86 dependent ke.h. Remove DR_ACTIVE_MASK as it has been deprecated/unused for a while now.

svn path=/trunk/; revision=44023
2009-11-08 01:13:49 +00:00
Stefan Ginsberg 65ebf6adac - Add HAL PCI tables required for future work.
svn path=/trunk/; revision=44022
2009-11-08 00:22:29 +00:00
Cameron Gutman 024d413ccb - Stop using the TCPLock to protect all entries into the IP lib
- Instead use TCPLock only to protect entries into oskittcp

svn path=/trunk/; revision=44021
2009-11-07 20:41:57 +00:00
Aleksey Bragin 4983e19cca - Add defines needed by explorer-new. Fixes build.
svn path=/trunk/; revision=44019
2009-11-07 20:18:04 +00:00
Timo Kreuzer aa636e0ec3 cleanup amd64 specific Mm stubs
svn path=/branches/ros-amd64-bringup/; revision=44018
2009-11-07 20:06:33 +00:00
Aleksey Bragin 1baf1655f4 - Remove accidentally committed Wineisms. Build is fixed.
svn path=/trunk/; revision=44015
2009-11-07 19:53:41 +00:00