소스 검색

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

불러오는 중...
취소
저장