console.c
来自「讲述linux的初始化过程」· C语言 代码 · 共 28 行
C
28 行
/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 1996 David S. Miller (dm@sgi.com) */#include <linux/init.h>#include <asm/sgialib.h>void prom_putchar(char c){ ULONG cnt; CHAR it = c; ArcWrite(1, &it, 1, &cnt);}char __init prom_getchar(void){ ULONG cnt; CHAR c; ArcRead(0, &c, 1, &cnt); return c;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?