Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/acpica/dist/include/platform Define ACPI_BI...



details:   https://anonhg.NetBSD.org/src/rev/a9044e344559
branches:  trunk
changeset: 954694:a9044e344559
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Tue Sep 08 16:56:29 2020 +0000

description:
Define ACPI_BIG_ENDIAN on BE targets

diffstat:

 sys/external/bsd/acpica/dist/include/platform/acnetbsd.h |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r 8d3113be0813 -r a9044e344559 sys/external/bsd/acpica/dist/include/platform/acnetbsd.h
--- a/sys/external/bsd/acpica/dist/include/platform/acnetbsd.h  Tue Sep 08 16:39:57 2020 +0000
+++ b/sys/external/bsd/acpica/dist/include/platform/acnetbsd.h  Tue Sep 08 16:56:29 2020 +0000
@@ -1,7 +1,7 @@
 /******************************************************************************
  *
  * Name: acnetbsd.h - OS specific defines, etc.
- *       $Revision: 1.20 $
+ *       $Revision: 1.21 $
  *
  *****************************************************************************/
 
@@ -65,10 +65,15 @@
 
 #include <sys/param.h>
 #include <sys/systm.h>
+#include <sys/endian.h>
 #include <dev/acpi/acpica/acpi_func.h>
 
 #define asm         __asm
 
+#if BYTE_ORDER == BIG_ENDIAN
+#define ACPI_BIG_ENDIAN
+#endif
+
 #define ACPI_USE_NATIVE_DIVIDE
 #define ACPI_USE_NATIVE_MATH64
 



Home | Main Index | Thread Index | Old Index