diff options
author | Javier <dev.git@javispedro.com> | 2022-04-27 01:21:20 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2022-04-27 01:21:20 +0200 |
commit | 6faf797ee40f494e385d1d99ef2da55740326ce0 (patch) | |
tree | 21016407455221fee3ba775bb118f9d1cfd85bc8 /utils.h | |
parent | 13cc0921d8f9a0d488a27e2c86c1d9d013a964fe (diff) | |
download | vbados-6faf797ee40f494e385d1d99ef2da55740326ce0.tar.gz vbados-6faf797ee40f494e385d1d99ef2da55740326ce0.zip |
refactor: use INTPACKW (always 16-bit) instead of INTPACKX
Diffstat (limited to 'utils.h')
-rw-r--r-- | utils.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |