Skip to content

Commit dadeb64

Browse files
committed
Patch for error in loading PMP in monitor mode
1 parent 5cac676 commit dadeb64

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

kernel/src/syscall.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,8 +521,8 @@ err_t validate_mon_pmp_load(const sys_args_t *args)
521521
return ERR_INVALID_PID;
522522
if (!valid_idx(args->mon_pmp_load.idx))
523523
return ERR_INVALID_INDEX;
524-
if (!valid_pid(args->mon_pmp_load.slot))
525-
return ERR_INVALID_PID;
524+
if (!valid_slot(args->mon_pmp_load.slot))
525+
return ERR_INVALID_SLOT;
526526
return SUCCESS;
527527
}
528528

projects/tutorial.01.hello-world/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.POSIX:
22

3-
export PLATFORM ?=qemu_virt4
3+
export PLATFORM ?=qemu_virt
44
export ROOT :=${abspath ../..}
55
export BUILD :=${abspath build/${PLATFORM}}
66
export S3K_CONF_H :=${abspath s3k_conf.h}

0 commit comments

Comments
 (0)