Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\early_printk.c Create Date:2022-07-28 08:42:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:early_vga_write

Proto:static void early_vga_write(struct console *con, const char *str, unsigned n)

Type:void

Parameter:

TypeParameterName
struct console *con
const char *str
unsignedn
37  When (c = str++) != '\0' && n-- > 0 cycle
38  If current_ypos >= max_ypos Then
40  When k < max_ypos cycle
41  When i < max_xpos cycle
46  When i < max_xpos cycle writew(0x720, Simple VGA output + 2 * (max_xpos * j + i))
48  current_ypos = max_ypos - 1
51  If c == '\b' Then
52  If current_xpos > 0 Then current_xpos--
54  Else if c == '\r' Then
55  current_xpos = 0
56  Else If c == '\n' Then
59  current_xpos = 0
60  current_ypos++
61  Else if c != '\r' Then
62  writew(((0x7 << 8) | (unsignedshort)c), Simple VGA output + 2 * (max_xpos * current_ypos + current_xpos++))
65  If current_xpos >= max_xpos Then
66  current_xpos = 0
67  current_ypos++