From d89e51f7d4312ec9a3b8b7175475ef794c7c4d35 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 31 Oct 2024 14:02:19 +0200 Subject: update some docs --- arch/riscv64/kernel/except.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'arch/riscv64/kernel/except.c') diff --git a/arch/riscv64/kernel/except.c b/arch/riscv64/kernel/except.c index 2525716..5f182fd 100644 --- a/arch/riscv64/kernel/except.c +++ b/arch/riscv64/kernel/except.c @@ -1,9 +1,24 @@ +/* SPDX-License-Identifier: copyleft-next-0.3.1 */ +/* Copyright 2024, Kim Kuparinen < kimi.h.kuparinen@gmail.com > */ + +/** + * @file except.c + * riscv64 exception handling. + */ + #include #include #include #include #include +/** + * Handle exception. Intended to be called from entry.S. + * + * @param pc Where exception occurred. + * @param addr What address caused the exception, if any. + * @param id ID of exception, see riscv spec. + */ void riscv_handle_exception(void *pc, void *addr, unsigned long id) { switch (id) { -- cgit v1.3