Browse Source

update console.c for comments

main
yuchen 9 years ago
parent
commit
a5f0ac0511
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      labcodes/lab1/kern/driver/console.c

+ 2
- 1
labcodes/lab1/kern/driver/console.c View File

@ -52,7 +52,6 @@ static uint16_t *crt_buf;
static uint16_t crt_pos;
static uint16_t addr_6845;
/* TEXT-mode CGA/VGA display output */
// CGA Color Graphics Adapter
// CGA显存按照下面的方式映射
// -- 0xB0000 - 0xB7777
@ -61,6 +60,8 @@ static uint16_t addr_6845;
// CPU通过IO地址0x3B4-0x3B56845IO地址0x3D4-0x3D5
// -- 0x3D50x3B5
// -- 0x3D40x3B4,
/* TEXT-mode CGA/VGA display output */
static void
cga_init(void) {
volatile uint16_t *cp = (uint16_t *)CGA_BUF; //CGA_BUF: 0xB8000 ()

Loading…
Cancel
Save