Commit graph

41903 commits

Author SHA1 Message Date
James Tabor 760e2b7930 - Fix warning.
svn path=/trunk/; revision=46454
2010-03-26 00:20:14 +00:00
Amine Khaldi d134425466 Fix build.
Dedicated to Timo ;)

svn path=/branches/header-work/; revision=46453
2010-03-25 23:40:31 +00:00
Timo Kreuzer b67e6b206a Merge from amd64 branch:
44762 (sserapion)
[rbuild]
- Automatically generate reactos.dff using the installfile and installbase attributes found in rbuild files.
-- Fixes race to grab reactos.dff on concurrent builds in the same tree.
-- Makes the result of make install, make livecd and make bootcd the same(some modules arent in reactos.dff but have installfile/base attributes, which means they got intto livecd/install but not bootcd!)

44763 (sserapion)
[rbuild]
Really fix mkhive command.

44764 (sserapion)
[rbuild]
- fix mkhive command try 2. 

svn path=/trunk/; revision=46452
2010-03-25 23:16:12 +00:00
Timo Kreuzer 6965a0af8a - Reduce diff to trunk
svn path=/branches/ros-amd64-bringup/; revision=46451
2010-03-25 21:29:59 +00:00
Johannes Anderwald d3ab548697 [DXSDK]
- Implement bdatif.h

svn path=/trunk/; revision=46450
2010-03-25 20:51:54 +00:00
Timo Kreuzer 13aa4a3d04 [RBUILD]
instead of defining -fno-set-stack-executable and -fno-optimize-sibling-calls in gcc.mak file, do it in ReactOS-i386.rbuild

svn path=/trunk/; revision=46449
2010-03-25 19:55:28 +00:00
Timo Kreuzer c20a4b4bb5 fix build
svn path=/trunk/; revision=46448
2010-03-25 19:32:45 +00:00
Timo Kreuzer bcd0ad3405 [HAL]
- Move architecture specific files into appropriate folders
- Move UP specific files into up folder

svn path=/trunk/; revision=46447
2010-03-25 19:23:09 +00:00
Timo Kreuzer 929bbc7b7c [HAL]
UP/MP cleanup:
- remove KxAcquireSpinLock from halp.h, use the one from ntoskrnl instead
- Use generic/spinlock.c in hal_generic_up and hal_generic_mp
- Delete mp/spinlock.c
- Move cmos spinlock functions to spinlock.c to make sure they are compiled for both up and mp
- Move wrappers around fastcall functions to misc.c, as they are identical on up/mp.

svn path=/trunk/; revision=46446
2010-03-25 18:37:59 +00:00
Amine Khaldi 2bce4e0e52 Sync with trunk head.
svn path=/branches/header-work/; revision=46444
2010-03-25 18:04:58 +00:00
Sir Richard e928936a69 [COMPBATT]: Composite Battery Driver Stub Interface to keep Mr. Gutman happy.
svn path=/trunk/; revision=46443
2010-03-25 14:26:04 +00:00
Cameron Gutman da0c010307 [ACPI]
- Add support for fixed power buttons
- Cleanup some extra junk
- Add a hack to prevent acquiring the mutex while in an ISR or DPC
- Button events are received now and "acpi_bus_generate_event" will appear in the debug log when a power/sleep button is pressed
- TODO: Implement IOCTL_GET_SYS_BUTTON_EVENT support so the power manager can recognize our button presses

svn path=/trunk/; revision=46442
2010-03-25 14:19:54 +00:00
Sir Richard 497c878f97 [CMBATT]: Use PCH.
svn path=/trunk/; revision=46441
2010-03-25 14:05:03 +00:00
Timo Kreuzer d488d92ff8 [BOOTCD/LIVECD]
Add -$(ARCH) to non-x86 bootcd and livecd image names.

svn path=/trunk/; revision=46440
2010-03-25 13:55:00 +00:00
Timo Kreuzer 077f0d7c3c [IDNDL]
Convert to spec

svn path=/trunk/; revision=46439
2010-03-25 13:15:37 +00:00
Timo Kreuzer 3c7051eca2 fix build
svn path=/trunk/; revision=46438
2010-03-25 13:09:43 +00:00
Timo Kreuzer 28e1c9e1c5 [NTVDM]
Only compile on x86 builds

svn path=/trunk/; revision=46437
2010-03-25 12:52:00 +00:00
Timo Kreuzer a80a2887aa Merge from amd64 branch:
45124
[USER32]
NtUserTranslateMessage: HKL -> UINT in 2nd parameter

