summaryrefslogtreecommitdiff
path: root/src/pc80/serial.inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/pc80/serial.inc')
-rw-r--r--src/pc80/serial.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pc80/serial.inc b/src/pc80/serial.inc
index b0f12699e1..7b80697c85 100644
--- a/src/pc80/serial.inc
+++ b/src/pc80/serial.inc
@@ -67,8 +67,7 @@ div:
mov %ah, %al ; \
outb %al, %dx
-
-serial0:
+serial_init:
/* Set 115.2Kbps,8n1 */
/* Set 8bit, 1 stop bit, no parity, DLAB */
mov $TTYS0_LCR, %dx
@@ -102,5 +101,7 @@ serial0:
mov $TTYS0_LCR, %dx
mov $(TTYS0_LCS & 0x7f), %al
out %al, %dx
+ RETSP
-
+serial0:
+ CALLSP(serial_init)