Serial init error handling removed: no more VGA text memory to print to

This commit is contained in:
Jarkko Toivanen 2023-07-25 01:02:13 +03:00
parent e16da3adc8
commit d542ed42d6
Signed by: jt
GPG key ID: 9151B109B73ECAD5

View file

@ -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