45126 (tkreuzer)
[WIN32k] Fix build

45127 (sserapion)
[WIN32k] Fix build

svn path=/trunk/; revision=46436
2010-03-25 12:48:03 +00:00
Amine Khaldi 0474c721c7 [DDK]
- Move tvout.h to PSDK.

svn path=/branches/header-work/; revision=46435
2010-03-25 12:37:44 +00:00
Timo Kreuzer fb69e522da Merge from amd64-branch:
44501 (tkreuzer)
[NDK]
- Add CLIENT_ID32/64
- Create explicit 32/64 bit versions of PEB, GDI_TEB_BATCH and TEB, using macros.
- Fix some member names.


44503 (tkreuzer)
[CMD]
Fix a teb member name

44504 (tkreuzer)
[NTSOKRNL]
Fix a teb member name

44506 (tkreuzer)
[NDK]
fix a typo in the TEB definition

44511 (tkreuzer)
[NDK]
- Add Wx86ThreadState
- Add WinXP version of ACTIVATION_CONTEXT_STACK
- rtltypes doesn't depend on pstypes, but the opposite way around now

44512 (tkreuzer)
[NDK]
Fix some dependencies

44521 (tkreuzer)
[NTDKK]
- Don't use PEB::FastPeb(Un)LockRoutine, these members are deprecated since Windows 2003, use RtlEnter/LeaveCriticalSection instead.

44523 (tkreuzer)
[NTDLL]
Fix usage of PEB::KernelCallbacktable. It's a PVOID.

44524 (tkreuzer)
NDK]
- Add missing TEB member for Vista

44525 (tkreuzer)
[NDK]
Fix a TEB array size.

44526 (tkreuzer)
[USER32]
More fix of TEB::KernelCallbackTable usage

svn path=/trunk/; revision=46434
2010-03-25 12:22:59 +00:00
Amine Khaldi 9ac94def32 [DDK]
- Remove duplicate xmldsodid.h

svn path=/branches/header-work/; revision=46433
2010-03-25 12:07:42 +00:00
Timo Kreuzer e13ac2cb13 merge from amd64 branch:
34741 (tkreuzer)
[BOOTVID]
- make bootvid build for PLATFORM=PC instead of ARCH=i386 to share the files between i386 and amd64
- fix ULONG <-> pointer casts

svn path=/trunk/; revision=46432
2010-03-25 05:25:07 +00:00
Cameron Gutman 67c1ce90bd [NTOSKRNL]
- Handle devices that are run by their own bus drivers
- This could be done a bit nicer but it works

svn path=/trunk/; revision=46431
2010-03-25 05:16:31 +00:00
Timo Kreuzer 82569185be revert the changes to the old kdcom
svn path=/branches/ros-amd64-bringup/; revision=46430
2010-03-25 05:12:42 +00:00
Cameron Gutman 0bd14e99b4 [ACPI]
- Implement IOCTL_GET_SYS_BUTTON_CAPS
- Register and maintain PnP interfaces for thermal zones, buttons, lids, and processors

svn path=/trunk/; revision=46429
2010-03-25 05:11:24 +00:00
Timo Kreuzer 0750573b4e reduce diff to trunk
svn path=/branches/ros-amd64-bringup/; revision=46428
2010-03-25 05:09:09 +00:00
Timo Kreuzer fe68057a58 Merge from amd64-branch:
46394 (tkreuzer)
[FRAMEBUF_NEW]
- use compiler flags for x86 only

36969 (sginsberg)
[VIDEOPRT]
- Make videoprt compile for 64-bit
- Disable Int10 support as it uses x86 specific structures (is this support still available on amd64?)
- Disable VideoPortEnable/DisableInterrupt -- HalEnable/DisableSystemInterrupt are not apparently present on NT AMD64, so need to figure out what else to use (and if these routine are still present on amd64 videoprt)

The following this time for real:

40927 (tkreuzer)
[BMFD]
HGLYPH is an ULONG. Use offset to glyph entry as HGLYPH instead of the pointer to fix 64bit build.

41070 (tkreuzer)
[TCPIP]
fix a pointer to ULONG cast

41500 (tkreuzer)
[NDIS]
Pass ULONG* to MiniQueryInformation for the number of written bytes instead of ULONG_PTR*

41502 (tkreuzer)
[WDMAUD]
Make DeviceIndex a ULONG_PTR

44339 (sserapion)
[NDIS]
Fix ndis build.

