浏览代码

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 ()

正在加载...
取消
保存