Commit graph

42336 commits

Author SHA1 Message Date
Timo Kreuzer
d9cec98933 [KE]
Move the .text and .code64 tag before all functions in trap.S

svn path=/branches/ros-amd64-bringup/; revision=44887
2010-01-02 16:31:41 +00:00
Timo Kreuzer
27d2ac3ad6 [KE]
- KxAcquireSpinLock: check for already owned lock only on debug builds, fix check in inner loop, don't call Kii386SpinOnSpinLock inside the inner loop, but instead of it, simplify the code
- stubplement Kii386SpinOnSpinLock in C

svn path=/branches/ros-amd64-bringup/; revision=44886
2010-01-02 16:22:43 +00:00
ReactOS Portable Systems Group
3c027e728c - Switch to using ARM3 paged pool -- all pool allocations are now handled by ARM3, which should be much more efficient, and combines both NP and P code together.
svn path=/trunk/; revision=44885
2010-01-02 16:17:48 +00:00
ReactOS Portable Systems Group
b69d9da41a Implement paged pool expansion. We are now ready to switch to ARM pool 100%.
svn path=/trunk/; revision=44884
2010-01-02 16:10:11 +00:00
Eric Kohl
e7c10484b8 Add missing device node flags.
svn path=/trunk/; revision=44883
2010-01-02 15:55:03 +00:00
Sylvain Petreolle
7271e0a85a Polish devmgr translation udates by Olaf Siejka
svn path=/trunk/; revision=44882
2010-01-02 13:29:19 +00:00
Ged Murphy
53281cd601 [SERVMAN]
Quick fix for bug 5076, this should stop if from crashing.
Stopping services is disabled at the moment

svn path=/trunk/; revision=44881
2010-01-02 12:10:14 +00:00
ReactOS Portable Systems Group
2c793a902d [NTOS]: Build fixer.
svn path=/trunk/; revision=44880
2010-01-02 05:12:29 +00:00
ReactOS Portable Systems Group
785d4328db NMI Support Patch 14:
[BOOTDATA]: Add NMIDEBUG.SYS to the BOM and registry hive.

This is the last patch for NMI support. It is up to you to leverage this feature as needed through the NMIDEBUG.SYS driver.

svn path=/trunk/; revision=44879
2010-01-02 04:51:23 +00:00
ReactOS Portable Systems Group
475b0fd7cb NMI Support Patch 13:
[NMIDEBUG]: Add new NMI Debug driver. It registers an NMI callback on startup. The callback does nothing useful at the moment, but you can enhance it to add all sorts of debugging information that would otherwise be unavailable in situations such as an interrupt storm, IRQL hang, etc. When you send an NMI, such as by using QEMU, you should see the driver print a string.

svn path=/trunk/; revision=44878
2010-01-02 04:50:08 +00:00
ReactOS Portable Systems Group
91636ec6ed NMI Support Patch 12:
[NTOS]: Implement KeRegisterNMICallback.
    [NTOS]: Call and implement KiHandleNMI to call all registered NMI callbacks and potentially resume from the NMI if handled.

svn path=/trunk/; revision=44877
2010-01-02 04:48:22 +00:00
ReactOS Portable Systems Group
f9762a47d5 [NTOS]: Fix stdCall macro to work with functions of zero parameters.
svn path=/trunk/; revision=44876
2010-01-02 04:46:23 +00:00
ReactOS Portable Systems Group
4247babde3 NMI Support Patch 11:
[PSDK]: Add definitions for public NMI callback registration functions.


svn path=/trunk/; revision=44875
2010-01-02 04:44:58 +00:00
Johannes Anderwald
318229f03f [MMIXER_TEST]
- Implement AllocEventData, FreeEventData for mmixer library

svn path=/trunk/; revision=44874
2010-01-02 01:54:09 +00:00
Johannes Anderwald
70d4997811 [WDMAUD.DRV]
- Implement AllocEventData, FreeEventData for mmixer library

