如何使用由现代操作系统的BIOS? [英] How is the BIOS used by a modern OS?

查看:110
本文介绍了如何使用由现代操作系统的BIOS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是BIOS的一个现代操作系统的功能?难道引导后仍然使用?而有一些BIOS的API?

What's the function of the BIOS in a modern OS? Is it still used after booting? And is there some kind of BIOS API?

推荐答案

在BIOS仍然是刚刚起步的CPU上运行,并负责获取主板硬件打开,设置基本的芯片组模式和寄存器的第一件事,初始化一些硬件和运行code加载内核。

The BIOS is still the first thing that runs on the just-started CPU and responsible for getting the motherboard hardware turned on, setting basic chipset modes and registers, initializing some hardware, and running the code that loads the kernel.

一旦内核加载通常不使用的BIOS,并且取决于相对于该一个现代内核在操作32位或64位保护模式的环境中的16位的执行环境。

The BIOS is usually not used once the kernel is loaded, and depends on a 16-bit execution environment as opposed to the 32- or 64-bit protected mode environment that a modern kernel operates in.

引导加载程序通常确实需要在BIOS IO调用获得内核到内存中。 BIOS将被替换,即使在这个角色由新启动时软件,如 Coreboot ,以提供更快的启动时间。 EFI有一天会取代传统的BIOS,并希望引导装载程序,直接将控制传递给内核从存储器加载后。

The boot loader normally does require the BIOS IO calls to get the kernel into memory. The BIOS is being replaced even in this role by newer boot-time software such as Coreboot to provide faster boot times. EFI will one day replace the traditional BIOS, and hopefully the boot loader, passing control directly to the kernel after loading it from storage.

该发现的硬件配置,内存范围设置和ACPI元数据表可能是加载内核后使用的操作系统是唯一基于BIOS的数据。任何可运行的ACPI code是连接$ C $光盘作为ACPI机器语言,是由操作系统PTED间$ P $。

The discovered hardware configuration, memory range settings, and ACPI metadata tables are probably the only BIOS-based data used by the OS after the kernel is loaded. Any runnable ACPI code is encoded as ACPI Machine Language and is interpreted by the OS.

任何优秀的传统图书在MS-DOS汇编语言编程将包括BIOS编程接口的信息。请查看汇编语言编程的艺术

Any good traditional book on MS-DOS assembly programming will include information on the BIOS programming interface. Check out The Art of ASSEMBLY LANGUAGE PROGRAMMING

这篇关于如何使用由现代操作系统的BIOS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