Serial init error handling removed: no more VGA text memory to print to
This commit is contained in:
parent
e16da3adc8
commit
d542ed42d6
1 changed files with 2 additions and 22 deletions
|
@ -47,32 +47,12 @@ serialinit:
|
||||||
out dx, al
|
out dx, al
|
||||||
in al, dx
|
in al, dx
|
||||||
cmp al, 0xae
|
cmp al, 0xae
|
||||||
je .noerror
|
jne .end
|
||||||
.error:
|
|
||||||
push esi
|
|
||||||
push edi
|
|
||||||
push ax
|
|
||||||
mov esi, .errormsg
|
|
||||||
mov edi, 0xb8000
|
|
||||||
mov ah, 64
|
|
||||||
cld
|
|
||||||
.errorloop:
|
|
||||||
lodsb
|
|
||||||
or al, al
|
|
||||||
jz .errordone
|
|
||||||
stosw
|
|
||||||
jmp .errorloop
|
|
||||||
.errordone:
|
|
||||||
pop ax
|
|
||||||
pop edi
|
|
||||||
pop esi
|
|
||||||
jmp .end
|
|
||||||
.noerror:
|
|
||||||
mov [serialinitialized], 1
|
|
||||||
;; Set serial to normal operation
|
;; Set serial to normal operation
|
||||||
mov dx, SERIAL_PORT+4
|
mov dx, SERIAL_PORT+4
|
||||||
mov al, 0x0f
|
mov al, 0x0f
|
||||||
out dx, al
|
out dx, al
|
||||||
|
mov [serialinitialized], 1
|
||||||
.end:
|
.end:
|
||||||
pop ax
|
pop ax
|
||||||
ret
|
ret
|
||||||
|
|
Loading…
Reference in a new issue