boot: Don't round create_device_untypeds region
The bitfield generated accessor would only return an error if the region being turned into an untyped was seriously wrong and would have already been caught by earlier error checking in the region setup code. Signed-off-by: Kent McLeod <kent@kry10.com>
This commit is contained in:
parent
18a3fb3bae
commit
fc167441f0
1 changed files with 1 additions and 7 deletions
|
|
@ -655,13 +655,7 @@ BOOT_CODE bool_t create_untypeds(cap_t root_cnode_cap,
|
|||
region_t reg = paddr_to_pptr_reg((p_region_t) {
|
||||
start, CONFIG_PADDR_USER_DEVICE_TOP
|
||||
});
|
||||
/*
|
||||
* The auto-generated bitfield code will get upset if the
|
||||
* end pptr is larger than the maximum pointer size for this architecture.
|
||||
*/
|
||||
if (reg.end > PPTR_TOP) {
|
||||
reg.end = PPTR_TOP;
|
||||
}
|
||||
|
||||
if (!create_untypeds_for_region(root_cnode_cap, true, reg, first_untyped_slot)) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue