Commit graph

44573 commits

Author SHA1 Message Date
Timo Kreuzer
ab6c2ee54c [CRT]
incude asm.inc instead of reactos/asm.h
Fix a bug that smeaked into _chkstk

svn path=/branches/cmake-bringup/; revision=49591
2010-11-15 01:29:12 +00:00
Timo Kreuzer
0c7d0cbc07 [CMAKE]
Add include/asm to asm include pathes

svn path=/branches/cmake-bringup/; revision=49590
2010-11-15 01:09:10 +00:00
Timo Kreuzer
07652e2631 [RTL]
Make asm files compilable with ML

svn path=/branches/cmake-bringup/; revision=49589
2010-11-15 01:03:14 +00:00
Timo Kreuzer
d3652562e5 [FREELDR]
Convert fathelp.S into ML compatible code. The result is identical to the old version when compiled with gcc, but slightly different when compiled with ml. Especially the code starts at position 6 instead of 0, with a one byte text section at the top, this needs more investigation. also there is a large reg move, but that doesn't hurt. Finally the padding at the end doesn't work at all.

svn path=/branches/cmake-bringup/; revision=49588
2010-11-14 17:46:56 +00:00
Timo Kreuzer
3947c4313f [ASM}
Add .org for ML

svn path=/branches/cmake-bringup/; revision=49586
2010-11-14 13:55:05 +00:00
Timo Kreuzer
ad20e16add [CMAKE]
Fix a typo

svn path=/branches/cmake-bringup/; revision=49585
2010-11-14 13:42:03 +00:00
Timo Kreuzer
acead639b1 [GENINCDATA] add dependency to bugcodes, factor out definitions in template files.
[ASM] Add asm.inc, to be included in all asm files for GAS / ML compatibility

svn path=/branches/cmake-bringup/; revision=49584
2010-11-14 13:40:19 +00:00
Timo Kreuzer
cbf119bf9b [FREELDR]
- Use macro __ASM__ instead of ASM
- guard #pragma once against inclusion in asm files
- Use the HEX() macro for constants for the asm files

svn path=/branches/cmake-bringup/; revision=49583
2010-11-14 13:36:25 +00:00
Timo Kreuzer
345892376c [FREELDR]
Convert arch.S to intel syntax.

svn path=/branches/cmake-bringup/; revision=49582
2010-11-14 13:25:20 +00:00
Timo Kreuzer
dcfe4ea6a9 [PSDK]
Move definitions of BitScanForward and BitScanReverse out of gcc specific area

svn path=/branches/cmake-bringup/; revision=49578
2010-11-13 23:57:49 +00:00
Jérôme Gardou
078e1855fa [CMAKE]
- syssetup.inf has its place in bootcd until we generate it automatically.

svn path=/branches/cmake-bringup/; revision=49577
2010-11-13 23:49:08 +00:00
Jérôme Gardou
e3dad735d4 [CMAKE]
- improve some files

svn path=/branches/cmake-bringup/; revision=49576
2010-11-13 22:23:59 +00:00
Timo Kreuzer
11a6e6c0c4 [CMAKE]
Fix a typo

svn path=/branches/cmake-bringup/; revision=49575
2010-11-13 21:06:05 +00:00
Timo Kreuzer
306ed4d40b [FREELDR]
Merge r49573

svn path=/branches/cmake-bringup/; revision=49574
2010-11-13 21:02:14 +00:00
Timo Kreuzer
ea5d462bdf [FREELDR]
Convert most of the trap and blue screen code from asm to C, use KTRAP_FRAME and KSPECIAL_REGISTERS on the stack, instead of using a bunch of global variables. Convert multiply used asm code chunks into macros. Use intel syntax for remaining asm.
135 lines of C + 178 lines of asm, instead of 942 lines of asm

svn path=/trunk/; revision=49573
2010-11-13 19:48:13 +00:00
Jérôme Gardou
6d8fe9df10 [CMAKE]
- fix typo

svn path=/branches/cmake-bringup/; revision=49572
2010-11-13 00:00:04 +00:00
Jérôme Gardou
eea0d56fec [CAKE]
- simplify set_image_base

svn path=/branches/cmake-bringup/; revision=49571
2010-11-12 23:52:40 +00:00
Amine Khaldi
d4fdd1fa4b [CMAKE]
- Fix build.

svn path=/branches/cmake-bringup/; revision=49570
2010-11-12 13:28:23 +00:00
Sylvain Petreolle
6496ec767d [CMAKE]
Add vgafonts dependency.
Thanks to AmineKhaldi.

svn path=/branches/cmake-bringup/; revision=49569
2010-11-12 13:05:10 +00:00
Sylvain Petreolle
38c38ad62d [CMAKE]
Move jscript stdole2 dependency to jsglobal.

svn path=/branches/cmake-bringup/; revision=49568
2010-11-12 12:46:54 +00:00
Timo Kreuzer
b554be26f1 [CRT]
Revert renaming change to tchar.h, which does not contain any assembly

svn path=/branches/cmake-bringup/; revision=49567
2010-11-11 17:12:12 +00:00
Timo Kreuzer
ab465e66e3 [CRT]
Rename a number of .h files that contain assembly code into .inc to better reflect their purpose

svn path=/branches/cmake-bringup/; revision=49566
2010-11-11 17:10:09 +00:00
Jérôme Gardou
6b0b6cb78f [HEADERS]
- move stlport headers to the c++ directory
 - add a specific _reactos.h configuration file for stlport
 - add cerrno to c++ headers
 - __declspec(nothrow) must be placed before calling convention with msvc. GCC doesn't care.
We now use our headers with both msvc and gcc.

svn path=/branches/cmake-bringup/; revision=49565
2010-11-11 15:58:18 +00:00
Timo Kreuzer
5e8bd0b3df [GENINCDATA]
Fix a bug that caused excessive quotes in the output


svn path=/branches/cmake-bringup/; revision=49563
2010-11-11 15:29:20 +00:00
Timo Kreuzer
82b1bd223a [CMAKE]
Add importlib target for acledit

svn path=/branches/cmake-bringup/; revision=49562
2010-11-11 15:28:02 +00:00
Timo Kreuzer
f2ab1b31c4 [ASM]
add genincdata, a module that will be compiled as a dll to provide the data for geninc to be converted into an .inc file.

svn path=/branches/cmake-bringup/; revision=49561
2010-11-11 13:40:29 +00:00
Sir Richard
ef4089933a [NTOS]: Start using colored pages. This will help performance on real systems significantly as cache is now taken into account by the memory manager. Also radically changes the way page allocations are given out and creates a less uniform physical memory layout. The fact this now works means that the PFN lists are finally now sane.
svn path=/trunk/; revision=49559
2010-11-11 13:15:40 +00:00
Sir Richard
d5c3a8295f [NTOS]: Use MI_PFN_ELEMENT in this code, as the extra checks done by MiGetPfnEntry are irrelevant and slow things down.
[NTOS]: Remove some old ReactOS hacks before we had MMROSPFNDATA.

svn path=/trunk/; revision=49558
2010-11-11 13:13:05 +00:00
Sir Richard
0bbcdaf47f [NTOS]: Fix a bug in MiRemovePageByColor which caused corruption of the page list and could lead to crashes, re-use of freed memory, assuming active memory was free, etc.
svn path=/trunk/; revision=49557
2010-11-11 13:08:41 +00:00
Sir Richard
7a047a7902 [NTOS]: Fix another bug in the continuous memory allocation code, which would go off-by-one while looping the PFN entries for the allocation, and corrupt the PteFrame/PteAddress of an unrelated PFN entry. If this PFN was in the active lists, it would cause page table leaks and faults, if the page was on a free list, it would override the colored list backlink and corrupt the list, later causing unlinked pages to remain linked to the list.
svn path=/trunk/; revision=49556
2010-11-11 13:05:52 +00:00
Art Yerkes
0cb645cb12 Part 1 of fixes: For some reason beyond me, I had abbreviated
MiCowSectionPage to always assume CoW rather than always not
CoW for cache sections.  

Make sure we're looking for cache type sections rather than
(as we were in the branch) data file sections.  More needed.

svn path=/trunk/; revision=49555
2010-11-11 08:15:50 +00:00
Timo Kreuzer
2e9717b577 [CMAKE]
Create importlibs from spec files for kernel32, advapi32, gdi32, user32 and msvcrt
calc now compiles with MSVC and works (slightly buggy)

