reactos.git
12 years ago[HAL]
Timo Kreuzer [Mon, 12 Sep 2011 09:46:20 +0000 (09:46 +0000)]
[HAL]
Implement lazy irql for APIC. This is useful for VMs, since APIC usually has high overhead due to the need of invoking the hypervisor on every irql raise and lower. With lazy irql we avoid that until absolutely neccessary. Note that we misuse the PCR's IRR field to save the current hardware irql. Its a huge performance boost (some parts take half the time), making APIC performance close to PIC performance on VBox. This is something that Windows doesn't have :)

svn path=/trunk/; revision=53695

12 years ago[NTOSKRNL]
Cameron Gutman [Sun, 11 Sep 2011 17:26:01 +0000 (17:26 +0000)]
[NTOSKRNL]
 - Create a volatile device tree during 1st stage so the new HAL that's loaded in 2nd stage can do proper enumeration without phantom devices from the old HAL

svn path=/trunk/; revision=53694

12 years ago* Comment out some unused but set variables, remove some others.
Amine Khaldi [Sun, 11 Sep 2011 16:56:56 +0000 (16:56 +0000)]
* Comment out some unused but set variables, remove some others.
* Allow warnings for some 3rd party code.

svn path=/trunk/; revision=53693

12 years ago[SCSIPORT]
Cameron Gutman [Sun, 11 Sep 2011 15:40:01 +0000 (15:40 +0000)]
[SCSIPORT]
- Remove a duplicate assignment

svn path=/trunk/; revision=53692

12 years ago* Comment out some unused but set variables, remove some others.
Amine Khaldi [Sun, 11 Sep 2011 15:39:19 +0000 (15:39 +0000)]
* Comment out some unused but set variables, remove some others.
* Allow warnings for some 3rd party code.

svn path=/trunk/; revision=53691

12 years ago[FREELOADER]
Cameron Gutman [Sun, 11 Sep 2011 15:32:15 +0000 (15:32 +0000)]
[FREELOADER]
- Use a larger data type to iterate through the disk buffer to avoid an infinite loop with broken BIOSes

svn path=/trunk/; revision=53690

12 years ago[WS2_32_NEW]
Cameron Gutman [Sun, 11 Sep 2011 15:17:48 +0000 (15:17 +0000)]
[WS2_32_NEW]
 - Fix an error found by PVS Studio
[RAMDISK]
- Fix an error found by PVS Studio

svn path=/trunk/; revision=53689

12 years ago[NTOSKRNL][RTL][DOC]
Thomas Faber [Sun, 11 Sep 2011 11:47:28 +0000 (11:47 +0000)]
[NTOSKRNL][RTL][DOC]
- Fix incorrect loop boundaries in the ARM version of MmCreateProcessAddressSpace. Spotted by Vincenzo Cotugno and cppcheck
- Correct outdated wineimport.cmd URL in README.WINE
- Assorted spelling and readability fixes

svn path=/trunk/; revision=53688

12 years ago[KMTESTS]
Thomas Faber [Sun, 11 Sep 2011 11:22:00 +0000 (11:22 +0000)]
[KMTESTS]
- Add support for guarded allocations, that can be used to detect buffer overruns
- Add GuardedMemory example test
- Add MmSection test with some basic parameter checks for MmCreateSection
- Fix some x64 build problems
- Update readme

svn path=/trunk/; revision=53687

12 years ago[SERVICES]
Eric Kohl [Sun, 11 Sep 2011 11:17:25 +0000 (11:17 +0000)]
[SERVICES]
- Add optional asynchronous io code for service control pipes. This is disabled by default due to bugs in NPFS.
- Read service pipe timeout value from the registry.

svn path=/trunk/; revision=53686

12 years ago[HAL]
Timo Kreuzer [Sun, 11 Sep 2011 09:34:50 +0000 (09:34 +0000)]
[HAL]
- End the interrupt in HalpApcInterruptHandler and HalpDispatchInterruptHandler before calling the kernel, otherwise we would be stuck at high processor irql
- Improve HalEnableSystemInterrupt
- disable interrupts in HalpInitializeClock
=> APIC hal boots to desktop!

svn path=/trunk/; revision=53685

