首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

mac的内核_Mac编程

综述 为什么想起写这个类似于读书笔记的翻译呢,主要是MAC内核开发的资料基本都是en文的,中文的几乎没有(反正我没找到,你要有麻烦给一个,不甚感谢),而读en的资料对初学者来说又比较费时间,所以时间够的话我会把觉得重要的东西记下来,以飨读者。 一、Why You Should Avoid Programming in the Kernel 一个内核bug可能导致整个系统Crash,所以应尽可能避免内核编程,而选择在用户空间编码。 二、The Early Boot Process 和普通PC的BIOS类似,苹果机使用Boot ROM来引导和加载系统,大体流程如下: Boot ROM When the power to a Macintosh computer is turned on, the BootROM firmware is activated. BootROM (which is part of the computer’s hardware) has two primary responsibilities: it initializes system hardware and it selects an operating system to run. BootROM has two components to help it carry out these functions: • POST (Power-On Self Test) initializes some hardware interfaces and verifies that sufficient memory is available and in a good state. • EFI does basic hardware initialization and selects which operating system to use. If multiple installations of Mac OS X are available, BootROM chooses the one that was last selected by the Startup Disk System Preference. The user can override this choice by holding down the Option key while the computer boots, which causes EFI to display a screen for choosing the boot volume.

02
领券