From 8ea82f927bcf367fc9d3438e93fee607359c2505 Mon Sep 17 00:00:00 2001 From: Yi-Ting Shih Date: Tue, 15 Apr 2025 19:51:00 +0800 Subject: [PATCH] Chore: trim spaces --- kernel/lib/exception.c | 2 +- kernel/lib/mman.c | 2 +- kernel/lib/shell.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/lib/exception.c b/kernel/lib/exception.c index 7f696b4..91c95ce 100644 --- a/kernel/lib/exception.c +++ b/kernel/lib/exception.c @@ -35,6 +35,6 @@ void synchronous_handler() uint64_t esr_el1 = 0x0; R_SYSREG(esr_el1, esr_el1); - + LOG(x0); LOG(spsr_el1); LOG(elr_el1); DEBUG_EXCEP(esr_el1); } diff --git a/kernel/lib/mman.c b/kernel/lib/mman.c index 791b309..9aee0a8 100644 --- a/kernel/lib/mman.c +++ b/kernel/lib/mman.c @@ -154,7 +154,7 @@ uint64_t _allocate_page(size_t req, int idx, uint64_t l, uint64_t r) ret = _allocate_page(req, LIDX, l, m); if (ret == MMAN_NO_PAGE && RCH->size >= req) ret = _allocate_page(req, RIDX, m, r); - + _pull(idx, sz); return ret; } diff --git a/kernel/lib/shell.c b/kernel/lib/shell.c index c25954a..8d29ef4 100644 --- a/kernel/lib/shell.c +++ b/kernel/lib/shell.c @@ -233,7 +233,7 @@ int shell(file_node_t *initrd_root) char *p1 = VEC_AT(char, args, 1); _memalloc((size_t)atoi32(p1)); } else if (!strcmp(cmd, "free") && args->size >= 2) { - char *p1 = VEC_AT(char, args, 1); + char *p1 = VEC_AT(char, args, 1); _free((uint64_t)atoh32(p1)); } else if (!strcmp(cmd, "ls")) { _ls(initrd_root);