From ea5ebe0809fb31b9f125ac0689f706cc5f3f078f Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 30 Apr 2023 17:06:02 +0300 Subject: rename to kmi --- include/arch/arch.h | 8 ++++---- include/arch/cpu.h | 10 +++++----- include/arch/irq.h | 6 +++--- include/arch/lock.h | 6 +++--- include/arch/pmem.h | 10 +++++----- include/arch/proc.h | 8 ++++---- include/arch/tcb.h | 6 +++--- include/arch/timer.h | 8 ++++---- include/arch/types.h | 8 ++++---- include/arch/vmem.h | 8 ++++---- 10 files changed, 39 insertions(+), 39 deletions(-) (limited to 'include/arch') diff --git a/include/arch/arch.h b/include/arch/arch.h index ac3e25a..406a285 100644 --- a/include/arch/arch.h +++ b/include/arch/arch.h @@ -1,8 +1,8 @@ /* SPDX-License-Identifier: GPL-3.0-or-later */ /* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ -#ifndef APOS_ARCH_H -#define APOS_ARCH_H +#ifndef KMI_ARCH_H +#define KMI_ARCH_H /** * @file arch.h @@ -10,7 +10,7 @@ * arch/whatever/kernel/main.c */ -#include +#include #if defined(riscv64) #include "../../arch/riscv64/include/arch.h" @@ -29,4 +29,4 @@ */ stat_t setup_arch(void *fdt); -#endif /* APOS_ARCH_H */ +#endif /* KMI_ARCH_H */ diff --git a/include/arch/cpu.h b/include/arch/cpu.h index c5a83d5..d4bf435 100644 --- a/include/arch/cpu.h +++ b/include/arch/cpu.h @@ -1,8 +1,8 @@ /* SPDX-License-Identifier: GPL-3.0-or-later */ /* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ -#ifndef APOS_CPU_H -#define APOS_CPU_H +#ifndef KMI_CPU_H +#define KMI_CPU_H /** * @file cpu.h @@ -10,8 +10,8 @@ * arch/whatever/kernel/cpu.c */ -#include -#include +#include +#include #if defined(riscv64) #include "../../arch/riscv64/include/cpu.h" @@ -43,4 +43,4 @@ void cpu_assign(struct tcb *t); */ void cpu_send_ipi(id_t cpu_id); -#endif /* APOS_CPU_H */ +#endif /* KMI_CPU_H */ diff --git a/include/arch/irq.h b/include/arch/irq.h index 99ebe35..b2dcd0a 100644 --- a/include/arch/irq.h +++ b/include/arch/irq.h @@ -1,8 +1,8 @@ /* SPDX-License-Identifier: GPL-3.0-or-later */ /* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ -#ifndef APOS_IRQ_H -#define APOS_IRQ_H +#ifndef KMI_IRQ_H +#define KMI_IRQ_H /** * @file irq.h @@ -31,4 +31,4 @@ void enable_irq(); /** Disable IRQs. */ void disable_irq(); -#endif /* APOS_IRQ_H */ +#endif /* KMI_IRQ_H */ diff --git a/include/arch/lock.h b/include/arch/lock.h index a22ed21..13d010a 100644 --- a/include/arch/lock.h +++ b/include/arch/lock.h @@ -1,8 +1,8 @@ /* SPDX-License-Identifier: GPL-3.0-or-later */ /* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ -#ifndef APOS_ARCH_LOCK_H -#define APOS_ARCH_LOCK_H +#ifndef KMI_ARCH_LOCK_H +#define KMI_ARCH_LOCK_H /** * @file lock.h @@ -15,4 +15,4 @@ #include "../../arch/riscv32/include/lock.h" #endif -#endif /* APOS_ARCH_LOCK_H */ +#endif /* KMI_ARCH_LOCK_H */ diff --git a/include/arch/pmem.h b/include/arch/pmem.h index 273ea4e..276d604 100644 --- a/include/arch/pmem.h +++ b/include/arch/pmem.h @@ -1,8 +1,8 @@ /* SPDX-License-Identifier: GPL-3.0-or-later */ /* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ -#ifndef APOS_ARCH_PMEM_H -#define APOS_ARCH_PMEM_H +#ifndef KMI_ARCH_PMEM_H +#define KMI_ARCH_PMEM_H /** * @file pmem.h @@ -10,8 +10,8 @@ * arch/whatever/kernel/pmem.c */ -#include /* NUM_ORDERS */ -#include +#include /* NUM_ORDERS */ +#include #if defined(riscv64) #include "../../arch/riscv64/include/pmem.h" @@ -63,4 +63,4 @@ stat_t stat_pmem_conf(void *fdt, size_t *max_order, size_t *base_bits, size_t bits[NUM_ORDERS]); -#endif /* APOS_ARCH_PMEM_H */ +#endif /* KMI_ARCH_PMEM_H */ diff --git a/include/arch/proc.h b/include/arch/proc.h index 84954c0..4bd0e20 100644 --- a/include/arch/proc.h +++ b/include/arch/proc.h @@ -1,8 +1,8 @@ /* SPDX-License-Identifier: GPL-3.0-or-later */ /* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ -#ifndef APOS_ARCH_PROC_H -#define APOS_ARCH_PROC_H +#ifndef KMI_ARCH_PROC_H +#define KMI_ARCH_PROC_H /** * @file proc.h @@ -15,7 +15,7 @@ #include "../../arch/riscv32/include/proc.h" #endif -#include +#include /** * Attach argument data to thread. @@ -113,4 +113,4 @@ void adjust_syscall(struct tcb *t); */ __noreturn void run_init(struct tcb *t, void *fdt); -#endif /* APOS_ARCH_PROC_H */ +#endif /* KMI_ARCH_PROC_H */ diff --git a/include/arch/tcb.h b/include/arch/tcb.h index 4054e2a..c295d89 100644 --- a/include/arch/tcb.h +++ b/include/arch/tcb.h @@ -1,8 +1,8 @@ /* SPDX-License-Identifier: GPL-3.0-or-later */ /* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ -#ifndef APOS_ARCH_TCB_H -#define APOS_ARCH_TCB_H +#ifndef KMI_ARCH_TCB_H +#define KMI_ARCH_TCB_H /** * @file lock.h @@ -15,4 +15,4 @@ #include "../../arch/riscv32/include/tcb.h" #endif -#endif /* APOS_ARCH_TCB_H */ +#endif /* KMI_ARCH_TCB_H */ diff --git a/include/arch/timer.h b/include/arch/timer.h index fa1647e..df8e242 100644 --- a/include/arch/timer.h +++ b/include/arch/timer.h @@ -1,8 +1,8 @@ /* SPDX-License-Identifier: GPL-3.0-or-later */ /* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ -#ifndef APOS_ARCH_TIMER_H -#define APOS_ARCH_TIMER_H +#ifndef KMI_ARCH_TIMER_H +#define KMI_ARCH_TIMER_H /** * @file timer.h @@ -10,7 +10,7 @@ * arch/whatever/timer.c */ -#include +#include #if defined(riscv64) #include "../../arch/riscv64/include/timer.h" @@ -41,4 +41,4 @@ void set_timer(ticks_t ticks); */ ticks_t current_ticks(); -#endif /* APOS_ARCH_TIMER_H */ +#endif /* KMI_ARCH_TIMER_H */ diff --git a/include/arch/types.h b/include/arch/types.h index 8732be2..58f9ef4 100644 --- a/include/arch/types.h +++ b/include/arch/types.h @@ -1,14 +1,14 @@ /* SPDX-License-Identifier: GPL-3.0-or-later */ /* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ -#ifndef APOS_ARCH_TYPES_H -#define APOS_ARCH_TYPES_H +#ifndef KMI_ARCH_TYPES_H +#define KMI_ARCH_TYPES_H /** * @file types.h * Arch-specific types. * - * Doxygen thinks types.h if include/apos/types.h, but it's actually + * Doxygen thinks types.h if include/kmi/types.h, but it's actually * arch/whatever/include/types.h. Not sure how to fix that. * * \todo Fix incorrect include file reference in doxygen. @@ -20,4 +20,4 @@ #include "../../arch/riscv32/include/types.h" #endif -#endif /* APOS_ARCH_TYPES_H */ +#endif /* KMI_ARCH_TYPES_H */ diff --git a/include/arch/vmem.h b/include/arch/vmem.h index ce43a55..047c615 100644 --- a/include/arch/vmem.h +++ b/include/arch/vmem.h @@ -1,8 +1,8 @@ /* SPDX-License-Identifier: GPL-3.0-or-later */ /* Copyright 2021 - 2022, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ -#ifndef APOS_ARCH_PAGES_H -#define APOS_ARCH_PAGES_H +#ifndef KMI_ARCH_PAGES_H +#define KMI_ARCH_PAGES_H /** * @file vmem.h @@ -16,7 +16,7 @@ #include "../../arch/riscv32/include/vmem.h" #endif -#include +#include /** * Map one virtual page to physical page. @@ -164,4 +164,4 @@ stat_t destroy_vmem(struct vmem *b); */ void clone_uvmem(struct vmem * restrict r, struct vmem * restrict b); -#endif /* APOS_ARCH_PAGES_H */ +#endif /* KMI_ARCH_PAGES_H */ -- cgit v1.3