aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2021-02-11 05:37:43 +0100
committerHelge Deller <deller@gmx.de>2021-09-24 11:10:17 +0200
commitd58fd429bfa6b94442907132519bfe07dd21b219 (patch)
tree272444381c6c1b3b101ad6276d9db2a0910a4228
parent86e021577933f298aa61a7fb50b820c860f64f59 (diff)
downloadseabios-hppa-d58fd429bfa6b94442907132519bfe07dd21b219.zip
seabios-hppa-d58fd429bfa6b94442907132519bfe07dd21b219.tar.gz
seabios-hppa-d58fd429bfa6b94442907132519bfe07dd21b219.tar.bz2
x86.h: Provide replacement functions for PA-RISC
This header file is included from many places and provides low-level inline assembly functions used on the Intel CPU. On PA-RISC similiar functions exists, so provide replacement functions in an own header file and include that instead. Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r--src/x86.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/x86.h b/src/x86.h
index 43a9e6d..ee7beec 100644
--- a/src/x86.h
+++ b/src/x86.h
@@ -18,6 +18,8 @@
#define PORT_A20 0x0092
#define A20_ENABLE_BIT 0x02
+#if defined(__i386__) || defined(__x86_64__)
+
#ifndef __ASSEMBLY__
#include "types.h" // u32
@@ -281,4 +283,8 @@ void cpuid(u32 index, u32 *eax, u32 *ebx, u32 *ecx, u32 *edx);
#endif // !__ASSEMBLY__
+#elif defined(__hppa__)
+#include "parisc/hppa.h" /* replacement functions for parisc architecture */
+#endif
+
#endif // x86.h