Let the user application decide upon the resource ID (RID)
All checks were successful
Build documentation / build-and-deploy (push) Successful in 22s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 22s
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user