summaryrefslogtreecommitdiff
path: root/lume-legacy/include/kernel/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'lume-legacy/include/kernel/cpu.h')
-rw-r--r--lume-legacy/include/kernel/cpu.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/lume-legacy/include/kernel/cpu.h b/lume-legacy/include/kernel/cpu.h
new file mode 100644
index 0000000..62bdc17
--- /dev/null
+++ b/lume-legacy/include/kernel/cpu.h
@@ -0,0 +1,24 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Copyright (C) 2026 Richard QIn
+ */
+
+#pragma once
+#include "common/types.h"
+#include "kernel/proc_def.h"
+
+struct RunQueue;
+
+struct cpu
+{
+ struct Proc *proc;
+ struct Context context;
+ int noff;
+ int intena;
+
+ struct RunQueue *runqueue;
+};
+
+
+extern struct cpu cpus[];
+struct cpu *mycpu(); \ No newline at end of file