小编Ren*_*ata的帖子

如何修复“qemu:致命:尝试在 0x000a0000 处的 RAM 或 ROM 之外执行代码”

我正在开发自己的引导加载程序 + 内核。我创建了一个项目放在github上:https : //github.com/rprata/ubootlua(分支tmp-libc-implementation)

我尝试使用 QEMU 运行我的 boot.bin:

qemu-system-i386 -fda boot.bin -nographic -serial stdio -monitor none

但是会发生崩溃:

> qemu-system-i386 -fda ./deploy/boot.bin -nographic -serial stdio -monitor none
> WARNING: Image format was not specified for './deploy/boot.bin' and probing guessed raw.
>         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
>         Specify the 'raw' format explicitly to remove the restrictions.
> qemu: fatal: Trying to execute code outside RAM or …
Run Code Online (Sandbox Code Playgroud)

x86 assembly qemu osdev bootloader

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

标签 统计

assembly ×1

bootloader ×1

osdev ×1

qemu ×1

x86 ×1