Commit graph

62128 commits

Author SHA1 Message Date
Pierre Schweitzer
56472fe96e [NTOSKRNL]
Fix symbolic names list bound check in IopCreateArcNamesCd().
Spotted by "msuhanov"

CORE-9698 #resolve #comment Fixed in r67747. Thanks!

svn path=/trunk/; revision=67747
2015-05-15 21:08:06 +00:00
Aleksandar Andrejevic
08ec785c24 [NTVDM]
Reverse the HSYNC/VSYNC polarity when it should be reversed.


svn path=/trunk/; revision=67746
2015-05-15 19:51:40 +00:00
Amine Khaldi
9b1cceafb1 [SYSDM] Simplify loading usrmgr.cpl. By Jared Smudde. CORE-9694
svn path=/trunk/; revision=67745
2015-05-15 16:47:21 +00:00
Pierre Schweitzer
972e0e8125 [FASTFAT]
Hey Arch, if you simplify, do it completely!
Addendum to r67743: don't double free the context

svn path=/trunk/; revision=67744
2015-05-15 16:33:20 +00:00
Pierre Schweitzer
3b6a55716f [FASTFAT]
Bring in initiated work on IRPs in NTFS (and complete it).
This simplifies the way IRPs and their context are handled in the driver.
Only VfatDispatchRequest() is responsible of completing IRPs (if required), freeing the IRP context (if required), and queueing the IRP for later completion (if required).
This allows removing duplicated code, hacks, and so on. It might help reducing IRP leaks, or memory leaks.

By default, VfatDispatchRequest() will complete the IRP and delete the IRP context.
In case you don't want it to complete the IRP (because you passed it down, for instance), remove the IRPCONTEXT_COMPLETE flag. See for instance: VfatDeviceControl().
In case you want to queue the IRP (you previously called: VfatQueueRequest()), call the newly introduced VfatMarkIrpContextForQueue() function that will prepare it.

svn path=/trunk/; revision=67743
2015-05-15 16:03:29 +00:00
Aleksandar Andrejevic
45e50d10a0 [NTVDM]
- Properly initialize the current directories on startup.
- Add a missing colon after the drive letter.


svn path=/trunk/; revision=67742
2015-05-15 00:39:34 +00:00
Aleksandar Andrejevic
d81d62d615 [NTVDM]
- Make the Sda pointer point to the right place.
- Fix a buffer overflow.


svn path=/trunk/; revision=67741
2015-05-15 00:20:54 +00:00
Timo Kreuzer
e9f29e5951 [MSHTML/OLEAUT32]
Make msvc.S compile on ARM, too

svn path=/trunk/; revision=67740
2015-05-14 22:33:27 +00:00
Timo Kreuzer
80fec2464d [KS] "Fix" ARM build
svn path=/trunk/; revision=67739
2015-05-14 22:33:15 +00:00
Timo Kreuzer
c8fa6a70c9 [VIDEOPRT]
Fix ARM build

svn path=/trunk/; revision=67738
2015-05-14 22:33:03 +00:00
Timo Kreuzer
6eae9fd0d8 [RPCRT4]
Fix ARM build

svn path=/trunk/; revision=67737
2015-05-14 22:32:49 +00:00
Timo Kreuzer
369786f126 [KERNEL32/KSECDD/GDI32/BMFD/DBGHELP/HALARM/SETUPLDR]
Fix ARM build

svn path=/trunk/; revision=67736
2015-05-14 22:32:35 +00:00
Timo Kreuzer
adc234ba9c [NTOSKRNL]
Fix ARM build

svn path=/trunk/; revision=67735
2015-05-14 22:31:58 +00:00
Timo Kreuzer
014f5582c3 [FRAMEDYN]
Separate exports by architecture and add ARM exports

svn path=/trunk/; revision=67734
2015-05-14 22:31:25 +00:00
Timo Kreuzer
06165f05bd [CMAKE]
Exclude some modules from ARM build

svn path=/trunk/; revision=67733
2015-05-14 22:31:12 +00:00
Timo Kreuzer
9b8b564ef5 [CMAKE]
Make sure WIN32 is defined for ARM builds

