Skip to content

Commit 0d95894

Browse files
committed
Enhance comment informative
1 parent 03e0113 commit 0d95894

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ static inline sbi_ret_t handle_sbi_ecall_IPI(hart_t *hart, int32_t fid)
286286

287287
static inline sbi_ret_t handle_sbi_ecall_RFENCE(hart_t *hart, int32_t fid)
288288
{
289-
/* TODO */
289+
/* TODO: RFENCE SBI extension */
290290
uint64_t hart_mask, hart_mask_base;
291291
switch (fid) {
292292
case 0:

minimal.dts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
/dts-v1/;
22

3+
/*
4+
* RISC-V harts descriptions
5+
*/
36
#include "riscv-harts.dtsi"
47

58
/ {

riscv.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,10 @@ struct __hart_internal {
123123
*/
124124
uint32_t *(*mem_page_table)(const hart_t *vm, uint32_t ppn);
125125

126-
/* Point to the belonged vm_t */
126+
/* Point to the associated vm_t for better access to other harts. For
127+
* example, if hart 0 needs to send an IPI to hart 1, the IPI signal can be
128+
* sent to hart 1 through the *vm pointer.
129+
*/
127130
vm_t *vm;
128131
int32_t hsm_status;
129132
bool hsm_resume_is_ret;

0 commit comments

Comments
 (0)