From e308ee620cc12db3ddb8f572696f156569396a91 Mon Sep 17 00:00:00 2001 From: Kamil Wcislo Date: Sun, 18 Dec 2016 19:28:51 +0100 Subject: [PATCH 1/2] disable the initial output, do not clear the screen --- buildrom.py | 2 +- sgabios.S | 46 +++++++++++++++++++++++----------------------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/buildrom.py b/buildrom.py index 19b715a..85a794e 100755 --- a/buildrom.py +++ b/buildrom.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # Fill in checksum/size of an option rom, and pad it to proper length. # # Copyright (C) 2009 Kevin O'Connor diff --git a/sgabios.S b/sgabios.S index 4a204b1..29860cc 100644 --- a/sgabios.S +++ b/sgabios.S @@ -1970,7 +1970,7 @@ read_attr_char: set_video_mode: testb $0x80, %al /* preserve screen flag? */ - jnz set_video_mode_tail + jmp set_video_mode_tail call send_ansi_csi movb $0x32, %al /* 2 */ call send_byte @@ -2332,8 +2332,8 @@ sga_init: input_clear_loop: call get_byte jnz input_clear_loop - movw $term_init_string, %si - call send_asciz_out +# movw $term_init_string, %si +# call send_asciz_out push $BDA_SEG push $BDA_SEG popw %ds /* ds = 0x40 */ @@ -2418,37 +2418,37 @@ resize_end: popw %ds /* ds = cs */ call get_byte /* flush any remaining "wrong" input */ jnz resize_end - call send_crlf /* place cursor on start of last line */ - movw $mfg_string, %si - call send_asciz_out - call send_crlf - movw $prod_string, %si - call send_asciz_out - call send_crlf - movw $long_version, %si - call send_asciz_out - call send_crlf +# call send_crlf /* place cursor on start of last line */ +# movw $mfg_string, %si +# call send_asciz_out +# call send_crlf +# movw $prod_string, %si +# call send_asciz_out +# call send_crlf +# movw $long_version, %si +# call send_asciz_out +# call send_crlf /* if vga attached, skip terminal message and bda setup... */ CHECK_VGA /* vga attached? */ jz post_bda_init_tail /* if so, don't modify BDA */ /* show detected terminal size, or default if none detected */ movw $term_info, %si - call send_asciz_out +# call send_asciz_out pushw $BDA_SEG popw %ds /* ds = 0x40 */ movb %cs:term_cols, %al movb %al, BDA_COLS /* 40:4a = number of character cols */ movb $0, BDA_CURSOR_COL /* 40:51 = cursor0 col */ - call send_number +# call send_number movb $0x78, %al /* x */ - call send_byte +# call send_byte movb %cs:term_rows, %al movb %al, %ah decb %ah /* ah = rows-1 */ movb %ah, BDA_ROWS /* 40:84 = number of character rows - 1 */ movb %ah, BDA_CURSOR_ROW /* 40:50 = cursor0 row */ - call send_number - call send_crlf +# call send_number +# call send_crlf movb $3, BDA_MODE_NUM movb $0x29, BDA_MODE_SEL movw $VGA_IO_BASE, BDA_6845_ADDR @@ -2481,15 +2481,15 @@ post_bda_init_tail: pushw %cs popw %ds movw $ebda_info, %si - call send_asciz_out +# call send_asciz_out movw %cs:sgabios_ebda_logbuf_offset, %ax xchgb %ah, %al - call send_number +# call send_number movb $0x20, %al - call send_byte +# call send_byte movb %ah, %al - call send_number - call send_crlf +# call send_number +# call send_crlf post_bda_init_skipsgabioslog: popw %es popw %ds From 4a15faf08ad87e40f1facb7ef27261088306779c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Wcis=C5=82o?= Date: Fri, 24 Feb 2017 12:50:19 +0100 Subject: [PATCH 2/2] Create README.md --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..4d3b9b2 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# sgabios +serial graphics adapter bios - an option rom to provide legacy serial console for x86, plus my fixes + +## changelog + +### v1.0.0 +* disabled initial output from oprom