小编Jen*_*ger的帖子

GNU GRUB 为 Multiboot2 提供“错误:不支持的标签:0xc”

我尝试将以下代码用于 Multiboot2 兼容内核的标头,但是当我multiboot2在 grub 中尝试该命令时,它给出了以下错误消息:

错误:不支持的标签:0xc

我的 Multiboot2 标头定义为:

section .multiboot align=4096
mbhead: dd 0xe85250d6
        dd 0
        dd 76
        dd 0 - 76 - 0xe85250d6                  ; TODO the linker and assembler get angry if we calculate this with symbols, we need to do this by hand
        dw 1                                    ; multiboot information request
        dw 0
        dd 20
        dd 1
        dd 2
        dd 6
        dw 4                                    ; console flags
        dw 0
        dd 12
        dd 0x3
        dw 5                                    ; framebuffer settings …
Run Code Online (Sandbox Code Playgroud)

x86 assembly osdev multiboot grub2

2
推荐指数
1
解决办法
433
查看次数

标签 统计

assembly ×1

grub2 ×1

multiboot ×1

osdev ×1

x86 ×1