Runtime sau ExitBootServices là gì?

Giải thích firmware còn lại gì sau khi OS gọi ExitBootServices và vì sao Runtime Services vẫn quan trọng.

2 phút đọc
Firmware Execution Flow cover

Sau ExitBootServices(), phần lớn Boot Services biến mất. Nhưng firmware chưa “chết hẳn”. Một số Runtime Services vẫn còn để OS dùng, ví dụ đọc/ghi UEFI variable, reset system, lấy thời gian, hoặc gọi capsule update tùy platform.

01 EBS

ExitBootServices

Boot Services kết thúc.

02 MAP

Runtime mapping

OS map vùng runtime theo memory map.

03 RT

Runtime Services

GetVariable, SetVariable, ResetSystem...

04 SMM

Platform-specific backend

Một số đường variable/SPI đi qua SMM.

Ví dụ thực tế

Một BIOS setting lưu được trong Setup nhưng OS ghi variable lại fail. Lúc đó cần tách rõ: lỗi nằm ở Runtime Services API, variable attribute, SMM variable backend, SPI write protection hay NVRAM full.

Mục Giá trị Ghi chú
GetVariable Runtime OS có thể đọc variable nếu attribute cho phép.
SetVariable Runtime Có thể đi qua SMM/SPI backend trên nhiều platform.
ResetSystem Runtime OS dùng để reset/shutdown theo UEFI.
Boot Services Không còn hợp lệ LocateProtocol/AllocatePool boot services không dùng sau EBS.

Checklist runtime issue

Bài liên quan

Thấy nội dung này hữu ích?

Lưu lại hoặc chia sẻ cho người cũng đang học firmware, BIOS/UEFI và embedded systems.

Nội dung liên quan

Một số bài viết, ghi chú hoặc project có liên quan đến nội dung bạn vừa đọc.

Biến note thành bài viết hoàn chỉnh

Notes là nơi ghi nhanh khái niệm.