Skip to content

Commit

Permalink
Merge pull request #1 from mek-x/rel_v1.0
Browse files Browse the repository at this point in the history
Release 1.0.0
  • Loading branch information
mek-x authored Feb 24, 2017
2 parents 0c2cce5 + 0408d39 commit 2c02fa3
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 24 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion buildrom.py
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
Expand Down
46 changes: 23 additions & 23 deletions sgabios.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 */
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2c02fa3

Please sign in to comment.