函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\early_printk.c Create Date:2022-07-27 09:41:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:early_vga_write

函数原型:static void early_vga_write(struct console *con, const char *str, unsigned n)

返回类型:void

参数:

类型参数名称
struct console *con
const char *str
unsignedn
37 c等于str自加不等于'\0'且n自减大于0循环
38  如果current_ypos大于等于max_ypos
40 k小于max_ypos循环
41 i小于max_xpos循环
46 i小于max_xpos循环writew(0x720, Simple VGA output + 2 * (max_xpos * j + i))
48  current_ypos等于max_ypos减1
51  如果c恒等于'\b'则
52  如果current_xpos大于0则current_xpos自减
54  否则如果c恒等于'\r'则
55  current_xpos等于0
56  否则如果c恒等于'\n'则
59  current_xpos等于0
60  current_ypos自加
61  否则如果c不等于'\r'则
62  writew(((0x7 << 8) | (unsignedshort)c), Simple VGA output + 2 * (max_xpos * current_ypos + current_xpos++))
65  如果current_xpos大于等于max_xpos
66  current_xpos等于0
67  current_ypos自加