Skip to content

Commit

Permalink
riscv: kernel: asm-defines.c: add defines for struct core_mmu_config
Browse files Browse the repository at this point in the history
Add CORE_MMU_CONFIG_SIZE and CORE_MMU_CONFIG_SATP defines
to asm-defines.c

Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Alvin Chang <alvinga@andestech.com>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
  • Loading branch information
maroueneboubakri authored and jforissier committed Jul 19, 2023
1 parent 9af8810 commit d843ed6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion core/arch/riscv/kernel/asm-defines.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
* Copyright 2022-2023 NXP
*/

#include <gen-asm-defines.h>
#include <kernel/thread.h>
#include <kernel/thread_private.h>
#include <gen-asm-defines.h>
#include <kernel/boot.h>
#include <mm/core_memprot.h>
#include <mm/core_mmu.h>
#include <mm/core_mmu_arch.h>
#include <types_ext.h>

DEFINES
Expand Down Expand Up @@ -75,4 +79,9 @@ DEFINES
DEFINE(THREAD_SCALL_REG_SP, offsetof(struct thread_scall_regs, sp));
DEFINE(THREAD_SCALL_REG_A0, offsetof(struct thread_scall_regs, a0));
DEFINE(THREAD_SCALL_REGS_SIZE, sizeof(struct thread_scall_regs));

/* struct core_mmu_config */
DEFINE(CORE_MMU_CONFIG_SIZE, sizeof(struct core_mmu_config));
DEFINE(CORE_MMU_CONFIG_SATP,
offsetof(struct core_mmu_config, satp));
}

0 comments on commit d843ed6

Please sign in to comment.