如何从 ISO 将内核加载到内存中
在编译时,我将程序集引导程序与内核链接到一个 *.img 文件中,然后使用 MagicISO 将其转换为 *.iso 映像。然后我从此 *.iso 映像启动。 但问题是我想将文件的第二个扇区(内核)读入内存中的 0x1000 处。但我只知道如何使用软盘映像执行此操作,所以有人可以告诉我如何使用 *.iso 执行此操作吗? 如果您需要任何代码或任何东西,请告诉我,我会提供:)。
At compile-time I link my Assembly bootstrap together with my kernel, into an *.img file, which I then convert into an *.iso image using MagicISO. I then boot from this *.iso image.
But the problem is that I want to read the second sector of the file (the kernel) into memory at 0x1000. But I only know how to do so, with a floppy disk image, so could someone please tell me how to do so, with an *.iso?
If you need any code or anything just tell me, and I'll provide it: ).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您的 img 文件是软盘映像,则光盘将加载到软盘模拟环境中。我的猜想是,您应该能够像访问软盘一样访问数据。
If your img file is a floppy image, the disc is loaded in a floppy-emulation environment. My conjecture is that you should be able to access the data just as you would on a floppy.