Let the user application decide upon the resource ID (RID)
All checks were successful
Build documentation / build-and-deploy (push) Successful in 22s

This commit is contained in:
2026-01-14 23:19:39 +01:00
parent 7cd5623d36
commit ebd9f0cac6
8 changed files with 28 additions and 24 deletions

View File

@@ -8,7 +8,7 @@ char c = 'a';
void app_main (void) {
uintptr_t out_paddr;
int mem_rid = proc_create_resource_mem (16, RV_PRIVATE, &out_paddr);
int mem_rid = proc_create_resource_mem (100, 16, RV_PRIVATE, &out_paddr);
proc_map (out_paddr, PROC_MAP_BASE, 16, PM_PRESENT | PM_RW | PM_USER);
@@ -20,7 +20,7 @@ void app_main (void) {
proc_test ('a');
int mutex_rid = proc_create_resource_mutex (RV_PRIVATE);
int mutex_rid = proc_create_resource_mutex (101, RV_PRIVATE);
proc_mutex_lock (mutex_rid);
proc_test ('b');