svn path=/trunk/; revision=44873
2010-01-02 01:53:22 +00:00
Johannes Anderwald
c42d9f27cc [MMIXER]
- Implement registering hardware events (volume / mute control changes)
- Fix a bug when querying a source mixer line. The wrong line id was passed which caused the call to fail.

svn path=/trunk/; revision=44872
2010-01-02 01:52:12 +00:00
ReactOS Portable Systems Group
0926ed6652 NMI Support Patch 10:
[NTOS]: Write barebones NMI Trap handler which does a TSS context switch to the NMI TSS and then calls the HAL NMI handler.
    [NTOS]: Implement KiSaveProcessorState for doing a PRCB context save/restore.

You should now be able to test the new NMI functionality by either building the circuit referenced in my e-mail and attaching it to your PCI bus, or by using "nmi 0" in the QEMU stdio console.

svn path=/trunk/; revision=44871
2010-01-02 01:34:27 +00:00
Cameron Gutman
b1e02d2174 [NTOSKRNL]
- Fake success from the MmSecureVirtualMemory stub
 - See issue #4996 for details

svn path=/trunk/; revision=44870
2010-01-02 01:32:43 +00:00
ReactOS Portable Systems Group
cbcf12257d NMI Support Patch 9:
[NDK]: Add missing KTSS ASM offsets.
    [NDK]: Add missing EXCEPTION_ codes.

svn path=/trunk/; revision=44869
2010-01-02 01:32:34 +00:00
ReactOS Portable Systems Group
0396096bd1 NMI Support Patch 8:
[NTOS]: Implement a GNU Assembler version of the Windows SDK ASM calling convention macros. Only stdCall and its helpers have been written -- feel free to write the rest. Based on callconv.inc from Microsoft). SUGGESTION: Slowly start rewriting current code to use calling convention macros as it is much cleaner.


svn path=/trunk/; revision=44868
2010-01-02 01:28:36 +00:00
Johannes Anderwald
e40621ab44 [KS]
- Return correct error code

svn path=/trunk/; revision=44867
2010-01-02 01:22:38 +00:00
Dmitry Gorbachev
3b558d84dd Lift a protection (forgotten in 44842).
svn path=/trunk/; revision=44866
2010-01-02 00:17:37 +00:00
Johannes Anderwald
02a81d4d07 [SETUPAPI]
- Implement SetupInitializeFileLogA, SetupInitializeFileLogW, SetupTerminateFileLog

svn path=/trunk/; revision=44865
2010-01-01 23:44:41 +00:00
Dmitry Gorbachev
756859265d Fix parameter type of NtQueryInformationThread; do not call ExitThread from itself. Bug #5076.
svn path=/trunk/; revision=44864
2010-01-01 23:14:10 +00:00
ReactOS Portable Systems Group
126c7209ac NMI Support Patch 7 Build Fixer:
[HAL]: Define HalpNMIInProgress as an external in the HAL private headers.

