pub struct Env {
pub file: String,
pub mrs: IdVec<MrId, MemoryRegionDecl>,
pub pds: IdVec<PdId, ProtectionDomainDecl>,
pub chans: IdVec<ChanId, Channel>,
pub structs: IdVec<StructId, Struct>,
pub consts: IdVec<ConstId, Const>,
pub composition: Option<Composition>,
pub irq_ids: IdVec<PdId, Option<u32>>,
pub locals: IdVec<PdId, LocalVars>,
pub mappings: IdVec<MappingId, Mapping>,
pub ffis: IdVec<FfnId, ForeignFn>,
}Expand description
The environment: every declaration of a resolved project, each name a reference to the node it denotes.
Fields§
§file: StringThe .fis file, for diagnostics.
mrs: IdVec<MrId, MemoryRegionDecl>Memory regions, in source order.
pds: IdVec<PdId, ProtectionDomainDecl>Protection domains, in source order.
chans: IdVec<ChanId, Channel>Channels, in source order.
structs: IdVec<StructId, Struct>System structs, in source order.
consts: IdVec<ConstId, Const>System consts, in source order.
composition: Option<Composition>The System = composition, if written.
irq_ids: IdVec<PdId, Option<u32>>Each PD’s IRQ channel id, for a PD with an IRQ: what its
notified(ch) receives for the interrupt. Deprecated, with
mkids.rs: Microkit’s, not the language’s.
locals: IdVec<PdId, LocalVars>Each program’s local variables, by its protection domain: its PD’s state.
mappings: IdVec<MappingId, Mapping>Every mapping, each in its protection domain, in declaration order: each channel buffer at its two ends, in channel order, then the programs’ own, in PD order.
ffis: IdVec<FfnId, ForeignFn>Every foreign function some program calls, each once, in the order its first call resolves.