aboutsummaryrefslogtreecommitdiffstats
path: root/src/types.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2008-03-08 15:43:03 -0500
committerKevin O'Connor <kevin@koconnor.net>2008-03-08 15:43:03 -0500
commita4d357638c572179adae156c62c850f5a1cf369f (patch)
tree918c76ae53a5590b767284f13ccc848c7eeb773d /src/types.h
parenta9096f405a04b46a21eac4ed5263143be2ef2b4f (diff)
downloadseabios-a4d357638c572179adae156c62c850f5a1cf369f.tar.gz
Port rombios32 code from bochs-bios.
This adds acpi, smbios, pci init, etc. Changes from original rombios32.c code: * Header file translation. * Use common functions already in code (eg, outb, memset, bios_printf, usleep) * Implement trampoline for disabling bios shadowing (rombios32 code actually runs in the 0xf0000 area). * Copy asm code from rombios32start.S to an asm() statement in C code.
Diffstat (limited to 'src/types.h')
-rw-r--r--src/types.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/types.h b/src/types.h
index 3bd76c58..b1bf2ef7 100644
--- a/src/types.h
+++ b/src/types.h
@@ -32,4 +32,9 @@ typedef u32 size_t;
#define PACKED __attribute__((packed))
+#define barrier() __asm__ __volatile__("": : :"memory")
+
+#define __stringify_1(x) #x
+#define __stringify(x) __stringify_1(x)
+
#endif // types.h