summaryrefslogtreecommitdiffstats
path: root/src/device/resource_allocator_v4.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/device/resource_allocator_v4.c')
-rw-r--r--src/device/resource_allocator_v4.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/device/resource_allocator_v4.c b/src/device/resource_allocator_v4.c
index 96d44882ed0e..73ec9c1dba59 100644
--- a/src/device/resource_allocator_v4.c
+++ b/src/device/resource_allocator_v4.c
@@ -84,6 +84,9 @@ static bool dev_has_children(const struct device *dev)
static resource_t effective_limit(const struct resource *const res)
{
+ if (CONFIG(ALWAYS_ALLOW_ABOVE_4G_ALLOCATION))
+ return res->limit;
+
/* Always allow bridge resources above 4G. */
if (res->flags & IORESOURCE_BRIDGE)
return res->limit;