summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-19 05:58:12 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-19 05:58:12 +0100
commitd2f8a9292af8bb06d30a306b3b94a6d7bbfb4a39 (patch)
tree4dda59c2f3ae6b9ed557f82afdbc02df7e2f307f
parent74ec6b99f60c48ece7cd03a9ef77178145774c24 (diff)
BootEFI.cc: Document NVRAM attributes.
HalKernelMain.cc: Use the correct term for the scheduler init function.
-rw-r--r--dev/Boot/src/HEL/AMD64/BootEFI.cc2
-rw-r--r--dev/Kernel/HALKit/AMD64/HalKernelMain.cc4
2 files changed, 4 insertions, 2 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);
}
diff --git a/dev/Kernel/HALKit/AMD64/HalKernelMain.cc b/dev/Kernel/HALKit/AMD64/HalKernelMain.cc
index ef5c93e3..3c62bd69 100644
--- a/dev/Kernel/HALKit/AMD64/HalKernelMain.cc
+++ b/dev/Kernel/HALKit/AMD64/HalKernelMain.cc
@@ -18,7 +18,7 @@ EXTERN_C NeOS::VoidPtr kInterruptVectorTable[];
EXTERN_C NeOS::VoidPtr mp_user_switch_proc;
EXTERN_C NeOS::Char mp_user_switch_proc_stack_begin[];
-STATIC NeOS::Void hal_init_cxx_ctors()
+STATIC NeOS::Void hal_init_scheduler_team()
{
for (NeOS::SizeT i = 0U; i < NeOS::UserProcessScheduler::The().CurrentTeam().AsArray().Count(); ++i)
{
@@ -52,7 +52,7 @@ EXTERN_C void hal_init_platform(
return;
}
- hal_init_cxx_ctors();
+ hal_init_scheduler_team();
/************************************** */
/* INITIALIZE BIT MAP. */