summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-07-10 20:22:25 -0400
committerIan Moffett <ian@osmora.org>2024-07-10 20:22:25 -0400
commitd243e9b36fe2bf8e9551cc6677aaa2747604fcfa (patch)
treeb33df4ba7f0fade5523d749f5bc39a25cded1fe5 /sys/arch
parent29234bb23abe2ded7a9e0e36be78bfd98f0e6fff (diff)
kernel/amd64: mp: Add missing "static"
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/amd64/amd64/mp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/mp.c b/sys/arch/amd64/amd64/mp.c
index 9512aa6..804bca6 100644
--- a/sys/arch/amd64/amd64/mp.c
+++ b/sys/arch/amd64/amd64/mp.c
@@ -47,7 +47,7 @@ static volatile struct limine_smp_request g_smp_req = {
static void
ap_trampoline(struct limine_smp_info *si)
{
- struct spinlock lock = {0};
+ static struct spinlock lock = {0};
struct cpu_info *ci;
spinlock_acquire(&lock);