12 years ago[KDCOM]
Timo Kreuzer [Sun, 11 Sep 2011 08:56:38 +0000 (08:56 +0000)]
[KDCOM]
Improve a debug print

svn path=/trunk/; revision=53684

12 years ago[MUP]
Eric Kohl [Sun, 11 Sep 2011 08:52:59 +0000 (08:52 +0000)]
[MUP]
Disable debug output.

svn path=/trunk/; revision=53683

12 years ago* Missed some assignments in debug.c.
Amine Khaldi [Sun, 11 Sep 2011 00:44:13 +0000 (00:44 +0000)]
* Missed some assignments in debug.c.
* Add a dummy allow_warnings() for msvc build.

svn path=/trunk/; revision=53682

12 years ago* Comment out some unused but set variables, remove some others.
Amine Khaldi [Sun, 11 Sep 2011 00:40:20 +0000 (00:40 +0000)]
* Comment out some unused but set variables, remove some others.

svn path=/trunk/; revision=53681

12 years ago* Fix some more unused but set variables.
Amine Khaldi [Sat, 10 Sep 2011 23:54:02 +0000 (23:54 +0000)]
* Fix some more unused but set variables.
* Allow warnings for some 3rd party code.

svn path=/trunk/; revision=53680

12 years ago[NTOSKRNL]
Timo Kreuzer [Sat, 10 Sep 2011 23:05:10 +0000 (23:05 +0000)]
[NTOSKRNL]
The handlers for unexpected interrupts that we generate from asm macros use a push instruction with an 8 bit operand to push the interrupt number on the stack. Now the 8 bit push has the unfortunate behaviour of sign extending to 32 bit. But since the assembler is smart (or at least thinks so) it will not generate such a push instruction for values larger than 0x7f. This resulted in 7 bytes long stubs in the range of 0x30 .. 0x7f and 10 bytes long stubs after that. To fix this 128 is substracted from the value and later readded in the common code path. A second issue arose, because the assembler would start to use 8 bit relative short jumps as soon as the target was less than 127 bytes away, which happened for some of the higher interrupts, which then had a smaller stub then the others. Fix this by moving the stubs up in the code further away from the target label, so that always 32bit relative jumps will be used. These problems didn't show up so far, since we used the PIC and interrupts in the range of 0x30 .. 0x40 and the code that relied on the stubs all having the same length was working well. This changes with an APIC based hal, where interrupts of much higher number are likely to be used.

svn path=/trunk/; revision=53679

12 years agoFix build (oh how I hate this mini_hal thing)
Timo Kreuzer [Sat, 10 Sep 2011 21:56:07 +0000 (21:56 +0000)]
Fix build (oh how I hate this mini_hal thing)

svn path=/trunk/; revision=53677

12 years ago* Fix some unused but set variables. Brought to you by gcc 4.6.1.
Amine Khaldi [Sat, 10 Sep 2011 21:31:09 +0000 (21:31 +0000)]
* Fix some unused but set variables. Brought to you by gcc 4.6.1.
* Allow warnings for some 3rd party code.

svn path=/trunk/; revision=53676

12 years ago[HAL]
Timo Kreuzer [Sat, 10 Sep 2011 18:58:01 +0000 (18:58 +0000)]
[HAL]
- Use a global variable HalpBuildType instead of a define when checking the BUILD (we don't recompile this code for SMP hal)
- Move registering IRQ2 out of the generic init code into HalInitializePICs
- Modify legacy HalpGetRootInterruptVector to use HalpIrqToVector and HalpVectorToIrql so it works with APIC, too

svn path=/trunk/; revision=53675

12 years ago[RBUILD]
Thomas Faber [Sat, 10 Sep 2011 16:12:19 +0000 (16:12 +0000)]
[RBUILD]
- Add kmtests to the CD

svn path=/trunk/; revision=53674

12 years ago[HAL/APIC]
Timo Kreuzer [Sat, 10 Sep 2011 15:55:15 +0000 (15:55 +0000)]
[HAL/APIC]
- Implement HalpApcInterruptHandler, fix HalpDispatchInterruptHandler
- Insert a read to the APIC version register in ApicGetCurrentIrql(). This fixes inconsistencies between the internal APIC state and register reads/writes.
- Remove old hacks in ApicGetCurrentIrql() and ApicSetCurrentIrql
- Fix HalpVectorToIrql()
- read/write cr8 for the value of the TPR on amd64 builds
- Fix amd64 build

svn path=/trunk/; revision=53673

12 years ago[KMTEST]
Thomas Faber [Sat, 10 Sep 2011 14:45:47 +0000 (14:45 +0000)]
[KMTEST]
- Load the driver from the application directory, not the current directory

svn path=/trunk/; revision=53672

12 years ago[ROSTESTS]
Thomas Faber [Sat, 10 Sep 2011 11:41:33 +0000 (11:41 +0000)]
[ROSTESTS]
- Merge the Kernel Mode Test Suite Google Summer of Code project
- Happy testing, everyone ;)