svn path=/trunk/; revision=46427
2010-03-25 05:03:29 +00:00
Timo Kreuzer 5ddd37a1ec reduce diff to trunk
svn path=/branches/ros-amd64-bringup/; revision=46426
2010-03-25 04:22:20 +00:00
Cameron Gutman a00ac160d5 [NTOSKRNL]
- Fix an incorrect assumption which led to ACPI's enumerated buttons not being recognized by the power manager

svn path=/trunk/; revision=46425
2010-03-25 04:05:33 +00:00
Timo Kreuzer eb884f4969 Merge from amd64-branch:
36380 (tkreuzer)
[SCSIPORT]
Implement some functions that are forwarded to HAL on x86 build, but not on x64. Modify spec file (use preprocessor macro).

36397 (tkreuzer)
[SCSIPORT]
rename .spec to .pspec

36949 (sginsberg)
- Fix NTFS FSD compilation

36951 (sginsgerb)
[NE2000]
- Fix ne2000 compilation (treat pointer size as ULONG_PTR, correct function prototypes)

36958 (sginsberg)
[ISAPNP]
- Fix isapnp compilation for 64-bit

36961 (sginsberg)
[SERIAL]
- Make serial build for 64 bit -- explicitly cast first parameter to InterlockedCompareExchangePointer
to PVOID

36964 (sginsberg)
- Fix DXG 64-bit compilation

36972 (sserapion)
[VGA]
- When doing pointer arithmetic, ULONG_PTR is your friend

37234 (tkreuzer)
[SCSIPORT]
Fix scsiport, by using pspec again.

40927 (tkreuzer)
[BMFD]
HGLYPH is an ULONG. Use offset to glyph entry as HGLYPH instead of the pointer to fix 64bit build.

41070 (tkreuzer)
[TCPIP]
fix a pointer to ULONG cast

41500 (tkreuzer)
[NDIS]
Pass ULONG* to MiniQueryInformation for the number of written bytes instead of ULONG_PTR*

41502 (tkreuzer)
[WDMAUD]
Make DeviceIndex a ULONG_PTR

44339 (sserapion)
[NDIS]
Fix ndis build.

svn path=/trunk/; revision=46424
2010-03-25 03:50:46 +00:00
Cameron Gutman bec2c26ca3 [ACPI]
- Implement a DispatchCreateClose handler

svn path=/trunk/; revision=46423
2010-03-25 03:40:41 +00:00
Timo Kreuzer 2a334428fc Merge from amd64-branch:
34803 (sserapion)
Fix more warnings.
Convert pciidex to use spec file.

34864 (tkreuzer) // checkme vielleicht schon gemerged?
[NDIS]
fix some ULONG to pointer casts

34870 (tkreuzer)
[TCPIP]
- fix some pointer to ULONG casts

34874 (tkreuzer)
class2: fix ULONG to pointer cast

34877 (tkreuzer)
- fix LARGE_INTEGER to pointer cast

35781 (tkreuzer)
[NDIS]
define some fastcall functions to the normal functions on amd64

36011 (tkreuzer)
[NDIS]
Fix a ULONG to pointer cast.

36012 (tkreuzer)
[SCSIPORT]
more ulong <-> pointer fixes

svn path=/trunk/; revision=46422
2010-03-25 03:24:44 +00:00
Timo Kreuzer 0fc116b80c reduce diff to trunk
svn path=/branches/ros-amd64-bringup/; revision=46421
2010-03-25 02:58:46 +00:00
Timo Kreuzer 4a02701022 [ACPI]
Add back to build

svn path=/branches/ros-amd64-bringup/; revision=46420
2010-03-25 02:04:41 +00:00
Timo Kreuzer 7be6452a51 Merge from amd64-branch:
44036 (sserapion)
Seems that windows cares about manifests and a mismatched processor architecture is not good. Fix amd64 paint in windows.

44772 (sserapion)
Fix warning cast to 'unsigned int' loses precision.

svn path=/trunk/; revision=46419
2010-03-25 01:59:02 +00:00
Timo Kreuzer 720c15e46d Merge from amd64-branch:
36898 (sserapion)
- Fix 64bit advapi32 build.

35655 (sserapion)
Misc WIN64 fixes.
Implement InitializeCriticalSectionEx

43836 (sserapion)
Fix avicap32 build.

44510 (tkreuzer)
[IPHLPAPI]
Don't redefine _WIN32_WINNT to 0x500. When using the NDK we need at least 0x503 when compiling for 64 bit (XP64 is 502)

