From 0aeee13aa695ec617ec22253824f17209660bd39 Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Wed, 4 May 2022 20:56:22 +0300 Subject: [PATCH] added missing "bits 32" directives in the new asm files --- src/cpuid_s.asm | 1 + src/util.h | 2 +- src/util_s.asm | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cpuid_s.asm b/src/cpuid_s.asm index b7b9626..b936168 100644 --- a/src/cpuid_s.asm +++ b/src/cpuid_s.asm @@ -1,4 +1,5 @@ section .text + bits 32 ; foo_ are watcom functions, _foo are djgpp functions F_ID equ 0x200000 diff --git a/src/util.h b/src/util.h index 35d1a97..50148af 100644 --- a/src/util.h +++ b/src/util.h @@ -235,7 +235,7 @@ static unsigned int __inline get_cs(void) #endif unsigned int get_cs(void); -#define get_cpl() ((int)(get_cs() & 7)) +#define get_cpl() ((int)(get_cs() & 3)) void get_msr(uint32_t msr, uint32_t *low, uint32_t *high); void set_msr(uint32_t msr, uint32_t low, uint32_t high); diff --git a/src/util_s.asm b/src/util_s.asm index 69c034a..65198b5 100644 --- a/src/util_s.asm +++ b/src/util_s.asm @@ -1,4 +1,5 @@ section .text + bits 32 ; foo_ are watcom functions, _foo are djgpp functions global get_cs -- 1.7.10.4