svn path=/trunk/; revision=53671

12 years ago[KMTESTS] backups/GSoC_2011/KMTestSuite@60644
Thomas Faber [Sat, 10 Sep 2011 11:19:50 +0000 (11:19 +0000)]
[KMTESTS]
- Fix kmtest_.exe file naming in CMake

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53670

12 years ago[KMTESTS]
Thomas Faber [Sat, 10 Sep 2011 10:48:07 +0000 (10:48 +0000)]
[KMTESTS]
- Skip the remaining tests that result in assertions
- Hide KeProcessor test, as it takes very long

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53669

12 years ago[NTOSKRNL/OB]
Thomas Faber [Sat, 10 Sep 2011 10:41:57 +0000 (10:41 +0000)]
[NTOSKRNL/OB]
- Do not bugcheck in ObpCloseHandle if the handle is -1. Powered by kmtests

svn path=/trunk/; revision=53668

12 years ago[KMTESTS/OB]
Thomas Faber [Sat, 10 Sep 2011 10:38:43 +0000 (10:38 +0000)]
[KMTESTS/OB]
- ObReference: add better tests for closing invalid handles

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53667

12 years ago[HAL]
Timo Kreuzer [Fri, 9 Sep 2011 21:10:07 +0000 (21:10 +0000)]
[HAL]
Add a hack to work around a bug in VBox: The APIC emulation requires an iret instruction following closely after writing the EOI register. Since we return from kernel mode traps with a jmp (yes you can return from an interrupt with a jmp!) the EOI is never triggered, making VBox believe we are still serving the interrupt and keeping the PPR on high level, preventing following interrupts. A small asm stub now does the work of both writing the EOI and doing an iret.

svn path=/trunk/; revision=53665

12 years ago[DEVMGMT]
Ged Murphy [Fri, 9 Sep 2011 19:10:11 +0000 (19:10 +0000)]
[DEVMGMT]
Add the treeview and resize data. It now somewhat resembles an app.

svn path=/trunk/; revision=53664

12 years ago[DEVMGMT]
Ged Murphy [Fri, 9 Sep 2011 18:52:52 +0000 (18:52 +0000)]
[DEVMGMT]
Some main window work.

svn path=/trunk/; revision=53663

12 years ago[SHELL32]
Amine Khaldi [Fri, 9 Sep 2011 16:55:59 +0000 (16:55 +0000)]
[SHELL32]
* Merge r53661.

svn path=/trunk/; revision=53662

12 years ago[WIN32K]
Rafal Harabien [Fri, 9 Sep 2011 16:17:02 +0000 (16:17 +0000)]
[WIN32K]
- Improve formating of input.c and keyboard.c

svn path=/trunk/; revision=53660

12 years ago[WIN32K]
Rafal Harabien [Fri, 9 Sep 2011 16:08:09 +0000 (16:08 +0000)]
[WIN32K]
- Don't use magic type values for IntMapVirtualKeyEx calls
- Fix a typo in ERR

svn path=/trunk/; revision=53659

12 years ago[HAL]
Timo Kreuzer [Fri, 9 Sep 2011 15:42:59 +0000 (15:42 +0000)]
[HAL]
- Add a hack to ApicGetCurrentIrql and ApicSetCurrentIrql to work around a VBox bug
- call KeSetTimeIncrement after initializing the rtc clock
- calculate TSC frequency from the samples
- Fix a bug in KeStallExecutionProcessor

svn path=/trunk/; revision=53658

12 years ago[USER32]
Rafal Harabien [Fri, 9 Sep 2011 15:24:14 +0000 (15:24 +0000)]
[USER32]
- Fix ole32:clipboard winetest regression

