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