def in.ap.mutex
bend-osdev-acpi@0.1.1.0 · aml_interp.bend:1544
import bend-osdev-acpi@0.1.1.0/aml_interp.bend as AmlInterp
import Base
import bend-osdev-word64@0.1.1.0/word64.bend as W
import bend-osdev-acpi@0.1.1.0/error.bend as E
import bend-osdev-acpi@0.1.1.0/aml_value.bend as V
import bend-osdev-acpi@0.1.1.0/aml_ns.bend as S
import bend-osdev-acpi@0.1.1.0/aml_host.bend as Hs
1544def in.ap.mutex(~H: Data, ~io: H -> Hs.AmlHostOp -> Result<&2, &2, E.AcpiError, Hs.AmlHostAns<H>>, args: List<&2, V.AmlValue>, c: AmlCur, fs: List<&2, AmlFrame>, +w: AmlWorld<H>) -> AmlMachine<H>:
1545 match args:
1546 case Con{n, Con{V.AmlInt{s}, Nil{}}}:
1547 in.def.obj(H, in.path(n), S.AmlOMutex{W.W64.lo(s)}, c, fs, w)
1548 case Con{n, Nil{}}:
1549 in.def.obj(H, in.path(n), S.AmlOEvent{}, c, fs, w)
1550 case _:
1551 in.bad(H, 257, c, fs, w)