svn path=/trunk/; revision=53657

12 years ago[undocuser.h]
Giannis Adamopoulos [Fri, 9 Sep 2011 14:13:04 +0000 (14:13 +0000)]
[undocuser.h]
- Move definition of UpdatePerUserSystemParameters to undocuser.h

svn path=/trunk/; revision=53656

12 years ago[WIN32K]
Rafal Harabien [Fri, 9 Sep 2011 13:11:44 +0000 (13:11 +0000)]
[WIN32K]
- Rename gQueueKeyStateTable to gKeyStateTable as it has nothing to do with msg queues. They have their own table
- Use KS_*_BIT defines instead of magic values

svn path=/trunk/; revision=53655

12 years ago[WIN32K]
Rafal Harabien [Fri, 9 Sep 2011 13:09:28 +0000 (13:09 +0000)]
[WIN32K]
- Rewrite co_IntTranslateAccelerator to make it readable
- Add back support for 0x80 flag as an accelerator table end

svn path=/trunk/; revision=53654

12 years ago[SHELL32]
Amine Khaldi [Fri, 9 Sep 2011 10:55:09 +0000 (10:55 +0000)]
[SHELL32]
* Reintegrate the c++ shell32 branch. Exemplary team-work.. kudos !
* Better code quality, more tests run with less failures... and more.
* Dedicated to everyone who helped ;)

svn path=/trunk/; revision=53653

12 years ago[shell32.dll]
Claudiu Mihail [Thu, 8 Sep 2011 22:43:43 +0000 (22:43 +0000)]
[shell32.dll]
[FORMATTING]
- Second wave of formatting. At least now we won't have any tabs and spaces mixed in.

svn path=/branches/shell32_new-bringup/; revision=53651

12 years ago[shell32.dll]
Claudiu Mihail [Thu, 8 Sep 2011 22:42:01 +0000 (22:42 +0000)]
[shell32.dll]
- Fix bug 6336 of shell32_new. The bug was caused by not properly verifying the return value of ShellExecuteExW.
[FORMATTING]
- First wave of accidental formatting (sorry again about mixing code and formatting heh).

svn path=/branches/shell32_new-bringup/; revision=53650

12 years ago[DEVMGMT]
Ged Murphy [Thu, 8 Sep 2011 22:04:51 +0000 (22:04 +0000)]
[DEVMGMT]
Add the resources

svn path=/trunk/; revision=53649

12 years ago[DEVMGMT]
Ged Murphy [Thu, 8 Sep 2011 22:03:08 +0000 (22:03 +0000)]
[DEVMGMT]
- Start a new device manager to test the reactos ATL code.
- Also, the old one sucks big time and was quickly hacked together.

svn path=/trunk/; revision=53648

12 years ago[Telnet]
Dmitry Gorbachev [Thu, 8 Sep 2011 21:00:37 +0000 (21:00 +0000)]
[Telnet]
Fix build with GCC 4.7.

svn path=/trunk/; revision=53647

12 years ago[NTOSKRNL]
Jérôme Gardou [Thu, 8 Sep 2011 19:51:06 +0000 (19:51 +0000)]
[NTOSKRNL]
- disable fast system calls for testing purpose.
See issue #5857 for more details.

svn path=/trunk/; revision=53646

12 years ago[WIN32K]
Rafal Harabien [Thu, 8 Sep 2011 16:38:38 +0000 (16:38 +0000)]
[WIN32K]
- Fix possible buffer overrun
- Use KEY_VALUE_PARTIAL_INFORMATION field instead of magic offset to data

svn path=/trunk/; revision=53645

12 years ago[WIN32K]
Rafal Harabien [Thu, 8 Sep 2011 16:32:54 +0000 (16:32 +0000)]
[WIN32K]
- Rewrite clipboard to match Windows implementation
- Clipboard uses window stations instead of global variables
- Data is saved in clipboard data user objects
- Memory is no longer leaked when winsta is destroyed
- Data is synthesized on demand
- Make internal functions static
- Fix possible memory corruption in IntGetAtomName
- More winetests are passed

svn path=/trunk/; revision=53644

