feat: add kernel ACPI support for querying battery percentage, add battery indicator to desktop, move log state to 0:/state directory
This commit is contained in:
1 parent
0a18b2cf2d
commit
e641500b40
34 files changed
+2461
-100
No files matched your search
@@ -18,7 +18,12 @@ namespace Sched {
|
||||
// every slot uniformly -- the primary/sibling distinction matters only
|
||||
// for resource ownership on exit.
|
||||
static constexpr int MaxProcesses = 256;
|
||||
static constexpr uint64_t StackPages = 4; // 16 KiB kernel stack per thread
|
||||
// 64 KiB kernel stack per thread. The AML interpreter is the driver of
|
||||
// this size: it runs on the calling thread's stack when a syscall asks for
|
||||
// battery status, and firmware methods nest deeply through frames that
|
||||
// carry 256-byte path buffers and 272-byte AML objects. See
|
||||
// AML::StackBudget, which must stay comfortably under this.
|
||||
static constexpr uint64_t StackPages = 16;
|
||||
static constexpr uint64_t StackSize = StackPages * 0x1000;
|
||||
static constexpr uint64_t UserStackPages = 8; // 32 KiB user stack (main thread, eagerly mapped)
|
||||
static constexpr uint64_t UserStackSize = UserStackPages * 0x1000;
|
||||
|
||||
Reference in new issue
Block a user