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
|
||||
in al, dx
|
||||
cmp al, 0xae
|
||||
je .noerror
|
||||
.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
|
||||
jne .end
|
||||
;; Set serial to normal operation
|
||||
mov dx, SERIAL_PORT+4
|
||||
mov al, 0x0f
|
||||
out dx, al
|
||||
mov [serialinitialized], 1
|
||||
.end:
|
||||
pop ax
|
||||
ret
|
||||
|
|
Loading…
Reference in a new issue