Author: hbelusca
Date: Thu Apr 3 23:32:58 2014
New Revision: 62607
URL: http://svn.reactos.org/svn/reactos?rev=62607&view=rev
Log:
[ACPICA]
Addendum to revision 62606 : because of typedefs redefinitions (we, after, include acpi.h and co. together with DDK in other acpi bus drivers), we hackishly needed to disable them in actypes.h, and now we need to include ntddk *inside* acpi.h ...
Everything would be nice only if ACPICA would not have the "clever" (read: dumb) idea to define a ACPI_BIOS_ERROR macro, which is (you guessed it) already defined.... in the DDK via the standard bugcheck code macros.
So we introduce two hacks: the firs one right after the inclusion of ntddk.h *in* acpi.h to first undefine the macro (coming from bugcheck.h), *then*, we re-undefine it *after* the inclusion of acpi.h (in the precompiled header) so that drivers that need to use acpi (via the header) can after, include the ntddk.h ...
What a hack :DD
Part 2bis of our modifications to ACPICA code.
CORE-8044
Modified:
trunk/reactos/drivers/bus/acpi/acpica/include/acpi.h
trunk/reactos/drivers/bus/acpi/precomp.h
Modified: trunk/reactos/drivers/bus/acpi/acpica/include/acpi.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/acpi/acpica/in…
==============================================================================
--- trunk/reactos/drivers/bus/acpi/acpica/include/acpi.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/acpi/acpica/include/acpi.h [iso-8859-1] Thu Apr 3 23:32:58 2014
@@ -117,6 +117,12 @@
#define __ACPI_H__
/*
+ * Header inclusion HACK (see modifications to actypes.h too).
+ */
+#include <ntddk.h>
+#undef ACPI_BIOS_ERROR // ACPI_BIOS_ERROR is redefined in acoutput.h
+
+/*
* Public include files for use by code that will interface to ACPICA.
*
* Information includes the ACPICA data types, names, exceptions, and
Modified: trunk/reactos/drivers/bus/acpi/precomp.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/acpi/precomp.h…
==============================================================================
--- trunk/reactos/drivers/bus/acpi/precomp.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/acpi/precomp.h [iso-8859-1] Thu Apr 3 23:32:58 2014
@@ -1,7 +1,14 @@
#ifndef _ACPI_PCH_
#define _ACPI_PCH_
+#include <stdio.h>
+
#include <acpi.h>
+
+// ACPI_BIOS_ERROR was defined in acoutput.h, but is
+// redefined in bugcodes.h included from the DDK.
+#undef ACPI_BIOS_ERROR
+
#include <acpisys.h>
#include <acpi_bus.h>
#include <acpi_drivers.h>
Author: hbelusca
Date: Thu Apr 3 22:09:20 2014
New Revision: 62606
URL: http://svn.reactos.org/svn/reactos?rev=62606&view=rev
Log:
[ACPICA]
Disable redundant typedefs that we already got from the inclusion of ntddk.h from elsewhere (and it was done like that in our old modifications of ACPICA).
Personally I don't like this way to go, but for the moment just apply something that (seemed to) worked before...
Part 2 of our modifications to ACPICA code.
CORE-8044
Modified:
trunk/reactos/drivers/bus/acpi/acpica/include/actypes.h
Modified: trunk/reactos/drivers/bus/acpi/acpica/include/actypes.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/acpi/acpica/in…
==============================================================================
--- trunk/reactos/drivers/bus/acpi/acpica/include/actypes.h [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/acpi/acpica/include/actypes.h [iso-8859-1] Thu Apr 3 22:09:20 2014
@@ -196,11 +196,11 @@
*
******************************************************************************/
-typedef unsigned char BOOLEAN;
-typedef unsigned char UINT8;
-typedef unsigned short UINT16;
-typedef COMPILER_DEPENDENT_UINT64 UINT64;
-typedef COMPILER_DEPENDENT_INT64 INT64;
+// typedef unsigned char BOOLEAN;
+// typedef unsigned char UINT8;
+// typedef unsigned short UINT16;
+// typedef COMPILER_DEPENDENT_UINT64 UINT64;
+// typedef COMPILER_DEPENDENT_INT64 INT64;
/*! [End] no source code translation !*/
@@ -225,8 +225,8 @@
/*! [Begin] no source code translation (keep the typedefs as-is) */
-typedef unsigned int UINT32;
-typedef int INT32;
+// typedef unsigned int UINT32;
+// typedef int INT32;
/*! [End] no source code translation !*/
@@ -264,8 +264,8 @@
/*! [Begin] no source code translation (keep the typedefs as-is) */
-typedef unsigned int UINT32;
-typedef int INT32;
+// typedef unsigned int UINT32;
+// typedef int INT32;
/*! [End] no source code translation !*/
Author: dgorbachev
Date: Tue Apr 1 08:58:08 2014
New Revision: 62599
URL: http://svn.reactos.org/svn/reactos?rev=62599&view=rev
Log:
Improve config.cmake slightly.
Modified:
trunk/reactos/cmake/config.cmake
Modified: trunk/reactos/cmake/config.cmake
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/config.cmake?rev=625…
==============================================================================
--- trunk/reactos/cmake/config.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/config.cmake [iso-8859-1] Tue Apr 1 08:58:08 2014
@@ -12,8 +12,8 @@
set(OPTIMIZE "4" CACHE STRING
"What level of optimization to use.
- 0 = off
- 1 = Default option, optimize for size (-Os) with some additional options
+ 0 = Off
+ 1 = Optimize for size (-Os) with some additional options
2 = Optimize for size (-Os)
3 = Optimize debugging experience (-Og)
4 = Optimize (-O1)
@@ -59,16 +59,16 @@
Do not enable unless you know what you're doing.")
set(NSWPAT FALSE CACHE BOOL
-"Whether to compile apps/libs with features covered software patents or not.
+"Whether to build apps/libs with features covered by software patents.
If you live in a country where software patents are valid/apply, don't
enable this (except they/you purchased a license from the patent owner).
-This settings is disabled (0) by default.")
+This setting is disabled by default.")
set(BUILD_MP TRUE CACHE BOOL
-"Whether to compile the multi processor versions for ntoskrnl and hal.")
+"Whether to build the multiprocessor versions of NTOSKRNL and HAL.")
set(GENERATE_DEPENDENCY_GRAPH FALSE CACHE BOOL
-"Whether to create a graphml dependency of dlls.")
+"Whether to create a GraphML dependency graph of DLLs.")
if(MSVC)
set(_PREFAST_ FALSE CACHE BOOL
Author: dgorbachev
Date: Tue Apr 1 08:57:58 2014
New Revision: 62598
URL: http://svn.reactos.org/svn/reactos?rev=62598&view=rev
Log:
[BUGCODES]
- Add an error message for Proprietary Software Execution Prevention
feature supported by recent CPUs.
- TODO: Implement this feature in the kernel.
Modified:
trunk/reactos/include/reactos/mc/bugcodes.mc
Modified: trunk/reactos/include/reactos/mc/bugcodes.mc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/mc/bugcode…
==============================================================================
--- trunk/reactos/include/reactos/mc/bugcodes.mc [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/mc/bugcodes.mc [iso-8859-1] Tue Apr 1 08:57:58 2014
@@ -1088,6 +1088,20 @@
to make sure it is properly configured and terminated.
Run CHKDSK /F to check for hard drive corruption, and then
restart your computer.
+.
+
+MessageId=0x7C
+Severity=Success
+Facility=System
+SymbolicName=MORAL_EXCEPTION_ERROR
+Language=English
+An attempt was made to execute a proprietary machine code instruction.
+The system has been shut down to prevent damage to your conscience.
+
+If this is the first time you have seen this error screen, read
+<http://www.gnu.org/philosophy/free-sw.html>.
+
+If problems continue, remove all nonfree software from your computer.
.
MessageId=0x7D