39335 (tkreuzer)
[IPHLPAPI]
Fix prototype of RtlAllocateHeap

38092 (sserapion)
[RPCRT4]
Fix 64bit-warnings.

44499 (sserapion)
[SYSSETUP]
Eliminate warning.

38100 (sserapion)
[ADVAPI32]
ULONG -> ULONG_PTR

svn path=/trunk/; revision=46418
2010-03-25 01:06:20 +00:00
Cameron Gutman e10113d22d [ACPI]
- Don't attempt to parse output arguments if none were returned

svn path=/trunk/; revision=46417
2010-03-25 00:35:36 +00:00
Cameron Gutman 25b4bd1bff [ACPI]
* Add support for ACPI_EVAL_INPUT_BUFFER_SIMPLE_INTEGER_SIGNATURE and ACPI_EVAL_INPUT_BUFFER_SIMPLE_STRING_SIGNATURE
 * Cmbatt is able to set the battery trip point now

svn path=/trunk/; revision=46416
2010-03-25 00:23:41 +00:00
Timo Kreuzer 8208ffdfed [MSVCRT]
Enable exports for _gmtime64, _localtime64, _time64

svn path=/trunk/; revision=46415
2010-03-25 00:04:00 +00:00
James Tabor 6d03f87e81 - Fix for gdibatch, does not help Acrobat reader 7.
svn path=/trunk/; revision=46414
2010-03-24 23:35:23 +00:00
Cameron Gutman c289730700 [ACPI]
- Fix a warning
 - Implement some IOCTL_ACPI_EVAL_METHOD handling (no input parameters are supported yet but it should be enough for what cmbatt needs it to do)

svn path=/trunk/; revision=46413
2010-03-24 23:13:51 +00:00
Timo Kreuzer 91796fd6b5 [BEEPMIDI]
Fix 64bit compilation

svn path=/trunk/; revision=46412
2010-03-24 23:12:31 +00:00
Amine Khaldi 15ada14c57 [DDK]
- Bring in the signedness warning fix by aicom.

svn path=/branches/header-work/; revision=46411
2010-03-24 23:04:11 +00:00
Timo Kreuzer bdc2ba7816 [NCI]
- Fix 64bit stubs
[RSYM64]
- fix linux compilation

svn path=/trunk/; revision=46410
2010-03-24 23:03:33 +00:00
Amine Khaldi 0f7b50812f [DDK]
- Move cfg.h and cfgmgr32.h to PSDK, introduce pragma once, apply consistent formatting, add missing definitions and improve several existing ones.
[UNIATA]
- DDKAPI -> NTAPI.

svn path=/branches/header-work/; revision=46409
2010-03-24 22:56:18 +00:00
Cameron Gutman 63dd61cc3d [DDK]
- Fix a signedness warning

svn path=/trunk/; revision=46408
2010-03-24 22:56:16 +00:00
Timo Kreuzer 670842fb2d [ACLEDIT]
remove $Id fields

svn path=/trunk/; revision=46407
2010-03-24 22:56:12 +00:00
Timo Kreuzer 36146b651f [NTOS]
- remove KeGetCurrentThread inline function, it's already in the wdm.h, reenable the exported function
- Add InitializeSListHead export
- Use RtlInitializeSListHead for InititializeSListHead
- Add hacks for WDK compilation
- Add ValidKernelPte/Pde
- Comment out MiSyncARM3WithROS, add a stub instead

svn path=/branches/ros-amd64-bringup/; revision=46406
2010-03-24 22:02:26 +00:00
Timo Kreuzer b6fae9f55b [RTL]
Fix RtlInitializeSListHead and RtlQueryDepthSList


svn path=/branches/ros-amd64-bringup/; revision=46405
2010-03-24 21:56:24 +00:00
Timo Kreuzer 55648f149b [NTOS]
- Multiple ULONG -> SIZE_T fixes
- Use SLIST_ENTRY, not SINGLE_LIST_ENTRY in InterlockedPushEntrySList, they are not the same!
- Fix InterlockedCompareExchangePointer usage
- _1MB is 1024 KB, not 1000
- Rename PDE_SIZE to PD_SIZE to reflect it's purpose (size of a page directory, not a page directory entry)
- Add PD_COUNT, PDE_COUNT and PTE_COUNT for amd64 (should rather use PTE_PER_PAGE etc and move them to arch specific files.
- Some more PFN_TYPE -> PFN_NUMBER

svn path=/branches/ros-amd64-bringup/; revision=46404
2010-03-24 20:36:12 +00:00