svn path=/trunk/; revision=44863
2010-01-01 21:07:22 +00:00
ReactOS Portable Systems Group
9e858a7261 NMI Support Patch 7 Straggler:
[HAL]: Piggyback on V8086 handler (don't restore kernel GPF handler) during an NMI, so that we don't enter another fault context during a recursive NMI after display reset. If another NMI does happen, the V8086 GPF handler will just spin.


svn path=/trunk/; revision=44862
2010-01-01 21:05:41 +00:00
ReactOS Portable Systems Group
1b1c2360bb NMI Support Patch 7:
[NTOS]: Improve UNHANDLED_PATH macro with a new "Reason" parameter which displays why the path is unhandled (ie: what the unexpected/unlikely/untested scenario is). This is better than just displaying the current PC which is typically useless.
    [NTOS]: Separate UNHANDLED_PATH from UNHANDLED_V86_PATH which is specifically for paths that are unimplemented due to lack of VDM support.
    [HAL]:  Update to new macros in V8086 support, and handle invalid opcode errors with a debug print (I encountered these when the NMI TSS was being used, since the IOPM was invalid).
    [HAL]:  If the V8086 GPF handler is called outside of V8086 mode, assume an NMI happened around the BIOS Call and just spin forever. We'll piggyback on the V8086 GPF handler during an NMI, in order to avoid the kernel's GPF handler which would attempt to panic/reset the display again (and cause endless NMI recursion/corruption).


svn path=/trunk/; revision=44861
2010-01-01 21:03:22 +00:00
ReactOS Portable Systems Group
6f0ef76efe NMI Support Patch 6:
[HAL]: Fix NMI recursion issues.
    [HAL]: Reset the display during NMI and paint the NMI Screen of Death.

svn path=/trunk/; revision=44860
2010-01-01 20:55:15 +00:00
Dmitry Chapyshev
a9786a898d - Update Russian translation
svn path=/trunk/; revision=44859
2010-01-01 19:09:55 +00:00
Eric Kohl
9bcb086ea2 [devmgr]
- Display 'Capabilities' and 'Config Flags' flags separately.

svn path=/trunk/; revision=44858
2010-01-01 17:23:40 +00:00
Eric Kohl
13e0ad9b55 Add missing device capabilities flags.
svn path=/trunk/; revision=44857
2010-01-01 17:02:37 +00:00
ReactOS Portable Systems Group
8266b754b6 NMI Support Patch 5:
[HAL]: Do correct TLB flushing for systems with global page support.
    [HAL]: Clean leading whitespace and comments.


svn path=/trunk/; revision=44856
2010-01-01 16:37:34 +00:00
ReactOS Portable Systems Group
61df639e4a NMI Support Patch 4:
[HAL]:  Use Mm headers to support PTE/PDE address translation instead of a hardcoded, homegrown macro. WARNING: The current HAL code is not PAE compatible (as it already wasn't).
    [NTOS]: Define an inline function to set and query an interrupt handler associated with a given IDT vector. This results in much cleaner code as the uglyness of manually setting up an IDT handler isn't duplicated 10 times. Additionally, it fixes some callers which had not been using HalVectorToIDTEntry to make the initial translation.

svn path=/trunk/; revision=44855
2010-01-01 15:09:14 +00:00
Eric Kohl
45316fbf63 [devmgr]
- Add missing string resources and translate the german ones.
- Set the focus to the combobox when the details page is opened.
- Don't display an error message when a property is not set for the selected device.
- Display 'Capabilities' and 'Config Flags' as DWORD values.

Ooops! These should have been committed as well.

svn path=/trunk/; revision=44854
2010-01-01 14:44:06 +00:00
Eric Kohl
3637a51c29 [devmgr]
- Add missing string resources and translate the german ones.
- Set the focus to the combobox when the details page is opened.
- Don't display an error message when a property is not set for the selected device.
- Display 'Capabilities' and 'Config Flags' as DWORD values.

svn path=/trunk/; revision=44853
2010-01-01 14:42:49 +00:00
Sylvain Petreolle
d9c6ea2fbf Add GetEventLogInformation stub.
Add parameter checks for GetNumberOfEventLogRecords and GetOldestEventLogRecord.

Fixes 3 crashes for advapi32:eventlog winetest.

svn path=/trunk/; revision=44852
2010-01-01 14:41:44 +00:00
Dmitry Chapyshev
7b84f181bc - Update Russian translation
svn path=/trunk/; revision=44851
2010-01-01 14:35:01 +00:00
Daniel Reimer
13fc70da4e German translation of Eric's changes + fixed some bad language.
svn path=/trunk/; revision=44850
2010-01-01 12:40:23 +00:00
Timo Kreuzer
d786ac57d2 [HAL]
Don't spin with an interlocked operation.

svn path=/branches/ros-amd64-bringup/; revision=44849
2010-01-01 12:17:24 +00:00
Colin Finck
7e0605b6a2 Happy New Year!
svn path=/trunk/; revision=44848
2010-01-01 12:10:13 +00:00
Cameron Gutman
fb4eec0d30 [IP]
- Fix a small locking issue in TCPClose

svn path=/branches/aicom-network-branch/; revision=44845
2010-01-01 05:58:37 +00:00
Sylvain Petreolle
599f3e27e8 Arch, why are you removing </module> tags ?
Happy new  year :)

svn path=/trunk/; revision=44844
2010-01-01 01:41:39 +00:00
ReactOS Portable Systems Group
040c742cac NMI Support Patch 3:
[HAL]: If the current TSS does not have enough space for an I/O Privilege Map then "borrow" the default TSS while the BIOS Call is in-flight. "Return" it when the BIOS call has ended. Fixes panics during a double fault (since the double fault handler will attempt to clear the display through a Video ROM BIOS Interrupt 10h). Allows NMI panics to do BIOS calls as well (for later).


svn path=/trunk/; revision=44843
2010-01-01 00:03:52 +00:00
ReactOS Portable Systems Group
fd1ccbe10c NMI Support Patch 2:
[HAL]: Simplify IDT write-protection handling (always make it R/W and restore it to previous state).
    [HAL]: Avoid two superflous TLB flushes.


svn path=/trunk/; revision=44842
2009-12-31 23:56:40 +00:00
ReactOS Portable Systems Group
2e1b82cf72 NMI Support Patch 1:
[HAL]:  The I/O Permissions Map on a typical Privileged Mode x86 OS is all 0xFF's, so it's quite wasteful to copy-in/out the entire map each single BIOS Call. As an optimization, only save and restore non-0xFF entries.
    [NTOS]: Define and use constants for different IOPM values, instead of using hardcoded values.


svn path=/trunk/; revision=44841
2009-12-31 23:51:26 +00:00
Timo Kreuzer
a1bc42e31a [HAL]
Replace the asm implementations of HalpAcquireSystemHardwareSpinLock and HalpReleaseCmosSpinLock with C implementations. The old ones didn't work on SMP, as they were only compiled once as UP.

svn path=/branches/ros-amd64-bringup/; revision=44840
2009-12-31 23:45:36 +00:00
Cameron Gutman
8dd3966ba9 [TCPIP, IP]
- Completely rewrite (again) the locking code and use references to ensure that the connection doesn't get freed while completing requests (the most frequent cause of crashes)
 - Remove DrainSignals and complete requests inside HandleSignalledConnection instead of doing them in a separate thread (increases speed a lot)
[OSKITTCP]
 - Don't clear the socket context in OskitTCPClose because we would end up in HandleSignalledConnection without a connection (which we don't support anymore after eliminating DrainSignals)
 - Change the check performed to see if a socket is dying so we support connection dying after calling OskitTCPClose
[AFD]
 - Remove leftover ASSERTs which fail after the changes to tcpip (they were wrong in the first place because we call into tcpip at DISPATCH_LEVEL sometimes)

svn path=/branches/aicom-network-branch/; revision=44839
2009-12-31 23:33:24 +00:00
Eric Kohl
e426bf896f [devmgr]
Implement the details page and add dialogs for the resources and power pages. Some of the code is not final yet as I don't have a clean way of retrieving the required information. Some required stuff in setupapi or umpnpmgr is still incomplete too.

I wish you a happy and successful 2010!
Eric.

svn path=/trunk/; revision=44838
2009-12-31 22:10:41 +00:00
Timo Kreuzer
a4123875f0 fix build of halxbox
svn path=/branches/ros-amd64-bringup/; revision=44837
2009-12-31 21:43:20 +00:00
Timo Kreuzer
e609c18651 fix spec file for x86
svn path=/branches/ros-amd64-bringup/; revision=44836
2009-12-31 21:31:14 +00:00