Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* 16bit / 32bit calling
****************************************************************/
-static inline void sgdt(struct descloc_s *desc) {
- asm("sgdtl %0" : "=m"(*desc));
-}
-static inline void lgdt(struct descloc_s *desc) {
- asm("lgdtl %0" : : "m"(*desc) : "memory");
-}
-
u16 StackSeg VARLOW;
// Call a 32bit SeaBIOS function from a 16bit SeaBIOS function.
u32 addr;
} PACKED;
+static inline void sgdt(struct descloc_s *desc) {
+ asm("sgdtl %0" : "=m"(*desc));
+}
+static inline void lgdt(struct descloc_s *desc) {
+ asm("lgdtl %0" : : "m"(*desc) : "memory");
+}
// x86.c
void cpuid(u32 index, u32 *eax, u32 *ebx, u32 *ecx, u32 *edx);