summaryrefslogtreecommitdiff
path: root/memdisk/conio.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-06-07 20:59:52 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-06-07 20:59:52 -0700
commit69bb4b204e8d29c89597961e94807d1acba2cd4b (patch)
tree143b21d9e0956d443165ac97ab8ba410f1b4cd97 /memdisk/conio.c
parent1e4de8c54d7e007cf6002a87658f3d03c796bfc6 (diff)
downloadsyslinux-69bb4b204e8d29c89597961e94807d1acba2cd4b.tar.gz
memdisk: additional cleanups
Additional stylistic cleanups. Rename "syscall" to "intcall" (we can't call it __intcall without clashing with com32.h); use macros instead of copying variables to different places with only the type being different. Also, only change the rm/pm jump instructions when actually relocating the code. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'memdisk/conio.c')
-rw-r--r--memdisk/conio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/memdisk/conio.c b/memdisk/conio.c
index 0e75bd72..d1f0862c 100644
--- a/memdisk/conio.c
+++ b/memdisk/conio.c
@@ -30,7 +30,7 @@ int putchar(int ch)
}
regs.eax.w[0] = 0x0e00 | (ch & 0xff);
- syscall(0x10, &regs, NULL);
+ intcall(0x10, &regs, NULL);
return ch;
}