12 years ago[user32]
Giannis Adamopoulos [Thu, 8 Sep 2011 15:53:38 +0000 (15:53 +0000)]
[user32]
- Add some more tests for the messages that are sent by SetActiveWindow

svn path=/trunk/; revision=53643

12 years ago[WIN32K]
Rafal Harabien [Thu, 8 Sep 2011 14:13:19 +0000 (14:13 +0000)]
[WIN32K]
- Simplify accelerators code a bit
- Set last error in NtUserCopyAcceleratorTable
- Fix user32:resource winetest regression

svn path=/trunk/; revision=53642

12 years ago[shell32.dll]
Claudiu Mihail [Thu, 8 Sep 2011 14:07:02 +0000 (14:07 +0000)]
[shell32.dll]
- Make sure the ParseDisplayName functions make the ppidle parameter NULL whenever that's possible. Scores a wine test. Spotted by Victor Martinez.

svn path=/branches/shell32_new-bringup/; revision=53641

12 years ago[user32_apitest]
Giannis Adamopoulos [Thu, 8 Sep 2011 11:31:31 +0000 (11:31 +0000)]
[user32_apitest]
- Add more tests for SetActiveWindow

svn path=/trunk/; revision=53640

12 years ago[KMTEST_OLD]
Thomas Faber [Thu, 8 Sep 2011 10:44:26 +0000 (10:44 +0000)]
[KMTEST_OLD]
- Remove kmtest_old and kmtloader as all their functionality is included in the new test suite

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53639

12 years ago[KMTestSuite]
Thomas Faber [Thu, 8 Sep 2011 10:28:02 +0000 (10:28 +0000)]
[KMTestSuite]
- Sync to rostests r53632

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53638

12 years ago[KMTESTS]
Thomas Faber [Thu, 8 Sep 2011 10:25:40 +0000 (10:25 +0000)]
[KMTESTS]
- Use new CMake macros in separate drivers, too
- Use kmtest_.exe filename for rbuild too

svn path=/branches/GSoC_2011/KMTestSuite/; revision=53637

12 years ago[WIN32K]
Rafal Harabien [Thu, 8 Sep 2011 09:55:28 +0000 (09:55 +0000)]
[WIN32K]
- Fix user32:monitor winetest failures (ClipCursor bugs)
- Protect functions in accelerator.c with SEH

svn path=/trunk/; revision=53636

12 years ago- Downgrade some DPRINT1s to DPRINTs.
Aleksey Bragin [Thu, 8 Sep 2011 08:28:41 +0000 (08:28 +0000)]
- Downgrade some DPRINT1s to DPRINTs.

svn path=/trunk/; revision=53635

12 years ago[HAL]
Timo Kreuzer [Thu, 8 Sep 2011 08:15:39 +0000 (08:15 +0000)]
[HAL]
- Fix I/O APIC register access
- set APIC logical id based on Cpu (currently flat model with up to 8 cpus supported)
- In HalpInitializeTsc, setup the RTC clock, since the timer is initialized later
- in the TSC calibration ISR, send EOI and read RTC register C to get the next interrupt

svn path=/trunk/; revision=53634

12 years ago[shell32.dll]
Claudiu Mihail [Wed, 7 Sep 2011 23:21:02 +0000 (23:21 +0000)]
[shell32.dll]
- Initialize uninitialized variables.
- Add code to guard against potential NULL pointer dereferencing.
Thanks to Amine Khaldi for pointing out all these.

svn path=/branches/shell32_new-bringup/; revision=53633

12 years ago[user32_apitest]
Giannis Adamopoulos [Wed, 7 Sep 2011 23:08:14 +0000 (23:08 +0000)]
[user32_apitest]
- Add some more tests hoping that SetActiveWindow will reveal its secrets

svn path=/trunk/; revision=53632

12 years ago[HAL]
Timo Kreuzer [Wed, 7 Sep 2011 21:41:50 +0000 (21:41 +0000)]
[HAL]
- Don't use debug prints before the debugger is even initialized
- acquire cmos spinlock when accessing the cmos registers
- Fix amd64 build

svn path=/trunk/; revision=53631

12 years ago[RPCTR4]
Eric Kohl [Wed, 7 Sep 2011 20:11:19 +0000 (20:11 +0000)]
[RPCTR4]
- Take NetworkAddr into account when a named pipe client is opened.
- Return RPC_S_SERVER_UNAVAILABLE when an attempt to create a named pipe client fails with an ERROR_BAD_NETPATH error.
This fixes the first test failure in the advapi32 service winetest.

