Kernel: Allow ReturnOp in global scope
This commit is contained in:
parent
d128f4d70b
commit
ce262a5d2d
|
@ -1876,12 +1876,13 @@ namespace Kernel::ACPI::AML
|
|||
}
|
||||
|
||||
auto [execution_flow, node] = parse_result.release_value();
|
||||
if (execution_flow != ExecutionFlow::Normal)
|
||||
{
|
||||
if (execution_flow == ExecutionFlow::Normal)
|
||||
continue;
|
||||
if (execution_flow == ExecutionFlow::Return)
|
||||
break;
|
||||
dwarnln("Scope got execution flow {}", static_cast<int>(execution_flow));
|
||||
return BAN::Error::from_errno(EINVAL);
|
||||
}
|
||||
}
|
||||
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue