aboutsummaryrefslogtreecommitdiffstats
path: root/dos/getsetsl.c
diff options
context:
space:
mode:
Diffstat (limited to 'dos/getsetsl.c')
-rw-r--r--dos/getsetsl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dos/getsetsl.c b/dos/getsetsl.c
index a48f3df2..5c1dbbda 100644
--- a/dos/getsetsl.c
+++ b/dos/getsetsl.c
@@ -87,7 +87,7 @@ void memcpy_to_sl(void *dst, const void *src, size_t len)
uint16_t seg;
uint16_t off;
- seg = ldlinux_seg + ((size_t)dst >> 4);
+ seg = ds() + ((size_t)dst >> 4);
off = (size_t)dst & 15;
asm volatile("pushw %%es ; "