svn path=/branches/cmake-bringup/; revision=49554
2010-11-10 22:50:21 +00:00
Timo Kreuzer
1d6d730ed6 [MSVCRT] Don't export linux stuff from our precious MSVCRT
[MINGW] Bring back _matherr()

svn path=/branches/cmake-bringup/; revision=49553
2010-11-10 22:43:46 +00:00
Jérôme Gardou
8c6671477e [HEADERS]
- start using our own c++ headers and forward stlport ones to them in msvc build.
 - fix fpecode declaration for MSVC.
[CMAKE]
 - cardlib is a cpp library.
Now stlport compiles with msvc.

svn path=/branches/cmake-bringup/; revision=49552
2010-11-10 22:20:05 +00:00
Timo Kreuzer
3742d626dc [CRT]
Add  pragma function for _wcsset on MSVC builds

svn path=/branches/cmake-bringup/; revision=49551
2010-11-10 22:15:10 +00:00
Timo Kreuzer
cfe78ef2b3 [RTL]
Instead of including ndk/asm.h, add the 2 neccessary constants to seh.s

svn path=/branches/cmake-bringup/; revision=49550
2010-11-10 22:11:12 +00:00
Jérôme Gardou
541b368402 [CMAKE]
- build and export spec2pdef

svn path=/branches/cmake-bringup/; revision=49549
2010-11-10 22:02:51 +00:00
Timo Kreuzer
6d02bbe70e [CMAKE]
- add importlib target for ntdll

svn path=/branches/cmake-bringup/; revision=49547
2010-11-10 21:01:14 +00:00
Jérôme Gardou
5d8dd5d148 [STLPORT]
- move headers to include directory
  - delete some incidentally committed things

svn path=/branches/cmake-bringup/; revision=49546
2010-11-10 17:36:28 +00:00
Timo Kreuzer
2b5855372c [CMAKE]
- Move spec2def into comppiler specific files, use spec2pdef tool on MSVC builds
- Add a ridiculously complex macro to create the importlibs for MSVC. (It was hard for me to figure this out, so be it for you ;-))

svn path=/branches/cmake-bringup/; revision=49545
2010-11-10 12:33:24 +00:00
Timo Kreuzer
f655f86d82 [MINGW]
special stuff for MSVC

svn path=/branches/cmake-bringup/; revision=49543
2010-11-09 20:43:09 +00:00
Sir Richard
64e92d2d8e [NTOS]: Fix bugs in MiAllocateContiguousPages. Fixes an ASSERT Caemyr was seeting a lot (the cont-able ASSERT).
svn path=/trunk/; revision=49541
2010-11-09 13:26:26 +00:00
Timo Kreuzer
769e7c0eb8 [CMAKE]
Add a hack to fix compilation of irot.idl with MSVC. If someone knows how to correctly fix this, please let me know.

svn path=/branches/cmake-bringup/; revision=49538
2010-11-09 01:42:06 +00:00
Amine Khaldi
5c96fe41a4 [CMAKE]
- Use pdef files in some dlls.

svn path=/branches/cmake-bringup/; revision=49537
2010-11-08 22:57:05 +00:00
Timo Kreuzer
4dc6967310 [CRT]
Fix assembly syntax


svn path=/branches/cmake-bringup/; revision=49536
2010-11-08 19:21:13 +00:00
Timo Kreuzer
04d745acca [CMAKE]
add missing dependency

svn path=/branches/cmake-bringup/; revision=49535
2010-11-08 19:01:52 +00:00
Timo Kreuzer
84b1635034 [CRT]
- Add #pragma function to a number of intrisics that we implement to avoid a compiler error of MSVC
- Add a workaround to prevent some functions from being inlined
- Move sqrtf out of i386 directory
- Convert a number of inline assembly functions to raw assembly

svn path=/branches/cmake-bringup/; revision=49534
2010-11-08 18:36:45 +00:00
Timo Kreuzer
5e6639c9b2 [CMAKE]
Don't put /M* on the command line

svn path=/branches/cmake-bringup/; revision=49533
2010-11-08 18:14:26 +00:00
Timo Kreuzer
5f52062082 [MSVC]
Fix warnings

svn path=/branches/cmake-bringup/; revision=49532
2010-11-08 13:48:45 +00:00
Timo Kreuzer
77e17454fa [CMAKE]
Delete the Modules dir.

svn path=/branches/cmake-bringup/; revision=49531
2010-11-08 13:45:34 +00:00