svn path=/trunk/; revision=67732
2015-05-14 22:30:56 +00:00
Timo Kreuzer
350a7747d4 [CRT]
Rename __CxxFrameHandler to __CxxFrameHandler3

svn path=/trunk/; revision=67731
2015-05-14 22:30:48 +00:00
Timo Kreuzer
c8a7258733 [MSVCRT]
- Separate C++ exports per architecture, add ARM exports (that again have different mangling)
- Add symbol aliases for ARM C++ exports
- Compile in/out functions only on x86
- Add some missing exports for non-x86

svn path=/trunk/; revision=67730
2015-05-14 21:53:15 +00:00
Timo Kreuzer
febee0a7a2 [CRT]
setjmp is a macro expanding to _setjmp or _setjmpex. In soviet russia and on ARM builds, the compiler will convert invocation of _setjmp back into a call to setjmp. The compiler handles _setjmp and _setjmpex in the same way, generating code where r0 points to the jump_buf and r1 points to the current functions stack frame (sp on function entry). So make setjmp and _setjmp aliases to _setjmpex and make the latter use r1.

svn path=/trunk/; revision=67729
2015-05-14 21:52:45 +00:00
Timo Kreuzer
2f20d0b140 [CRT]
Don't use _control87 on ARM builds

svn path=/trunk/; revision=67728
2015-05-14 21:52:23 +00:00
Timo Kreuzer
7b2824f7ee [CRT]
add __va_copy for ARM

svn path=/trunk/; revision=67727
2015-05-14 21:52:09 +00:00
Hermès Bélusca-Maïto
6b9a175dfb [NTVDM]
- Add some early "return" after calls to EmulatorTerminate()
- Some VDDs rely on the fact that NTVDM calls ExitProcess on Windows when it is going to quit, so let's do the same.
- Put port 61h (and 62h) support in ppi.c (programmable-peripheral-interface).

svn path=/trunk/; revision=67726
2015-05-14 21:13:07 +00:00
Eric Kohl
b4e859a232 [NTOSKRNL]
Create the "Hardware Profiles\0000" key as part of the registry setup. This must be done at this point because the "Hardware Profiles\Current" link will only be created, if the "Hardware Profiles\0000" key exists.

svn path=/trunk/; revision=67725
2015-05-14 21:08:42 +00:00
Timo Kreuzer
8bfb541424 [LIBSAMPLERATE]
Fix build

svn path=/trunk/; revision=67724
2015-05-14 20:58:41 +00:00
Timo Kreuzer
12ac6dabfb [D3DX9_36/WINED3D]
Partly revert previous changes, bringing back copysignf. Add global defines copysignf=_copysignf, since we have that now.

svn path=/trunk/; revision=67723
2015-05-14 20:45:56 +00:00
Timo Kreuzer
b2135ede32 [CRT]
Update / improve math.h a bit

svn path=/trunk/; revision=67722
2015-05-14 20:21:14 +00:00
Timo Kreuzer
0c72efe8f1 [CRT]
Make sure to get no errors, when implementing functions that exist as intrinsics.

svn path=/trunk/; revision=67721
2015-05-14 20:20:59 +00:00
Timo Kreuzer
c40efb1837 [CRT/CPPRT]
Add some files for non-x86 to build

svn path=/trunk/; revision=67720
2015-05-14 20:20:31 +00:00
Timo Kreuzer
03282ac383 [CRT]
Fix build

svn path=/trunk/; revision=67719
2015-05-14 19:51:12 +00:00
Timo Kreuzer
d924c50bdf [CRT]
Add simple C implementations for acosf, ceilf, floorf, fmodf and fix sqrtf

svn path=/trunk/; revision=67718
2015-05-14 19:44:50 +00:00
Timo Kreuzer
6115da1a2a [CRT]
Add simple C implementations for _chgsignf, _copysignf, _hypotf, asinf, atan2f, atanf, coshf, expf, log10f, modff, sinhf, tanf, tanhf

svn path=/trunk/; revision=67717
2015-05-14 19:06:00 +00:00
Timo Kreuzer
81e0eb6b13 [NTOSKRNL]
Rewrite KiSwapContext for ARM

svn path=/trunk/; revision=67716
2015-05-14 14:50:19 +00:00
Timo Kreuzer
6212c824eb [NTOSKRNL] Fix compilation of some ARM assembler files
[NTDLL] Add missing ASM stubs for ARM

