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 <del...@gmx.de> --- src/x86.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/x86.h b/src/x86.h index c7bb60d..020f440 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 @@ -274,4 +276,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 -- 2.29.2 _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-le...@seabios.org