mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-25 11:48:06 +00:00
Kernel: List all CPUs in /proc/cpuinfo
This commit is contained in:
parent
fb41d89384
commit
d98edb3171
Notes:
sideshowbarker
2024-07-19 05:18:09 +09:00
Author: https://github.com/tomuta
Commit: d98edb3171
Pull-request: https://github.com/SerenityOS/serenity/pull/2513
12 changed files with 229 additions and 64 deletions
|
@ -26,8 +26,6 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <Kernel/Arch/i386/CPU.h>
|
||||
|
||||
#define __STRINGIFY_HELPER(x) #x
|
||||
#define __STRINGIFY(x) __STRINGIFY_HELPER(x)
|
||||
|
||||
|
@ -48,6 +46,7 @@
|
|||
if (!(x)) \
|
||||
CRASH(); \
|
||||
} while (0)
|
||||
|
||||
#define ASSERT_INTERRUPTS_DISABLED() ASSERT(!(cpu_flags() & 0x200))
|
||||
#define ASSERT_INTERRUPTS_ENABLED() ASSERT(cpu_flags() & 0x200)
|
||||
#define TODO ASSERT_NOT_REACHED
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue