aboutsummaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2022-04-27 01:21:20 +0200
committerJavier <dev.git@javispedro.com>2022-04-27 01:21:20 +0200
commit6faf797ee40f494e385d1d99ef2da55740326ce0 (patch)
tree21016407455221fee3ba775bb118f9d1cfd85bc8 /utils.h
parent13cc0921d8f9a0d488a27e2c86c1d9d013a964fe (diff)
downloadvbados-6faf797ee40f494e385d1d99ef2da55740326ce0.tar.gz
vbados-6faf797ee40f494e385d1d99ef2da55740326ce0.zip
refactor: use INTPACKW (always 16-bit) instead of INTPACKX
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils.h b/utils.h
index 16ad7fb..e207b44 100644
--- a/utils.h
+++ b/utils.h
@@ -39,6 +39,9 @@ static inline __segment get_cs(void);
static inline __segment get_ds(void);
#pragma aux get_ds = "mov ax, ds" value [ax] modify exact [];
+static inline __segment get_ss(void);
+#pragma aux get_ss = "mov ax, ss" value [ax] modify exact [];
+
/** Converts a far pointer into equivalent linear address.
* Note that under protected mode linear != physical (for that, need VDS). */
static inline uint32_t linear_addr(const void __far * ptr)