You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

自定义Bootloader在VirtualBox中触发Guru Meditation错误排查

业余操作系统Bootloader调试问题
  • 使用工具:FASM、genisoimage(WSL环境)、VirtualBox
  • 当前问题:VirtualBox弹出“Guru Meditation”错误,仅显示字符'M';添加字符显示延迟后触发该错误(此前无错误)
  • 预期效果:打印'Maks bootloader',加载并跳转至内核,内核打印'Hello, world'后进入无限循环

Bootloader源码

org 0x7c00
use16

start:
    mov ah, 0x0e
    mov al, 'M'
    int 0x10
    call delay
    mov al, 'a'
    int 0x10
    call delay
    mov al, 'k'
    int 0x10
    call delay
    mov al, 's'
    int 0x10
    call delay
    mov al, ' '
    int 0x10
    call delay
    mov al, 'b'
    int 0x10
    call delay
    mov al, 'o'
    int 0x10
    call delay
    mov al, 'o'
    int 0x10
    call delay
    mov al, 't'
    int 0x10
    call delay
    mov al, 'l'
    int 0x10
    call delay
    mov al, 'o'
    int 0x10
    call delay
    mov al, 'a'
    int 0x10
    call delay
    mov al, 'd'
    int 0x10
    call delay
    mov al, 'e'
    int 0x10
    call delay
    mov al, 'r'
    int 0x10
    call delay

    mov ah, 2
    mov al, 1
    mov ch, 1
    mov cl, 2
    mov dh, 0
    mov dl, 0x80
    mov bx, 0x0600
    mov es, bx
    int 0x13
    
    jmp 0x0000:0x0600

times 510-($-$$) db 0
dw 0xAA55

delay:
    mov cx, 0xFFFF
    ret

内容的提问来源于stack exchange,提问作者Maksym Semenii

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.15 04:40:13