Page MenuHomeFreeBSD

loader.efi(8): the amd64 loader doesn't do protected mode
AcceptedPublic

Authored by vexeduxr on Sun, Jun 14, 3:37 AM.

Details

Summary

The amd64 UEFI loader executes in long mode, not protected mode.

MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 73866
Build 70749: arc lint + arc unit

Event Timeline

why not change the word 'protected' to 'long'?

In D57568#1319451, @kib wrote:

why not change the word 'protected' to 'long'?

I'm not sure how the CPU mode is relevant to the rest of the text. Shouldn't the CPU be susceptible to faults regardless of the mode?

In D57568#1319451, @kib wrote:

why not change the word 'protected' to 'long'?

I'm not sure how the CPU mode is relevant to the rest of the text. Shouldn't the CPU be susceptible to faults regardless of the mode?

It is quite involved to make CPU fault in real mode. In VM86 mode it is somewhat easier but still not straight. The mention of the mode is to compare it with the old pre-EFI BIOS where loader practically cannot cause CPU faults.

Keep the sentence intact but change x86 protected mode to 64-bit long mode.

In D57568#1319455, @kib wrote:
In D57568#1319451, @kib wrote:

why not change the word 'protected' to 'long'?

I'm not sure how the CPU mode is relevant to the rest of the text. Shouldn't the CPU be susceptible to faults regardless of the mode?

It is quite involved to make CPU fault in real mode. In VM86 mode it is somewhat easier but still not straight. The mention of the mode is to compare it with the old pre-EFI BIOS where loader practically cannot cause CPU faults.

TIL :)

This revision is now accepted and ready to land.Sun, Jun 14, 10:36 AM