svn path=/trunk/; revision=67715
2015-05-14 14:50:07 +00:00
Timo Kreuzer
845ec2108d [NTOSKRNL] Fix some Interlocked exports for non-x86, export some ARM specific functions
[NTDLL] Export some ARM specific functions
[SCSIPORT] Fix ARM exports

svn path=/trunk/; revision=67714
2015-05-14 14:49:41 +00:00
Eric Kohl
a84978c658 [PARPORT]
Implement basic funtions of the parallel port driver. It supports Centronics-Mode only.
You can print files using: copy <filename> lpt1:

svn path=/trunk/; revision=67713
2015-05-14 14:42:05 +00:00
Thomas Faber
f1291bfaea [ADVAPI32_WINETEST]
- Replace test_reg_query_info with the upstream version as promised in r67424.
CORE-6976

svn path=/trunk/; revision=67712
2015-05-14 13:08:07 +00:00
Thomas Faber
f94cb518bb [ADVAPI32]
- Add parameter check to RegQueryInfoKeyA
CORE-6976

svn path=/trunk/; revision=67711
2015-05-14 13:02:49 +00:00
Timo Kreuzer
a4c81347b4 [CRT]
Add stubs for __stoi64 and __stou64

svn path=/trunk/; revision=67710
2015-05-14 10:20:08 +00:00
Timo Kreuzer
c167f82226 [D3DX9_36/WINED3D]
- Remove useless copysignf invocation and the wrong defines for it
- BrokenHacksOnTopOfBrokenCode--;
- Should be sent upstream

svn path=/trunk/; revision=67709
2015-05-14 10:00:37 +00:00
Aleksandar Andrejevic
0aff65fcb4 [FAST486]
- Make Fast486ReadMemory and Fast486WriteMemory FASTCALL.
- Fix build when FAST486_NO_FPU is defined.


svn path=/trunk/; revision=67708
2015-05-13 23:26:25 +00:00
Aleksandar Andrejevic
365727d3e7 [NTVDM]
Fill the part of the buffer that was supposed to receive memory data
above the MAX_ADDRESS with 0xFF.


svn path=/trunk/; revision=67707
2015-05-13 23:23:17 +00:00
Amine Khaldi
41b8d0a78c [CMAKE] Add a minimum major/minor subsystem version number for ARM. Dedicated to Timo.
svn path=/trunk/; revision=67706
2015-05-13 12:12:20 +00:00
Aleksandar Andrejevic
915d26288b [FAST486]
For regular protected mode interrupts, the TF and NT flags should be cleared.


svn path=/trunk/; revision=67704
2015-05-13 03:00:54 +00:00
Aleksandar Andrejevic
dafeadd7ab [FAST486]
Addendum to r67702.


svn path=/trunk/; revision=67703
2015-05-12 21:37:10 +00:00
Aleksandar Andrejevic
84ed5d3cf2 [FAST486]
Superfluous prefixes don't usually generate #UD, except for LOCK.


svn path=/trunk/; revision=67702
2015-05-12 20:08:39 +00:00
Daniel Reimer
1e3adf9e73 [REGEXPL]
Reenable for amd64

svn path=/trunk/; revision=67701
2015-05-12 19:16:30 +00:00
Daniel Reimer
a990c60f4d [C++]
Add amd64 version of r64555. Suggested and reviewed by Thomas Faber

svn path=/trunk/; revision=67700
2015-05-12 19:16:03 +00:00
Aleksandar Andrejevic
8664805720 Fix build. Forgot a file.
svn path=/trunk/; revision=67699
2015-05-12 19:11:53 +00:00
Aleksandar Andrejevic
0dc2da8084 [FAST486]
- Only flush the TLB when needed.
- Flush the TLB after a reset.


svn path=/trunk/; revision=67698
2015-05-12 19:10:52 +00:00
Daniel Reimer
5670e997ca [REDEXPL]
This is evil under amd64, too... so we disable it for now.
[ROSHTTPD]
UINT -> size_t
[NCFTP]
About time to clean this mess. Are we a Unix? No sir!

svn path=/trunk/; revision=67697
2015-05-12 18:14:39 +00:00