aboutsummaryrefslogtreecommitdiffstats
path: root/libinstaller/syslxint.h
diff options
context:
space:
mode:
Diffstat (limited to 'libinstaller/syslxint.h')
-rw-r--r--libinstaller/syslxint.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/libinstaller/syslxint.h b/libinstaller/syslxint.h
index f16c2e5c..b8e872a7 100644
--- a/libinstaller/syslxint.h
+++ b/libinstaller/syslxint.h
@@ -111,8 +111,6 @@ static inline void set_64(uint64_t *p, uint64_t v)
*/
#ifdef __MSDOS__
-extern uint16_t ldlinux_seg; /* Defined in dos/syslinux.c */
-
static inline __attribute__ ((const))
uint16_t ds(void)
{
@@ -125,7 +123,7 @@ static inline void *set_fs(const void *p)
{
uint16_t seg;
- seg = ldlinux_seg + ((size_t) p >> 4);
+ seg = ds() + ((size_t) p >> 4);
asm volatile ("movw %0,%%fs"::"rm" (seg));
return (void *)((size_t) p & 0xf);
}