Commit graph

41478 commits

Author SHA1 Message Date
Timo Kreuzer 10100513f3 [NDK]
- Move RtlFillMemoryUlong into user mode only area
[XDK]
- Add KeFlushIoBuffers for amd64

svn path=/branches/header-work/; revision=46389
2010-03-24 03:21:51 +00:00
Timo Kreuzer 4e669a2682 [XDK]
- Add amd64 KeAcquireSpinLock
- move KeGetCurrentIrql prototype to x86 specific file

svn path=/branches/header-work/; revision=46386
2010-03-24 02:20:51 +00:00
Timo Kreuzer 73c134f384 [XDK]
- Fix and update some amd64 definitions

svn path=/branches/header-work/; revision=46385
2010-03-24 01:39:36 +00:00
Timo Kreuzer 1be8cd9ee4 [XDK] Move more stuff from ntddk.template.h into appropriate headers
svn path=/branches/header-work/; revision=46365
2010-03-23 21:04:48 +00:00
Timo Kreuzer 83fc2214b9 [XDK]
- add x86/ke.h(mm.h and amd64/mm.h
- cleanup ntddk.template.h, moving stuff into approproate headers

svn path=/branches/header-work/; revision=46364
2010-03-23 20:18:51 +00:00
Timo Kreuzer 0ce290c185 [XDK]
- cleanup wdm.template.h, move to appropriate headers
- move ntddk stuff after wdm stuff in extypes.h
[NTDDK/WDM]
- Regenerate headers

svn path=/branches/header-work/; revision=46363
2010-03-23 19:24:29 +00:00
Amine Khaldi 52281dc572 - Move atsmedia.h to PSDK, introduce pragma once and remove the comments block and the header guard.
- NTDDK -> NTAPI
- DDKCDECLAPI -> __cdecl
- Update wdm.h to reflect the recent XDK changes
- Improve bdasup.h, apply a consistent formatting, introduce pragma once and add the missing BDA_TOPOLOGY_JOINT and KSM_PIN_PAIR definitions

svn path=/branches/header-work/; revision=46362
2010-03-23 18:38:46 +00:00
Timo Kreuzer 47b1e82248 [WDM] Disable some warnings on MSVC
svn path=/branches/header-work/; revision=46361
2010-03-23 18:34:15 +00:00
Timo Kreuzer 6f88dd3240 [XDK]
Improve BYTES_TO_PAGES macro

svn path=/branches/header-work/; revision=46360
2010-03-23 17:09:17 +00:00
Timo Kreuzer 6fae56fbbb [NTIFS]
- Don't check for non existing NTDDI_NT4 (MS typo)
[XDK] 
- Fix PGPE_CONNECT_VECTOR2
- Don't check for non existing NTDDI_WIN2003 (MS typo)

svn path=/branches/header-work/; revision=46359
2010-03-23 16:58:28 +00:00
Timo Kreuzer 5bfe925b10 [XDK]
- Reorder iotypes, putting wdm stuff before ntddk stuff (dependencies)
- Update wdm.h and ntddk.h
- cleanup ntdef.h, use C-style comments

svn path=/branches/header-work/; revision=46358
2010-03-23 16:42:06 +00:00
Timo Kreuzer f36be5691c DDKAPI -> NTAPI
svn path=/branches/header-work/; revision=46357
2010-03-23 16:38:10 +00:00
Amine Khaldi 9219be6631 [XDK]
- Add the missing definitions needed to autogenerate ntddk.h
- Add ntddk.template.h as a template for autogenerating ntddk.h
- Adjust generate.bat to generate ntddk.h too.
[DDK]
- Introduce the autogenerated ntddk.h into DDK.

svn path=/branches/header-work/; revision=46348
2010-03-23 00:27:32 +00:00
Amine Khaldi 378b31381a [DDK]
- Remove some duplicated definitions.

svn path=/branches/header-work/; revision=46340
2010-03-22 12:54:34 +00:00
Amine Khaldi b5c5fd533b [PSDK]
- Add devpropdef.h and evntprov.h
- Fix UOW redefinition.
[DDK]
- Fix PGUID redefinition.
[XDK]
- Add wmitypes.h and include it in wdm.h autogeneration template.
- Move several definitions to their appropriate places.
- Add HalGetDmaAlignment, LEGACY_BUS_INFORMATION, IO_DEVICE_EJECT_CALLBACK, PLUGPLAY_PROPERTY_PERSISTENT, and several missing Io*, DEVICE_*, REENUMERATE_*, PCI_*, PNP_*, Ob*, OB_*, PO_*, Wmi*, Etw* and ACPI related definitions.
- Add CmKeyObjectType to exported object types.
- Fix UOW redefinition.
- Group some related definitions.
[WDM]
- Update wdm.h to reflect XDK changes.

svn path=/branches/header-work/; revision=46329
2010-03-22 01:00:05 +00:00
Amine Khaldi e9047cd524 [DDK]
- Fix PIO_CSQ_INSERT_IRP_EX redefinition.
[NTDDK]
- Remove a couple of duplicate definitions.
[XDK]
- Move several definitions to their appropriate places.
- Add COMPUTE_PAGES_SPANNED, NODE_REQUIREMENT, MM_ANY_NODE_OK, PNTFS_DEREF_EXPORTED_SECURITY_DESCRIPTOR, PsWrapApcWow64Thread, IRP_MN_DEVICE_ENUMERATED, USE_DMA_MACROS, NO_LEGACY_DRIVERS, FO_FLAGS_VALID_ONLY_DURING_CREATE, LOADER_PARTITION_INFORMATION_EX, BOOTDISK_INFORMATION_LITE, IO_CSQ_INSERT_IRP_EX, STATUS_CONTINUE_COMPLETION and several missing Ex*, REG_*, Cm*, Mm*, SL_*, Io*, IO_*, CONNECT_*, WDM_* and WMI* definitions.
- Update ExGetCurrentResourceThread and PADAPTER_OBJECT.
- Group some related definitions.
[WDM]
- Update wdm.h to reflect XDK changes.

svn path=/branches/header-work/; revision=46290
2010-03-20 23:01:57 +00:00
Amine Khaldi a896fedfea [NTOSKRNL]
- Remove duplicate SINGLE_GROUP_LEGACY_API definition.
[PSDK]
- Add missing GROUP_AFFINITY structure.
[NTDDK]
- Remove ExFreePool definition.
[NDK]
- Remove duplicate PROCESSOR_CACHE_TYPE and CACHE_DESCRIPTOR definitions (they now exist in wdm.h).
[XDK]
- Move several definitions to their appropriate places.
- Add PROCESSOR_CALLBACK_FUNCTION, INVALID_PROCESSOR_INDEX, XSTATE_SAVE, LOOKASIDE_MINIMUM_BLOCK_SIZE and several missing Ke*, KBUGCHECK_*, KB_ADD_PAGES_FLAG_*, EXCEPTION_*, KE_PROCESSOR_CHANGE_*, Ex*, FirstEntrySList, and EX_*, RESOURCE_* definitions.
- Update ExAllocateFromNPagedLookasideList, ExAllocateFromPagedLookasideList, ExFreeToPagedLookasideList, OWNER_ENTRY and ERESOURCE.
- Group some related definitions.
[WDM]
- Update wdm.h to reflect XDK changes.

svn path=/branches/header-work/; revision=46287
2010-03-20 16:58:43 +00:00
Amine Khaldi ea3378dc87 [XDK]
- Move several definitions to their appropriate places.
- Add FIELD_OFFSET, FIELD_SIZE, POOL_TAGGING, IF_DEBUG, IF_NTOS_DEBUG, LOOKASIDE_CHECK, KIPI_COUNTS, KTIMER_ACTUAL_LENGTH, LOGICAL_PROCESSOR_RELATIONSHIP, LTP_PC_SMT, SYSTEM_LOGICAL_PROCESSOR_INFORMATION, NUMA_NODE_RELATIONSHIP, GROUP_RELATIONSHIP, SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX, SINGLE_GROUP_LEGACY_API, KMESSAGE_SERVICE_ROUTINE, KSEMAPHORE_ACTUAL_LENGTH and several missing CACHE_*, PROCESSOR_* and KAPC_* definitions.
- Group some related definitions.
- Base several ASSERT_* macros on NT_ASSERT instead of ASSERT.
[WDM]
- Update wdm.h to reflect XDK changes.

svn path=/branches/header-work/; revision=46284
2010-03-20 11:47:30 +00:00
Amine Khaldi 34c17935e0 [EXT2FSD]
- Remove a couple of duplicate definitions (that exist now in wdm.h).
[XDK]
- Move several definitions to their appropriate places.
- Group some related definitions.
- Add vKdPrintEx, DEFINE_GUIDEX, STATICGUIDOF, RTLVERLIB_DDI, LOWBYTE_MASK, FIRSTBYTE, SECONDBYTE, THIRDBYTE, FOURTHBYTE and several missing TRANSACTIONMANAGER_*, TRANSACTION_*, RESOURCEMANAGER_*, ENLISTMENT_*, PFN_NT_*, Nt*, SHORT_*, LONG_*, PFN_RTL_*, LONGLONG_* and Rtl* definitions.
- Fix RtlCheckBit definition.
[WDM]
- Update wdm.h to reflect XDK changes.

svn path=/branches/header-work/; revision=46276
2010-03-19 20:01:04 +00:00
Amine Khaldi 9c676e382b [XDK]
- Move several definitions to their appropriate places.
- Add DEVICE_FLAGS, InitializeListHead32, AppendTailList, RTL_QUERY_REGISTRY_NOSTRING, NT_VERIFY, NT_VERIFYMSG, NT_VERIFYMSGW, SLIST_ENTRY32, SLIST_HEADER32 and several missing SERVICE_*, CM_*, EISA_* and IRQ_*.
- Update SLIST_HEADER.
[WDM]
- Update wdm.h to reflect XDK changes.

svn path=/branches/header-work/; revision=46273
2010-03-19 14:10:13 +00:00
Amine Khaldi de2aade285 [XDK]
- Move several definitions to their appropriate places.
- Add MONITOR_DISPLAY_STATE, COUNTED_REASON_CONTEXT, PowerRequestMaximum, SET_POWER_SETTING_VALUE, NOTIFY_USER_POWER_SETTING and several missing GUIDs, APPLICATIONLAUNCH_SETTING_VALUEKEY_*, PERFSTATE_POLICY_CHANGE_*, PROCESSOR_PERF_BOOST_POLICY_*, CORE_PARKING_POLICY_CHANGE_*, POWER_*, SYSTEM_POWER_*, IOCTL_* and DIAGNOSTIC_REASON_*
[WDM]
- Update wdm.h to reflect XDK changes.

svn path=/branches/header-work/; revision=46272
2010-03-19 12:47:29 +00:00
Amine Khaldi 79bd72fbf8 [XDK]
- Move PORT_MAXIMUM_MESSAGE_LENGTH, INTERFACE_TYPE and guiddef.h inclusion to their appropriate places.
- Add PIO_APC_ROUTINE_DEFINED and several missing FILE_*, IO_* and REG_* definitions.
- Remove pshpack8 inclusion around FILE_BASIC_INFORMATION.
- Update KEY_INFORMATION_CLASS.
[WDM]
- Update wdm.h to reflect XDK changes.

svn path=/branches/header-work/; revision=46271
2010-03-19 11:36:36 +00:00
Amine Khaldi 9c88f9fb2b [XDK]
- DDKAPI -> NTAPI
[WDM]
- Update wdm.h to reflect XDK changes.

svn path=/branches/header-work/; revision=46268
2010-03-18 22:48:53 +00:00
Amine Khaldi b6fa074a1c [XDK]
- Apply a consistent formatting.
[WDM]
- Update wdm.h to reflect XDK changes.

svn path=/branches/header-work/; revision=46267
2010-03-18 22:45:30 +00:00
Amine Khaldi aa1d8ab8bc [XDK]
- Add KeNumberProcessors, XSTATE_CONTEXT, MINIMAL_XSTATE_AREA_LENGTH, LOCK_QUEUE_WAIT_BIT, LOCK_QUEUE_OWNER_BIT and some missing XSAVE_*, CONTEXT_* and RTL_CONTEXT_* definitions
- PKINTERRUPT_ROUTINE : DDKAPI -> NTAPI
- Add some C_ASSERTs
[WDM]
- Update wdm.h to reflect XDK changes.

svn path=/branches/header-work/; revision=46265
2010-03-18 17:16:54 +00:00
Amine Khaldi b797eef5ea Sync with trunk head (part 1 of 2)
svn path=/branches/header-work/; revision=46262
2010-03-18 15:37:13 +00:00
Amine Khaldi b2c1de9860 [PSDK]
- Add several missing ntiologc.h definitions.
[XDK]
- Include ntiologc.h in wdm.h
[WDM]
- Update wdm.h to reflect XDK changes.

svn path=/branches/header-work/; revision=46261
2010-03-18 14:14:27 +00:00
Amine Khaldi 0d6a8c1681 [NTDDK]
- Group related definitions.
[XDK]
- Add PCI_CAPABILITIES_HEADER.
[WDM]
- Update wdm.h to reflect XDK changes.

svn path=/branches/header-work/; revision=46260
2010-03-18 13:37:50 +00:00
Amine Khaldi 0c6a2ac923 [NTDDK]
- Group some related definitions.

svn path=/branches/header-work/; revision=46259
2010-03-18 13:19:50 +00:00
Amine Khaldi 8885f260b3 [NTDDK]
- Group related definitions.
- Add EXTENDED_AGP_REGISTER and several missing PCI_*, PCIX_*, and OSC_* definitions

svn path=/branches/header-work/; revision=46258
2010-03-18 12:54:44 +00:00
Amine Khaldi 6084e62d15 [NTDDK]
- Group related definitions.
- Add missing NTAPI attribute to IoCreateFileSpecifyDeviceObjectHint and IoCreateFileEx.
- Fix a FIXME.
[SERIAL]
- Remove redundant IoAttachDeviceToDeviceStackSafe definition.
[MCE]
- Add mce.h definitions.

svn path=/branches/header-work/; revision=46256
2010-03-18 00:36:45 +00:00
Amine Khaldi e5aff20503 [NTDDK]
- Group related definitions.
- Add PHYSICAL_COUNTER_RESOURCE_DESCRIPTOR_TYPE, PHYSICAL_COUNTER_RESOURCE_DESCRIPTOR, PHYSICAL_COUNTER_RESOURCE_LIST and several missing Hal*, pHal* and HAL_* definitions.

svn path=/branches/header-work/; revision=46255
2010-03-17 22:44:46 +00:00
Timo Kreuzer 814940c42b [NTOS]
Add DPRINTs to tell if SYSENTER is detected. Requested by Christoph for testing the test machine.

svn path=/trunk/; revision=46253
2010-03-17 21:26:04 +00:00
Amine Khaldi a141adc1a5 [NTDDK]
- Group related definitions.
- Update ARBITER_PARAMETERS.
- Add PS_CREATE_NOTIFY_INFO, PCREATE_PROCESS_NOTIFY_ROUTINE_EX, IMAGE_INFO_EX, TXN_PARAMETER_BLOCK, TXF_MINIVERSION_DEFAULT_VIEW, AGP_TARGET_BUS_INTERFACE_STANDARD, PNP_LOCATION_INTERFACE, and several missing Ps*, IO_*, DO_*, ARBITER_* and Io*.
- IMAGE_INFO : ULONG Reserved:22 -> ULONG Reserved:21.

svn path=/branches/header-work/; revision=46252
2010-03-17 16:25:03 +00:00
Christoph von Wittich f891c7f43b [USER32]
reduce diff to wine

svn path=/trunk/; revision=46251
2010-03-17 16:20:55 +00:00
Timo Kreuzer 1dd7c3a8e0 [NTOS]
I forgot to set the exit function for systems without sysenter/sysexit support. Should fix sysreg.

svn path=/trunk/; revision=46250
2010-03-17 16:17:16 +00:00
Amine Khaldi 32537e4bce [NTDDK]
- Fix PIMAGE_NT_HEADERS{32,64} and PCONTEXT redefinitions
- Remove duplicate SINGLE_GROUP_LEGACY_API
[NTIFS]
- Remove several duplicate definitions
[NTIMAGE]
- Fix PIMAGE_NT_HEADERS{32,64} redefinitions
[NDK]
- Fix PPEB redefinition
[XDK]
- Go back to the previous PEPROCESS and PETHREAD definitions
[WDM]
- Update wdm.h (to reflect xdk changes)

svn path=/branches/header-work/; revision=46248
2010-03-17 14:55:23 +00:00
Timo Kreuzer 69330a5795 [NTOS]
Rewrite Trap exits stubs in raw assembly (2nd try) and remove inline assembly. Bugcheck in KiTrap0DHandler, when the fault was not handled. Replace code patching for sysexit vs iret with a function pointer. Slightly refactor KiSystemServiceHandler/KiFastCallEntryHanlder. Unroll the loop in the systemcall handler and use volatile keyword when reloading TrapFrame and DescriptorTable from the new stack after converting to gui thread to prevent the compiler from optimizing it away (or moving it out of the loop). Add an asm macro KiCallHandler, which expands to call on debug builds to make sure backtraces work as expected and to jmp on release builds for improved performance. Modify KiExitV86Trap to always exit and add DECLSPEC_NORETURN. Use __debugbreak() instead of while(TRUE) on errors in KiExitTrapDebugChecks.
The old code hat 2 issues: one was restoring segments in KiExitV86Trap when they shouldn't be, leading to a bugcheck. And the other was a long hang (5 mintes or more) in 3rd stage on qemu when selecting RosDbg, caused by the KiFastCallExitHandler function pointer being initialized with a pointer to the iret handler. Initializing it in code solved the issue. To figure out why is left as an exercise to the reader.

svn path=/trunk/; revision=46247
2010-03-17 13:12:46 +00:00
Kamil Hornicek b6e52b15e3 [WIN32K]
When adding new glyph cache entry convert the glyph bitmap with proper alignment to comply with the new code in EngCreateBitmap and remove the corresponding hack from SURFMEM_bCreateDib.

[FREETYPE]
When doing 1BPP -> 8BPP conversion set all 8 bits not only the LSB. (Freetype devs were notified of this issue)
See issue #5244 for more details.

svn path=/trunk/; revision=46246
2010-03-17 12:11:55 +00:00
Amine Khaldi e78ab7139d [XDK]
- Improve PEPROCESS and PETHREAD definitions
- Remove PDEVICE_HANDLER_OBJECT
[WDM]
- Update wdm.h to reflect the changes to XDK
[NTDDK]
- Remove some duplicates and group some related definitions

svn path=/branches/header-work/; revision=46245
2010-03-17 11:07:59 +00:00
Amine Khaldi 463f7f48ab [XDK]
- Remove duplicate QUOTA_LIMITS
[WDM]
- Update wdm.h with the recent changes to XDK

svn path=/branches/header-work/; revision=46244
2010-03-17 10:16:54 +00:00
Cameron Gutman cc5a045b54 - Enable ACPI
- Please send all complaints to roswarrior ;)

svn path=/trunk/; revision=46243
2010-03-17 09:25:55 +00:00
Cameron Gutman 2545746a80 - Set the resource pointer back to the start of the list before looping a second time
- Remove the duplicate OSL
 - Disable more debug prints
 - ROS with ACPI has been booted successfully on VirtualBox (with additions), QEMU, and VMware

svn path=/trunk/; revision=46242
2010-03-17 09:25:07 +00:00
Cameron Gutman 44b4c1e7d1 - Check that the memory location that we are trying to read is valid
- Remove the VMware hack
 - ACPI works on all tested VMs now (QEMU, VirtualBox, and VMware)
 - Just a resource code issue remains and prevents us from enabling ACPI by default

svn path=/trunk/; revision=46241
2010-03-17 08:48:57 +00:00
Cameron Gutman 82b8272584 - Check that the device number is not invalid
- ACPI now crashes later on VMware

svn path=/trunk/; revision=46240
2010-03-17 07:16:08 +00:00
Cameron Gutman fa481444a7 - Don't acquire the mutex in the ISR handler because we're at a raised IRQL
- Fixes VirtualBox Additions with ACPI enabled

svn path=/trunk/; revision=46239
2010-03-17 06:19:01 +00:00
Cameron Gutman e77675a0a9 - Define NDEBUG and demote several non-critical debug prints to DPRINT
svn path=/trunk/; revision=46238
2010-03-17 05:30:22 +00:00
Cameron Gutman 6c45294b53 - Add a hack to disable ACPI if VMware is detected
- This hack circumvents the main blocker that prevents enabling ACPI in trunk

svn path=/trunk/; revision=46237
2010-03-17 05:02:06 +00:00
Christoph von Wittich 85b127e4c1 [USER32]
reduce diff to wine

svn path=/trunk/; revision=46236
2010-03-17 00:11:31 +00:00
Amine Khaldi a60d4bd207 [NTDDK]
- Group related definitions
- Add several missing Mm* and Se*

svn path=/branches/header-work/; revision=46235
2010-03-17 00:01:55 +00:00