summaryrefslogtreecommitdiffstats
path: root/lib16/conio.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib16/conio.c')
-rw-r--r--lib16/conio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib16/conio.c b/lib16/conio.c
index 96b03ca..a02441a 100644
--- a/lib16/conio.c
+++ b/lib16/conio.c
@@ -1,4 +1,5 @@
-#define SEG_BASE (*(const unsigned int *)0xfffc)
+#include <string.h>
+#include <sys16.h>
void puts(const char *s)
{
@@ -9,6 +10,6 @@ void puts(const char *s)
: "=a" (rv)
: "a" (4), /* __NR_write */
"b" (1),
- "c" ((unsigned int)s + SEG_BASE),
+ "c" (_KPTR(s)),
"d" (strlen(s)));
}