svn path=/trunk/; revision=53630

12 years ago[shell32.dll]
Claudiu Mihail [Wed, 7 Sep 2011 20:00:32 +0000 (20:00 +0000)]
[shell32.dll]
- More uninitialized value fixing. Again Amine Khaldi spotting them with his magical powers.
- I took the liberty to convert tabs I found to spaces. Normally I shouldn't mix formatting with coding changes but I forgot. Sorry.

svn path=/branches/shell32_new-bringup/; revision=53629

12 years ago[shell32.dll]
Claudiu Mihail [Wed, 7 Sep 2011 19:00:26 +0000 (19:00 +0000)]
[shell32.dll]
- Attempt at fixing bug 6315 (it doesn't completely work yet). Original patch by Edijs Kolesnikovics.

svn path=/branches/shell32_new-bringup/; revision=53628

12 years ago[HAL_XBOX]
Timo Kreuzer [Wed, 7 Sep 2011 18:39:20 +0000 (18:39 +0000)]
[HAL_XBOX]
Fix build

svn path=/trunk/; revision=53627

12 years ago[HAL]
Timo Kreuzer [Wed, 7 Sep 2011 18:30:38 +0000 (18:30 +0000)]
[HAL]
Fix buld. I swear it worked here!

svn path=/trunk/; revision=53626

12 years ago[HAL]
Timo Kreuzer [Wed, 7 Sep 2011 18:25:43 +0000 (18:25 +0000)]
[HAL]
- give apic hal its own halinit_apic
- give minihal an own halinit_mini.c containing function stubs
- move HalInitializeProcessor to halinit.c and add hal specific function HalpInitProcessor
- get rid of all the #ifndef _MINIHAL_ in halinit.c and move the file to lib_hal_generic
- improve the hal version/build check
- Update spec file for amd64

svn path=/trunk/; revision=53625

12 years ago[shell32.dll]
Claudiu Mihail [Wed, 7 Sep 2011 17:41:56 +0000 (17:41 +0000)]
[shell32.dll]
- Fix bug 6317. Patch by Edijs Kolesnikovics.

svn path=/branches/shell32_new-bringup/; revision=53624

12 years ago[shell32.dll]
Claudiu Mihail [Wed, 7 Sep 2011 17:10:45 +0000 (17:10 +0000)]
[shell32.dll]
- Fix bug 6316. Patch by Edijs Kolesnikovics.

svn path=/branches/shell32_new-bringup/; revision=53623

12 years ago[shell32.dll]
Claudiu Mihail [Wed, 7 Sep 2011 16:58:22 +0000 (16:58 +0000)]
[shell32.dll]
- Fix bug #6301 . Patch by Edijs Kolesnikovics.

svn path=/branches/shell32_new-bringup/; revision=53622

12 years ago[user32_apitest]
Giannis Adamopoulos [Wed, 7 Sep 2011 14:05:58 +0000 (14:05 +0000)]
[user32_apitest]
- Add a test case for SetActiveWindow that shows its behavior related to owner windows. It should point the bug observed in bug 1239

svn path=/trunk/; revision=53621

12 years ago[NTOSKRNL]
Timo Kreuzer [Wed, 7 Sep 2011 13:58:34 +0000 (13:58 +0000)]
[NTOSKRNL]
Move the internal headers below the redefinition of types, because gcc instantiates inline function where they are defined, using the original types. Fixes build.

svn path=/trunk/; revision=53620

12 years ago[NTOSKRNL]
Timo Kreuzer [Wed, 7 Sep 2011 13:45:06 +0000 (13:45 +0000)]
[NTOSKRNL]
Forgot this file, sorry

svn path=/trunk/; revision=53619

12 years ago[NTOSKRNL]
Timo Kreuzer [Wed, 7 Sep 2011 13:43:54 +0000 (13:43 +0000)]
[NTOSKRNL]
Make KeNumberProcessors internally an UCHAR and move it into krnlinit.c instead of having it once per architecture. Fixes a bunch of MSVC warnings.

svn path=/trunk/; revision=53618

12 years ago[shell32.dll][FORMATTING]
Claudiu Mihail [Wed, 7 Sep 2011 13:39:13 +0000 (13:39 +0000)]
[shell32.dll][FORMATTING]
- No code changes. Make the code more readable in preparation for investigating some failing wine tests.

svn path=/branches/shell32_new-bringup/; revision=53617

12 years ago[HAL]
Timo Kreuzer [Wed, 7 Sep 2011 12:00:29 +0000 (12:00 +0000)]
[HAL]
- move v86 code out of trap.S into v86.S (APIC uses a different trap entry file), compile it directly in the dll instead of a lib to be able to silence linker warnings
- Group files in HAL_PIC_SOURCE and HAL_APIC_SOURCE, you just need to replace PIC with APIC to build the hal with APIC support (we can later use it to build the other hals:  halapic, halaacpi, halmacpi, halmps)
- use apic on amd64 builds
- give halacpi its own resource file
- silence MSVC linker warnings

svn path=/trunk/; revision=53616

12 years ago[HAL]
Timo Kreuzer [Wed, 7 Sep 2011 10:14:48 +0000 (10:14 +0000)]
[HAL]
Rename HalpAcquireSystemHardwareSpinLock to HalpAcquireCmosSpinLock

svn path=/trunk/; revision=53615

12 years ago[MKHIVE]
Rafal Harabien [Wed, 7 Sep 2011 09:51:13 +0000 (09:51 +0000)]
[MKHIVE]
- Fix max key name length, max value name length, max value data length properties of registry key not being set correctly
- Fixes #6042 - regedit on LiveCD shows keys and values now

svn path=/trunk/; revision=53614

12 years ago[shell32.dll]
Claudiu Mihail [Wed, 7 Sep 2011 01:33:31 +0000 (01:33 +0000)]
[shell32.dll]
- Another round of fixing badly initialized variables. Again Amine Khaldi being the hero.

svn path=/branches/shell32_new-bringup/; revision=53613

12 years ago[shell32.dll]
Claudiu Mihail [Tue, 6 Sep 2011 23:52:38 +0000 (23:52 +0000)]
[shell32.dll]
- Initialize uninitialized variables in constructors.
[atl]
- Initialize uninitialized variables in constructors.
All spotted by Amine Khaldi.

svn path=/branches/shell32_new-bringup/; revision=53612

12 years ago[HAL]
Timo Kreuzer [Tue, 6 Sep 2011 21:01:49 +0000 (21:01 +0000)]
[HAL]
Start implementing APIC support, which is needed for both SMP and x64. It will use the local APIC + I/O APIC for interrupt control, the RTC instead of the PIT for the timer interrupt (PIT doesn't always work with I/O APIC), the APIC timer for profiling and finally the TSC for the performance counter and KeStallExecutionProcessor.
The code is incomplete and doesn't work yet

svn path=/trunk/; revision=53611

12 years ago[shell32]
Giannis Adamopoulos [Tue, 6 Sep 2011 20:20:54 +0000 (20:20 +0000)]
[shell32]
- Add missing initialization. Fixes the problem where explorer fails to show the child window at the first attempt to open a folder

svn path=/branches/shell32_new-bringup/; revision=53610

12 years ago[MUP]
Eric Kohl [Tue, 6 Sep 2011 19:17:54 +0000 (19:17 +0000)]
[MUP]
- Any attempt to open or create a file on a remote machine will return STATUS_BAD_NETWORK_PATH. This means the server is not available. Trying to create \\testserver\testshare\testdir\test.txt fails just like on Windows XP.
- Add service key and values for the MUP driver. Add the driver to the File System group because adding it to the Network group, like on Windows XP, does not load the driver.

svn path=/trunk/; revision=53609

12 years ago[CMAKE]
Jérôme Gardou [Tue, 6 Sep 2011 17:31:25 +0000 (17:31 +0000)]
[CMAKE]
- get rid of set_entrypoint usage for "win32" dlls

svn path=/trunk/; revision=53608

12 years ago[RTL]
Timo Kreuzer [Mon, 5 Sep 2011 22:18:56 +0000 (22:18 +0000)]
[RTL]
Add FPO information to some asm functions

svn path=/trunk/; revision=53607

12 years ago[RBUILD]
Jérôme Gardou [Mon, 5 Sep 2011 19:36:07 +0000 (19:36 +0000)]
[RBUILD]
- qmgrprxy.dll has an entrypoint

svn path=/trunk/; revision=53606

12 years ago[MSVCRT]
Jérôme Gardou [Mon, 5 Sep 2011 19:22:44 +0000 (19:22 +0000)]
[MSVCRT]
- comment out _vswprintf export until I get more time to fix this properly

svn path=/trunk/; revision=53605

12 years ago[MSVCRT]
Jérôme Gardou [Mon, 5 Sep 2011 19:08:11 +0000 (19:08 +0000)]
[MSVCRT]
- some fixes to spec file, based on a wine patch by Piotr Caban

svn path=/trunk/; revision=53604

12 years ago[RSYM]
Dmitry Gorbachev [Mon, 5 Sep 2011 15:37:35 +0000 (15:37 +0000)]
[RSYM]
.stab/.stabstr sections have no IMAGE_SCN_LNK_REMOVE flag now.

svn path=/trunk/; revision=53603

12 years ago[FAT32]
Dmitry Gorbachev [Mon, 5 Sep 2011 15:36:33 +0000 (15:36 +0000)]
[FAT32]
Move the FAT sector buffer higher for RBuild builds, too.

svn path=/trunk/; revision=53602

12 years agoFix build
Timo Kreuzer [Mon, 5 Sep 2011 15:28:49 +0000 (15:28 +0000)]
Fix build

svn path=/trunk/; revision=53601

12 years ago[HAL]
Timo Kreuzer [Mon, 5 Sep 2011 15:20:07 +0000 (15:20 +0000)]
[HAL]
- Use functions instead of macros for irq<->vector<->irql translation, this will be neccessary, once apic support is there
- Disable mp hal in rbuild for now, its broken anyway

svn path=/trunk/; revision=53600

12 years ago[NTOS]
Aleksey Bragin [Mon, 5 Sep 2011 15:05:56 +0000 (15:05 +0000)]
[NTOS]
- Fix IoCheckEaBufferValidity (IntEaLength must be signed, otherwise loop exiting condition may not trigger).
- SEH-protect ObQueryNameString (by Dmitry Chapyshev's request).

svn path=/trunk/; revision=53599

12 years ago[NTOS/EX]
Aleksey Bragin [Mon, 5 Sep 2011 14:27:48 +0000 (14:27 +0000)]
[NTOS/EX]
- Remove redundant check for a previous mode. Spotted by PVS.

svn path=/trunk/; revision=53598

12 years ago[CMAKE]
Sylvain Petreolle [Mon, 5 Sep 2011 12:41:18 +0000 (12:41 +0000)]
[CMAKE]
Don't assume CMAKE_SHARED_LIBRARY_ASM_FLAGS exists.

svn path=/trunk/; revision=53597

12 years ago[NTOS/CONFIG]
Aleksey Bragin [Mon, 5 Sep 2011 09:54:20 +0000 (09:54 +0000)]
[NTOS/CONFIG]
- Remove unnecessary assignments. Spotted by PVS and Dmitry Chapyshev. This may change the behaviour of that codepath, so test results are going to be observed.

svn path=/trunk/; revision=53596

12 years ago[User32]
James Tabor [Sun, 4 Sep 2011 21:54:57 +0000 (21:54 +0000)]
[User32]
- Fixed over check conditions for deleting regions in set window region.
- Disabled offsets with window region. Fixes wine tests..

svn path=/trunk/; revision=53595

12 years ago[CMAKE]
Amine Khaldi [Sun, 4 Sep 2011 21:52:37 +0000 (21:52 +0000)]
[CMAKE]
* Properly use add_target_compile_flags.

svn path=/trunk/; revision=53594

12 years ago[BUSLOGIC]
Jérôme Gardou [Sun, 4 Sep 2011 21:08:29 +0000 (21:08 +0000)]
[BUSLOGIC]
- woops, revert some accident of 53591

svn path=/trunk/; revision=53593

12 years ago[CMAKE]
Jérôme Gardou [Sun, 4 Sep 2011 21:06:02 +0000 (21:06 +0000)]
[CMAKE]
- fix msvc build

svn path=/trunk/; revision=53592