Commit graph

847 commits

Author SHA1 Message Date
Hermès Bélusca-Maïto
f4c0c8f78c [TOOLS_BIN2C]
- Fix a GCC warning (error on Macs) concerning the printf "%Iu" specifier.
- To make sure data included by bin2c, that need to be interpreted as a (long) string, is correctly NULL-terminated, introduce an output format called "STR": this creates a long character array using the "\xXX" format.
- To circumvent a silly limitation of MSVC (all versions?) about the maximum length (65535 bytes) of a char string (aka. char MyArray[] = "...my_long_string...";), introduced yet another output format called "BINSTR" which creates an array of bytes that is NULL-terminated (aka. char MyArray[] = {0xde, 0xad, 0xbe, 0xef, 0x00};).
- Finally, the output format "BIN" is the regular bin2c format (simple array of bytes).

[HAL_PCIDATA][FREELDR_INSTALL]
Use the above-described functionality (for HAL_PCIDATA, use BINSTR format because the PciVendors data is otherwise too large to be stored in "char_string" format).

svn path=/trunk/; revision=68255
2015-06-24 19:54:19 +00:00
Hermès Bélusca-Maïto
1011d89eaa [TOOLS]
Improve bin2c by saving in a #define the size of the generated array, and specify this size in the declaration of the array so that doing sizeof(...) becomes possible. Use "unsigned char" as the (portable) type of the contents of the array.

[HAL]
Add PCHAR casts where needed to take into account the previous modifications.

svn path=/trunk/; revision=68139
2015-06-14 18:13:50 +00:00
Christoph von Wittich
658c64a7fe [HAL]
replace ' laH' by TAG_HAL

svn path=/trunk/; revision=68105
2015-06-11 18:38:52 +00:00
Christoph von Wittich
451c233f29 [HAL]
fix a typo
add BusAddress to DPRINT

svn path=/trunk/; revision=68030
2015-06-06 08:37:53 +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
Daniel Reimer
e675ab0cb6 Fixing some incorrectly written Reactos -> ReactOS
CORE-7524 #comment Some less of these now.

svn path=/trunk/; revision=67239
2015-04-18 09:01:23 +00:00
Hermès Bélusca-Maïto
ca31e1569d [HALx86]: Display the invalid opcodes when HalpOpcodeInvalid is called.
svn path=/trunk/; revision=65311
2014-11-07 21:19:27 +00:00
Timo Kreuzer
a841fadcaa [HAMMERTIMESTFU]
Silence "a few" DPRINTs

svn path=/trunk/; revision=65181
2014-11-02 11:30:14 +00:00
Jérôme Gardou
4e9593f906 [CMAKE]
- Introduce the kerneldll module type (like kernelmodedriver, but ending with .dll) and use it in various places
 - vfatx.dll whould in fact be a native DLL

svn path=/trunk/; revision=64526
2014-10-04 20:25:57 +00:00
Timo Kreuzer
b4aecf7095 [HAL]
Fix some function prototypes and avoid real ugly casts

svn path=/trunk/; revision=64212
2014-09-21 16:00:27 +00:00
Thomas Faber
a28f3fc476 [HAL]
- Don't use svn:eol-style = native for PCI ids but then have the code expect CRLF. Should fix all devices being "Unknown device" on Unix builds.

svn path=/trunk/; revision=64158
2014-09-15 10:58:53 +00:00
Timo Kreuzer
e5134bc5e0 [SPEC2DEF] Add support for ARM asm stub generation
[HALARM] Add a dummy CMakeLists.txt
[BOOTVID] Fix ARM compilation

svn path=/trunk/; revision=64039
2014-09-05 20:07:53 +00:00
Hermès Bélusca-Maïto
ccce1066ef [HAL]
Update the PCI hardware IDs. Extracted from the pci.ids database from http://pciids.sourceforge.net/ from 2014.08.30
Maintained by Martin Mares <mj@ucw.cz> and other volunteers from the PCI ID Project at http://pci-ids.ucw.cz/.

svn path=/trunk/; revision=64024
2014-09-01 16:42:58 +00:00
Cameron Gutman
ef4815c35f [HAL]
Fix a catastrophic bug in S/G DMA. There is a subtle difference between the S/G DMA APIs and the old AllocateAdapterChannel API when it comes to having multiple requests in flight. Callers of (Io)AllocateAdapterChannel CANNOT queue another request until the AdapterControlRoutine is called. S/G DMA allows multiple concurrent DMA requests, but ROS was using IoAllocateAdapterChannel in the S/G API. As a result, the wait block stored in the device object was unexpectedly reinitalized and queued again. This results in a leak of the originally queued request context, potentially performing the new DMA operation twice while dropping the old request, and use after free of the context passed to HalpScatterGatherAdapterControl.

