diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-03-19 05:58:12 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-03-19 05:58:12 +0100 |
| commit | d2f8a9292af8bb06d30a306b3b94a6d7bbfb4a39 (patch) | |
| tree | 4dda59c2f3ae6b9ed557f82afdbc02df7e2f307f /dev/Boot | |
| parent | 74ec6b99f60c48ece7cd03a9ef77178145774c24 (diff) | |
BootEFI.cc: Document NVRAM attributes.
HalKernelMain.cc: Use the correct term for the scheduler init function.
Diffstat (limited to 'dev/Boot')
| -rw-r--r-- | dev/Boot/src/HEL/AMD64/BootEFI.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dev/Boot/src/HEL/AMD64/BootEFI.cc b/dev/Boot/src/HEL/AMD64/BootEFI.cc index 1f518418..56315475 100644 --- a/dev/Boot/src/HEL/AMD64/BootEFI.cc +++ b/dev/Boot/src/HEL/AMD64/BootEFI.cc @@ -273,6 +273,8 @@ EFI_EXTERN_C EFI_API Int32 Main(EfiHandlePtr image_handle, if (ST->RuntimeServices->GetVariable(L"/props/boot_path", kEfiGlobalNamespaceVarGUID, nullptr, &kernel_path_sz, kernel_path) != kEfiOk) { + /// access attributes (in order) + /// EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS UInt32 attr = 0x00000001 | 0x00000002 | 0x00000004; ST->RuntimeServices->SetVariable(L"/props/boot_path", kEfiGlobalNamespaceVarGUID, &attr, &kernel_path_sz, kernel_path); } |
