Преглед изворни кода

update console.c for comments

main
yuchen пре 9 година
родитељ
комит
a5f0ac0511
1 измењених фајлова са 2 додато и 1 уклоњено
  1. +2
    -1
      labcodes/lab1/kern/driver/console.c

+ 2
- 1
labcodes/lab1/kern/driver/console.c Прегледај датотеку

@ -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…
Откажи
Сачувај