svn path=/trunk/; revision=63898
2014-08-17 01:42:02 +00:00
Pierre Schweitzer
9c67c46e09 [HALX86]
Properly declare with FORCEINLINE

svn path=/trunk/; revision=63147
2014-05-04 09:39:44 +00:00
Amine Khaldi
fa3a8297eb [HAL]
* Prepare the CMake scripts for PCH.
CORE-7716

svn path=/trunk/; revision=62109
2014-02-10 18:35:12 +00:00
Amine Khaldi
6184b165c0 [HAL]
* Add header guards to the main header.
CORE-7716

svn path=/trunk/; revision=62101
2014-02-10 16:50:32 +00:00
Amine Khaldi
a69a0b3244 [HAL]
* Remove one time inclusions from the main header and put them back where they belong.
CORE-7716

svn path=/trunk/; revision=61956
2014-02-03 10:58:33 +00:00
Christoph von Wittich
e9741e1328 [halx86]
fix vendor name lookup - MegaRAID SAS 8480E VGA controllers does not exist (yet)

svn path=/trunk/; revision=61620
2014-01-13 20:09:12 +00:00
Amine Khaldi
b9190f50ba [HAL/*]
* Improve resource files.
CORE-7637

svn path=/trunk/; revision=61137
2013-11-28 22:27:43 +00:00
Hermès Bélusca-Maïto
8109301ade [HAL][PCIX]: Finish to put \r\n for Hal\InbvDisplayStrings. Part 3/3.
svn path=/trunk/; revision=60657
2013-10-13 23:37:11 +00:00
Amine Khaldi
67e54eab08 [HAL]
* Simplify these checks now that we have RosBE 2.1.

svn path=/trunk/; revision=60241
2013-09-20 10:26:05 +00:00
Hermès Bélusca-Maïto
32bb8a377c [HAL]
Update the PCI hardware IDs. Extracted from the pci.ids database from http://pciids.sourceforge.net/ from 2013.07.20
Maintained by Martin Mares <mj@ucw.cz> and other volunteers from the PCI ID Project at http://pci-ids.ucw.cz/.

svn path=/trunk/; revision=59551
2013-07-21 23:03:04 +00:00
Amine Khaldi
2841da1b46 [CMAKE]
* Add some missing order only dependencies.

svn path=/trunk/; revision=59040
2013-05-19 13:43:47 +00:00
Amine Khaldi
46483ced1a [HAL]
* Account for the asm source files in all the HAL flavors. Should fix compiling them with VS (which regressed recently).

svn path=/trunk/; revision=58862
2013-04-26 22:31:07 +00:00
Hermès Bélusca-Maïto
645b7d2b00 [REACTOS]
Fix TOO MANY !! :(((( "initialize" misspellings.

Note1: One remains in subsystems/csr/csrsrv/init.c, but will be corrected in my future csrss branch merging.
Note2: In ntoskrnl/se/semgr.c, one tries to create the "LSA_AUTHENTICATION_INITALIZED" event. This is ROS-SPECIFIC !!!! In the sense that it doesn't exist on Windows. Instead, the "LSA_AUTHENTICATION_INITIALIZED" exists. Correct that fact.

svn path=/trunk/; revision=58679
2013-04-04 20:11:17 +00:00
Timo Kreuzer
0351bb4f27 [HAL]
Link to libgcc, hopefully fixes build for Pierre

svn path=/trunk/; revision=58602
2013-03-24 13:27:52 +00:00
Timo Kreuzer
e66df55a54 [HAL]
Fix the mess that was our hal CMakeLists.txt. Seperate all components into their own cmake files, 

svn path=/trunk/; revision=58594
2013-03-23 21:15:28 +00:00
Hermès Bélusca-Maïto
d0fa874320 Remove the unneeded $Id$ blabla from the source code. (Part 2/N)
svn path=/trunk/; revision=58500
2013-03-14 21:04:13 +00:00
Hermès Bélusca-Maïto
0823512b4a - Remove ALL the unneeded "author date id revision" svn properties.
- Remove the erroneous svn:eol-syle or svn:eol-stlye properties (and replace them by svn:eol-style)

svn path=/trunk/; revision=58489
2013-03-13 23:50:08 +00:00
Timo Kreuzer
e70f0c092c [HAL]
Add more missing asm dependencies

svn path=/trunk/; revision=58349
2013-02-22 13:41:29 +00:00
Timo Kreuzer
a7931f3d82 [HAL]
Add missing asm dependency

svn path=/trunk/; revision=58333
2013-02-17 14:36:30 +00:00
Thomas Faber
5b8e0f3d80 [HAL]
- Fix missing dependency on asm in GCC object library build
CORE-6941 #resolve

svn path=/trunk/; revision=58288
2013-02-05 12:03:56 +00:00
Hermès Bélusca-Maïto
cb2a5efc11 [REACTOS]
Fix the debugging macros introduced in r58132 (for the _FATAL case):
do not use exceptions but instead a breakpoint followed by a process termination procedure (or a bugcheck if we are in kernel mode).
Feel free to improve them !!

[DRIVERS-HAL]
Finish to use the new debugging macros

Part 3/3

svn path=/trunk/; revision=58154
2013-01-10 01:45:22 +00:00
Amine Khaldi
8ca80bb2cb * Visual Studio IDE support bringup. We can now even compile bootcd/livecd...etc straight from the IDE.
* For anyone who wants to work only on a certain module (or a set of modules), you can add "project(module)" to the related CMake file. This will generate a solution that contains all the required dependencies needed to compile only that module, without having to open a huge solution with 900+ projects.
* We'll create a wiki page to explain how to use this in detail.
* Dedicated to all VS users. Have fun ;)

svn path=/trunk/; revision=58141
2013-01-08 20:33:08 +00:00
Hermès Bélusca-Maïto
b70845423e while (TRUE); (when something is unimplemented) ---> ASSERT(FALSE); // while (TRUE); (unless we deal with a 'noreturn' function),
and in some cases, return an adequate value.

Part 1/2

svn path=/trunk/; revision=58110
2013-01-04 11:47:19 +00:00
Timo Kreuzer
2cdf5f5ce0 [HAL]
Fix / silence some warnings/errors detected with VS-analyze

svn path=/trunk/; revision=57941
2012-12-18 09:52:07 +00:00
Amine Khaldi
ba83a0794e [HAL]: Automatically generate the embedded PCI database. By Hermès Bélusca with improvements from me.
CORE-6654 #resolve #comment Patch committed. Thanks !

svn path=/trunk/; revision=57297
2012-09-14 13:14:47 +00:00
Amine Khaldi
5810d8370f [HAL]
* Don't compile lib_hal_pic for x64. Brought to you by Hermès Bélusca.
See issue #7309 for more details.

svn path=/trunk/; revision=57182
2012-08-27 21:24:22 +00:00
Amine Khaldi
2a0e108e5b [CMAKE]
* Prefer STREQUAL over MATCHES since we're comparing with strings here. Brought to you by Hermès Bélusca.
See issue #7306 for more details.

svn path=/trunk/; revision=57181
2012-08-27 18:58:27 +00:00
Amine Khaldi
56747bcf8f [HAL]
* Leverage the object library option provided by CMake 2.8.8+ which will speed up the build even further.
* Compared strings using STREQUAL.
* These wrapping conditions will go away as soon as we ship the new BE.

svn path=/trunk/; revision=56909
2012-07-17 14:11:49 +00:00
Timo Kreuzer
efff43afd5 [HAL]
Fix MSVC / 64 bit warnings

svn path=/trunk/; revision=56260
2012-03-28 12:15:54 +00:00
Stefan Ginsberg
18748efb4b - Revert hack.
svn path=/trunk/; revision=56237
2012-03-26 14:51:03 +00:00
Stefan Ginsberg
26eb754f31 Remove remnant of old boot method.
svn path=/trunk/; revision=56228
2012-03-25 16:57:10 +00:00
Pierre Schweitzer
b8a181d6f3 [HALX86]
Revert r56080
Fix the fix of r56090

svn path=/trunk/; revision=56099
2012-03-10 07:38:25 +00:00
Stefan Ginsberg
1016fc25ff - Fix DBG macro AGAIN which got broken during the switch to cmake. Checked build: DBG = 1, free build: DBG = 0. Noobs.
svn path=/trunk/; revision=56090
2012-03-08 09:18:28 +00:00
Jérôme Gardou
4bdb6a42f2 [CMAKE]
* unify spec2def and add_importlib_target
* use module name instead of spec file name for deciding importlib target name

svn path=/trunk/; revision=56081
2012-03-07 21:21:27 +00:00
Pierre Schweitzer
92de8cffa3 [HALX86]
Fix halx86 release build

svn path=/trunk/; revision=56080
2012-03-07 21:19:30 +00:00
Stefan Ginsberg
5001cb2608 - Stop using ObfXXX and IofXXX in C code. This is bad style. Always use the non-f versions in C code.
- Fix the way we undefined IoCallDriver and IoCompleteRequest so existing and future code in irp.c will use the correct function when using the Io* versions.
Part 1 of 2.

svn path=/trunk/; revision=56060
2012-03-05 20:43:47 +00:00
Amine Khaldi
818418643e * Rbuild, our build system, has served us well so far, but its usefulness has since been vastly overshadowed by its awfulness. It's time to fix it.
svn path=/trunk/; revision=55855
2012-02-25 17:23:37 +00:00