mirror of
https://github.com/drasko/codezero.git
synced 2026-02-26 16:53:14 +01:00
Moved capability struct to api/capability.h for userspace coherence
Userspace often breaks as we change the capability structure. Now structure is under api/ so userspace can also update with changes.
This commit is contained in:
@@ -364,9 +364,12 @@ int cap_read_all()
|
||||
BUG();
|
||||
}
|
||||
|
||||
|
||||
/* Copy them to real allocated structures */
|
||||
copy_boot_capabilities(ncaps);
|
||||
|
||||
cap_list_print(&capability_list);
|
||||
|
||||
memset(&cont_mem_regions, 0, sizeof(cont_mem_regions));
|
||||
|
||||
/* Set up pointers to important capabilities */
|
||||
@@ -394,7 +397,7 @@ int cap_read_all()
|
||||
BUG();
|
||||
}
|
||||
|
||||
if (!(cap->access & CAP_MAP_UTCB_BIT)) {
|
||||
if (!(cap->access & CAP_MAP_UTCB)) {
|
||||
printf("FATAL: Region designated "
|
||||
"for UTCB allocation does not "
|
||||
"have UTCB map permissions");
|
||||
|
||||
Reference in New Issue
Block a user