上一节虽然我们的引导扇区被BIOS正确识别并引导了,但是在虚拟机中我们看不到任何现象,想想还是很不开心的。那么这一节我们就在屏幕上显示一个字符吧!显示什么字符呢?嗯,就显示‘B’吧(barras的第一个字母)。
方法一:通过BIOS中断
在《启动篇》中我们已经直到了BIOS有POST(加电自检)的功能,那么这一节我们要学习它的新功能:通过BIOS中断给内核提供服务。在介绍BIOS中断之前,我们先看一下它的官方说明
Operating systems and other software communicates with the BIOS software, in order to control the installed hardware, via software interrupts.A software interrupt is simply an interrupt that is triggered by a software command; therefore, software interrupt call does not need to know the address of the ISR, only its interrupt number.
操作系统和其他的一些软件为了控制已经安装的硬件,需要通过BIOS软中断和BIOS软件进行交流。软中断通过命令触发。因此,软中断调用不需要直到中断服务程序的地址,仅仅只需要知道中断号即可。
BIOS interrupt calls can be thought of as a mechanism for passing messages between BIOS and the operating system or other BIOS client software. The messages request data o
方法一:通过BIOS中断
在《启动篇》中我们已经直到了BIOS有POST(加电自检)的功能,那么这一节我们要学习它的新功能:通过BIOS中断给内核提供服务。在介绍BIOS中断之前,我们先看一下它的官方说明
Operating systems and other software communicates with the BIOS software, in order to control the installed hardware, via software interrupts.A software interrupt is simply an interrupt that is triggered by a software command; therefore, software interrupt call does not need to know the address of the ISR, only its interrupt number.
操作系统和其他的一些软件为了控制已经安装的硬件,需要通过BIOS软中断和BIOS软件进行交流。软中断通过命令触发。因此,软中断调用不需要直到中断服务程序的地址,仅仅只需要知道中断号即可。
BIOS interrupt calls can be thought of as a mechanism for passing messages between BIOS and the operating system or other BIOS client software. The messages request data o