repo
stringlengths
6
65
file_url
stringlengths
81
311
file_path
stringlengths
6
227
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:31:58
2026-01-04 20:25:31
truncated
bool
2 classes
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/crates/ffedit/src/disk_selection.rs
crates/ffedit/src/disk_selection.rs
/* ffedit https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limit...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/crates/ffedit/src/widget.rs
crates/ffedit/src/widget.rs
/* ffedit https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limit...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/crates/ffedit/src/logger.rs
crates/ffedit/src/logger.rs
/* ffedit https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limit...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/crates/ffedit/src/app_events.rs
crates/ffedit/src/app_events.rs
/* ffedit https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limit...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/crates/ffedit/src/app_context.rs
crates/ffedit/src/app_context.rs
/* ffedit https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limit...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/crates/ffedit/src/util.rs
crates/ffedit/src/util.rs
/* ffedit https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limit...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/crates/ffedit/src/layout.rs
crates/ffedit/src/layout.rs
/* ffedit https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limit...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/crates/ffedit/src/modal.rs
crates/ffedit/src/modal.rs
/* ffedit https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limit...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/crates/ffedit/src/main.rs
crates/ffedit/src/main.rs
/* ffedit https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limit...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/crates/ffedit/src/components/metadata_header.rs
crates/ffedit/src/components/metadata_header.rs
/* ffedit https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limit...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/crates/ffedit/src/components/data_block.rs
crates/ffedit/src/components/data_block.rs
/* ffedit https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limit...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/crates/ffedit/src/components/history.rs
crates/ffedit/src/components/history.rs
/* ffedit https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limit...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/crates/ffedit/src/components/mod.rs
crates/ffedit/src/components/mod.rs
/* ffedit https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limit...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/crates/ffedit/src/cmd_interpreter/open.rs
crates/ffedit/src/cmd_interpreter/open.rs
/* ffedit https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limit...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/crates/ffedit/src/cmd_interpreter/up.rs
crates/ffedit/src/cmd_interpreter/up.rs
/* ffedit https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limit...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/crates/ffedit/src/cmd_interpreter/h.rs
crates/ffedit/src/cmd_interpreter/h.rs
/* ffedit https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limit...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/crates/ffedit/src/cmd_interpreter/list.rs
crates/ffedit/src/cmd_interpreter/list.rs
/* ffedit https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limit...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/crates/ffedit/src/cmd_interpreter/c.rs
crates/ffedit/src/cmd_interpreter/c.rs
/* ffedit https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limit...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/crates/ffedit/src/cmd_interpreter/mod.rs
crates/ffedit/src/cmd_interpreter/mod.rs
/* ffedit https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limit...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/crates/ffedit/src/cmd_interpreter/s.rs
crates/ffedit/src/cmd_interpreter/s.rs
/* ffedit https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limit...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/examples/serde_demo/src/main.rs
examples/serde_demo/src/main.rs
/* FluxFox https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limi...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/examples/fat/src/main.rs
examples/fat/src/main.rs
/* FluxFox https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limi...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/examples/imgdump/src/main.rs
examples/imgdump/src/main.rs
/* FluxFox https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limi...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/examples/async/src/main.rs
examples/async/src/main.rs
/* FluxFox https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limi...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/examples/imgviz/src/config.rs
examples/imgviz/src/config.rs
/* FluxFox https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limi...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/examples/imgviz/src/render_bitmap.rs
examples/imgviz/src/render_bitmap.rs
/* FluxFox https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limi...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/examples/imgviz/src/legend.rs
examples/imgviz/src/legend.rs
/* FluxFox https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limi...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/examples/imgviz/src/palette.rs
examples/imgviz/src/palette.rs
/* FluxFox https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limi...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/examples/imgviz/src/args.rs
examples/imgviz/src/args.rs
/* FluxFox https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limi...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/examples/imgviz/src/text.rs
examples/imgviz/src/text.rs
/* FluxFox https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limi...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/examples/imgviz/src/style.rs
examples/imgviz/src/style.rs
/* FluxFox https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limi...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/examples/imgviz/src/main.rs
examples/imgviz/src/main.rs
/* FluxFox https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limi...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/examples/imgviz/src/render_svg.rs
examples/imgviz/src/render_svg.rs
/* FluxFox https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limi...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
dbalsom/fluxfox
https://github.com/dbalsom/fluxfox/blob/b4c04b51746e5fe7769f49a1b32b8caad426fc81/examples/imginfo/src/main.rs
examples/imginfo/src/main.rs
/* FluxFox https://github.com/dbalsom/fluxfox Copyright 2024-2025 Daniel Balsom Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limi...
rust
MIT
b4c04b51746e5fe7769f49a1b32b8caad426fc81
2026-01-04T20:24:04.021295Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/scripts/docker/build.rs
scripts/docker/build.rs
#!/usr/bin/env bash set -e ROOT=$(git rev-parse --show-toplevel) sudo docker build $ROOT -t islet
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/scripts/docker/run.rs
scripts/docker/run.rs
#!/usr/bin/env bash set -e ROOT=$(git rev-parse --show-toplevel) sudo docker run -it -v $ROOT:/islet islet:latest
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/config.rs
rmm/src/config.rs
use alloc::vec::Vec; use lazy_static::lazy_static; use spin::mutex::Mutex; pub const NUM_OF_CPU: usize = 8; pub const NUM_OF_CLUSTER: usize = 2; pub const NUM_OF_CPU_PER_CLUSTER: usize = NUM_OF_CPU / NUM_OF_CLUSTER; pub const PAGE_BITS: usize = 12; pub const PAGE_SIZE: usize = 1 << PAGE_BITS; // 4KiB pub const LARGE_...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/lib.rs
rmm/src/lib.rs
#![no_std] #![allow(incomplete_features)] #![feature(alloc_error_handler)] #![feature(specialization)] #![warn(rust_2018_idioms)] #[cfg(not(any(test, fuzzing)))] pub mod allocator; pub mod asm; pub mod config; pub(crate) mod cose; pub mod cpu; pub(crate) mod event; pub mod exception; pub mod gic; #[macro_use] pub mod ...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/asm.rs
rmm/src/asm.rs
use core::arch::asm; pub const SMC_SUCCESS: usize = 0; #[cfg(any(kani, miri, test, fuzzing))] pub const SMC_ERROR: usize = 1; pub fn smc(cmd: usize, args: &[usize]) -> [usize; 8] { let mut ret: [usize; 8] = [0usize; 8]; let mut padded_args: [usize; 8] = [0usize; 8]; let start = 1; let end = start + ar...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/gic.rs
rmm/src/gic.rs
use aarch64_cpu::registers::*; use lazy_static::lazy_static; pub const ICH_HCR_EL2_INIT: u64 = (ICH_HCR_EL2::En.mask << ICH_HCR_EL2::En.shift) + (ICH_HCR_EL2::vSGIEOICount.mask << ICH_HCR_EL2::vSGIEOICount.shift) + (ICH_HCR_EL2::DVIM.mask << ICH_HCR_EL2::DVIM.shift); // Interrupt Controller List Registers (IC...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/macro.rs
rmm/src/macro.rs
// TODO: Expands to cover args, ret #[macro_export] macro_rules! define_interface { (command {$($variant:ident = $val:expr),*,}) => { $(pub const $variant: usize = $val;)* pub fn to_str(code: usize) -> alloc::string::String { use alloc::string::ToString; use alloc::format; ...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/stat.rs
rmm/src/stat.rs
use crate::allocator; use crate::rmi; use crate::rsi; use spin::mutex::Mutex; use crate::alloc::string::ToString; use alloc::string::String; //NOTE: RMI, RSI_CMD_MAX are should be updated whenever there is a new command // which is bigger than the current max value of the commands. // But if RMI, RSI comman...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/logger.rs
rmm/src/logger.rs
use io::Write; use log::{Level, LevelFilter, Metadata, Record}; struct SimpleLogger; extern crate alloc; impl log::Log for SimpleLogger { fn enabled(&self, metadata: &Metadata<'_>) -> bool { metadata.level() <= Level::Trace } fn log(&self, record: &Record<'_>) { if self.enabled(record.met...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/pmu.rs
rmm/src/pmu.rs
use aarch64_cpu::registers::*; use armv9a::regs::pmu::*; use armv9a::PMCR_EL0; pub const MAX_EVCNT: usize = 31; #[allow(non_upper_case_globals)] const FEAT_PMUv3p7: u64 = 7; #[cfg(not(feature = "qemu"))] const PMU_MIN_VER: u64 = FEAT_PMUv3p7; #[cfg(feature = "qemu")] const PMU_MIN_VER: u64 = 5; // FEAT_PMUv3p5 // ID...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/panic.rs
rmm/src/panic.rs
#[alloc_error_handler] fn alloc_error_handler(_layout: core::alloc::Layout) -> ! { panic!("OOM! memory allocation of {} bytes failed", _layout.size()) } #[panic_handler] pub fn panic_handler(_info: &core::panic::PanicInfo<'_>) -> ! { error!("RMM: {}", _info); halt() } pub fn halt() -> ! { loop {} }
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/test_utils.rs
rmm/src/test_utils.rs
use crate::event::Context; use crate::event::Mainloop; use crate::granule::GRANULE_SIZE; use crate::monitor::Monitor; use crate::rmi::realm::Params as RealmParams; use crate::rmi::rec::params::Params as RecParams; use crate::rmi::*; pub use mock::host::{alloc_granule, granule_addr}; use alloc::vec::Vec; pub fn rmi<c...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/allocator.rs
rmm/src/allocator.rs
use core::mem::MaybeUninit; use core::ptr::addr_of_mut; use linked_list_allocator::LockedHeap; use crate::config::RMM_HEAP_SIZE; static mut HEAP: [MaybeUninit<u8>; RMM_HEAP_SIZE] = [MaybeUninit::uninit(); RMM_HEAP_SIZE]; #[global_allocator] static mut ALLOCATOR: LockedHeap = LockedHeap::empty(); /// Initializes the ...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/simd.rs
rmm/src/simd.rs
use aarch64_cpu::registers::ID_AA64PFR0_EL1; use aarch64_cpu::registers::{Readable, Writeable}; use armv9a::regs::{ID_AA64PFR1_SME_EL1, SMCR_EL2, ZCR_EL2}; use core::arch::asm; use lazy_static::lazy_static; // Vector length (VL) = size of a Z-register in bytes // Vector quadwords (VQ) = size of a Z-register in units o...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/monitor.rs
rmm/src/monitor.rs
use crate::event::{Context, Mainloop, RmiHandle, RsiHandle}; use crate::mm::translation::PageTable; use crate::rec::context::set_reg; use crate::rec::Rec; use crate::rmi; use crate::rmi::rec::run::Run; #[cfg(not(kani))] pub struct Monitor { pub rsi: RsiHandle, pub rmi: RmiHandle, pub page_table: PageTable,...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/cose.rs
rmm/src/cose.rs
use alloc::{borrow::ToOwned, vec::Vec}; use ciborium::ser; use coset::{iana, AsCborValue, CoseKeyBuilder}; use ecdsa::elliptic_curve::sec1::ToEncodedPoint; // Convert SEC1 encoded EC2 public `key` to COSE/CBOR // Handles only p384 for now, others can be uncommented when needed pub fn ec_public_key_sec1_to_cose(key: &[...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/cpu.rs
rmm/src/cpu.rs
use crate::config::NUM_OF_CPU_PER_CLUSTER; use aarch64_cpu::registers::*; #[no_mangle] pub extern "C" fn get_cpu_id() -> usize { let (cluster, core) = id(); cluster * NUM_OF_CPU_PER_CLUSTER + core } #[cfg(any(feature = "fvp", not(feature = "qemu")))] #[inline(always)] pub fn id() -> (usize, usize) { ( ...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/host.rs
rmm/src/host.rs
#[cfg(feature = "gst_page_table")] use crate::granule::{is_not_in_realm, GRANULE_SIZE}; #[cfg(not(feature = "gst_page_table"))] use crate::granule::{GranuleState, GRANULE_SIZE}; #[cfg(not(feature = "gst_page_table"))] use crate::{get_granule, get_granule_if}; use safe_abstraction::raw_ptr::{assume_safe, SafetyAssured,...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/exception/trap.rs
rmm/src/exception/trap.rs
mod frame; pub mod syndrome; use self::frame::TrapFrame; use self::syndrome::Fault; use self::syndrome::Syndrome; use super::lower::synchronous; use crate::cpu; use crate::event::realmexit::{ExitSyncType, RecExitReason}; use crate::rec::simd; use crate::rec::Rec; use aarch64_cpu::registers::*; #[repr(u16)] #[derive(...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/exception/mod.rs
rmm/src/exception/mod.rs
pub mod lower; pub mod trap; core::arch::global_asm!(include_str!("vectors.s")); extern "C" { pub static mut vectors: u64; }
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/exception/trap/frame.rs
rmm/src/exception/trap/frame.rs
#[repr(C)] #[derive(Debug, Copy, Clone)] pub struct TrapFrame { pub _res: u64, pub elr: u64, pub spsr: u64, pub regs: [u64; 31], }
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/exception/trap/syndrome.rs
rmm/src/exception/trap/syndrome.rs
use aarch64_cpu::registers::*; #[derive(Debug, Copy, Clone)] pub enum Fault { AddressSize { level: u8 }, Translation { level: u8 }, AccessFlag { level: u8 }, Permission { level: u8 }, Alignment, TLBConflict, Other(u8), } const DFSC_MASK: u8 = 0x3f; const ISS_BRK_CMT_MASK: u16 = 0xffff; im...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/exception/lower/mod.rs
rmm/src/exception/lower/mod.rs
pub mod synchronous;
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/exception/lower/synchronous/mod.rs
rmm/src/exception/lower/synchronous/mod.rs
pub mod sys_reg;
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/exception/lower/synchronous/sys_reg.rs
rmm/src/exception/lower/synchronous/sys_reg.rs
use crate::exception::trap; use crate::rec::Rec; use aarch64_cpu::registers::*; use armv9a::regs::*; fn check_sysreg_id_access(esr: u64) -> bool { let esr = ISS::new(esr); (esr.get_masked(ISS::Op0) | esr.get_masked(ISS::Op1) | esr.get_masked(ISS::CRn)) == ISS::Op0 } fn check_sysreg_icc_access(esr: u64) -> bo...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/rmm_el3/digest.rs
rmm/src/rmm_el3/digest.rs
use crate::cose; use alloc::vec::Vec; use sha2::{Digest, Sha256, Sha384, Sha512}; /// Supported public dak hash algorithms. #[allow(dead_code)] #[derive(Debug)] enum HashAlgo { Sha256, Sha384, Sha512, } fn calculate_hash(data: Vec<u8>, algo: HashAlgo) -> Vec<u8> { match algo { HashAlgo::Sha256...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/rmm_el3/manifest.rs
rmm/src/rmm_el3/manifest.rs
use autopadding::*; use safe_abstraction::raw_ptr::assume_safe; use safe_abstraction::raw_ptr::Error; use spinning_top::SpinlockGuard; use super::RMM_SHARED_BUFFER_LOCK; use crate::config; /* * Boot Manifest structure illustration, with two dram banks and * a single console. * * +----------------------------------...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/rmm_el3/iface.rs
rmm/src/rmm_el3/iface.rs
use super::{digest, utils}; use super::{ ATTEST_KEY_CURVE_ECC_SECP384R1, PLAT_TOKEN, REALM_ATTEST_KEY, RMM_SHARED_BUFFER_LOCK, SHA256_DIGEST_SIZE, VHUK_A, VHUK_M, }; use crate::asm::smc; use crate::{config, rmi}; use spinning_top::{Spinlock, SpinlockGuard}; const ID_VHUK_A: usize = 0x1; const ID_VHUK_M: usize ...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/rmm_el3/utils.rs
rmm/src/rmm_el3/utils.rs
use alloc::vec::Vec; use core::{ops::Range, ptr, slice}; use spinning_top::{Spinlock, SpinlockGuard}; pub(super) fn va_to_vec(ptr: usize, len: usize) -> Vec<u8> { let ptr: *const u8 = ptr as *const u8; unsafe { slice::from_raw_parts(ptr, len).to_vec() } } pub(super) fn vec_to_va(vec: &[u8], ptr: usize, len: u...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/rmm_el3/mod.rs
rmm/src/rmm_el3/mod.rs
mod digest; mod iface; mod manifest; mod utils; // TODO: This code should be made in an objective manner with some RMM-EL3 // context but to do that we'd need to have a way to pass this context to the // main event loop. For the initial version I've decided to modify the original // code as little as possible. use al...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/measurement/error.rs
rmm/src/measurement/error.rs
#[derive(Debug)] pub enum MeasurementError { InvalidHashAlgorithmValue(u8), OutputBufferTooSmall, }
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/measurement/mod.rs
rmm/src/measurement/mod.rs
mod ctx; mod error; mod hash; pub use ctx::HashContext; pub use error::MeasurementError; pub use hash::Hashable; pub use hash::Hasher; pub const MEASUREMENTS_SLOT_MAX_SIZE: usize = 512 / 8; pub const MEASUREMENTS_SLOT_NR: usize = 5; pub const MEASUREMENTS_SLOT_RIM: usize = 0; pub const RMI_MEASURE_CONTENT: usize = 1...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/measurement/hash.rs
rmm/src/measurement/hash.rs
use alloc::boxed::Box; use sha2::Digest; use sha2::{digest::DynDigest, Sha256, Sha512}; use crate::{ measurement::MeasurementError, rmi::{HASH_ALGO_SHA256, HASH_ALGO_SHA512}, }; pub struct HashWrapper { pub hash_func: Box<dyn DynDigest>, } impl HashWrapper { pub fn hash(&mut self, data: impl AsRef<[u...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/measurement/ctx.rs
rmm/src/measurement/ctx.rs
use super::{ Hasher, Measurement, MeasurementError, MEASUREMENTS_SLOT_RIM, MEASURE_DESC_TYPE_DATA, MEASURE_DESC_TYPE_REC, MEASURE_DESC_TYPE_RIPAS, RMI_MEASURE_CONTENT, }; use crate::rmi::rec::params::Params as RecParams; use crate::{host::DataPage, realm::rd::Rd, rmi::realm::params::Params as RealmParams, rsi};...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/granule/mod.rs
rmm/src/granule/mod.rs
#[cfg(feature = "gst_page_table")] pub mod page_table; #[cfg(feature = "gst_page_table")] pub use page_table::*; #[cfg(not(feature = "gst_page_table"))] pub mod array; #[cfg(not(feature = "gst_page_table"))] pub use array::*;
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/granule/page_table/translation.rs
rmm/src/granule/page_table/translation.rs
use super::entry; use super::{validate_addr, GranuleState, L0Table, L1Table, GRANULE_SIZE}; use crate::config; use crate::const_assert_eq; use alloc::collections::BTreeMap; use core::ptr::addr_of_mut; use vmsa::address::PhysAddr; use vmsa::error::Error; use vmsa::page::{Page, PageSize}; use vmsa::page_table::{DefaultM...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/granule/page_table/mod.rs
rmm/src/granule/page_table/mod.rs
pub mod entry; pub mod translation; use self::entry::{Entry, Inner}; use self::translation::{ GranuleStatusTable, GRANULE_STATUS_TABLE, L0_TABLE_ENTRY_SIZE_RANGE, L1_TABLE_ENTRY_SIZE_RANGE, }; use crate::config; use crate::rmi::error::Error as RmiError; use core::ptr::addr_of_mut; use vmsa::address::PhysAddr; use...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/granule/page_table/entry.rs
rmm/src/granule/page_table/entry.rs
use vmsa::address::PhysAddr; use vmsa::error::Error; use vmsa::guard::EntryGuard; use vmsa::page_table::{self, Level}; use super::translation::{add_l1_table, addr_to_idx, get_l1_table_addr, L0_TABLE_ENTRY_SIZE_RANGE}; use super::{GranuleState, GRANULE_SIZE}; use spinning_top::Spinlock; extern crate alloc; use alloc::...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/granule/array/mod.rs
rmm/src/granule/array/mod.rs
pub mod entry; use self::entry::Entry; use self::entry::Granule; use crate::config; use crate::rmi::error::Error; pub const GRANULE_SIZE: usize = 4096; pub const GRANULE_SHIFT: usize = 12; pub const GRANULE_MASK: usize = !((1 << GRANULE_SHIFT) - 1); #[cfg(any(kani, miri, test, fuzzing))] pub const GRANULE_MEM_SIZE: ...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/granule/array/entry.rs
rmm/src/granule/array/entry.rs
use crate::config; use crate::granule::array::GRANULE_STATUS_TABLE; use crate::rmi::error::Error; use super::{GranuleState, GRANULE_SIZE}; use core::sync::atomic::{AtomicU8, Ordering}; use safe_abstraction::raw_ptr; use spinning_top::{Spinlock, SpinlockGuard}; use vmsa::guard::Content; // Safety: concurrency safety /...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/mm/page.rs
rmm/src/mm/page.rs
use super::page_table::{attr, entry::PTDesc}; use crate::config::PAGE_SIZE; use armv9a::bits_in_reg; use vmsa::page::PageSize; /// A 4 KiB page mapped in the L3Table. #[derive(Clone, Copy)] pub enum BasePageSize {} impl PageSize for BasePageSize { const SIZE: usize = PAGE_SIZE; const MAP_TABLE_LEVEL: usize = ...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/mm/translation.rs
rmm/src/mm/translation.rs
use super::page_table::entry::Entry; use super::page_table::{attr, L1Table}; use crate::config::{PlatformMemoryLayout, PAGE_SIZE, RMM_STACK_GUARD_SIZE, RMM_STACK_SIZE}; use crate::mm::page::BasePageSize; use crate::mm::page_table::entry::PTDesc; use vmsa::address::{PhysAddr, VirtAddr}; use vmsa::page::Page; use vmsa::...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/mm/mod.rs
rmm/src/mm/mod.rs
pub mod page; pub mod page_table; pub mod translation;
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/mm/page_table/attr.rs
rmm/src/mm/page_table/attr.rs
pub mod shareable { pub const NONE: u64 = 0b00; pub const OUTER: u64 = 0b10; pub const INNER: u64 = 0b11; } pub mod permission { pub const RW: u64 = 0b00; pub const RO: u64 = 0b10; } pub mod page_type { pub const BLOCK: u64 = 0b0; pub const TABLE_OR_PAGE: u64 = 0b1; } pub mod mair_idx { ...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/mm/page_table/mod.rs
rmm/src/mm/page_table/mod.rs
pub mod attr; pub mod entry; use self::entry::Entry; use crate::config::PAGE_SIZE; use vmsa::page_table::{HasSubtable, Level}; // Safety/TODO: // - As of now, concurrency safety for RTT and Realm page table is achieved by a big lock. // - If we want to use entry-level locking for a better efficiency, several piece...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/mm/page_table/entry.rs
rmm/src/mm/page_table/entry.rs
use super::attr; use attr::mair_idx; use vmsa::address::PhysAddr; use vmsa::error::Error; use vmsa::page_table::{self, Level}; use vmsa::RawGPA; use armv9a::{define_bitfield, define_bits, define_mask}; define_bits!( PTDesc, Reserved[58 - 55], UXN[54 - 54], PXN[53 - 53], ADDR_BLK_L1[47 - 30], ...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/event/rsihandle.rs
rmm/src/event/rsihandle.rs
extern crate alloc; use crate::rec::Rec; use crate::rmi::rec::run::Run; use crate::rsi; use crate::rsi::psci; use crate::Monitor; // TODO: Change this into rsi::error::Error use crate::rmi::error::Error; use alloc::boxed::Box; use alloc::collections::btree_map::BTreeMap; pub type Handler = Box<dyn Fn(&[usize], &...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/event/realmexit.rs
rmm/src/event/realmexit.rs
const REC_EXIT_REASON_MASK: usize = 15; // 0b1111 const EXIT_SYNC_TYPE_SHIFT: usize = 4; const EXIT_SYNC_TYPE_MASK: usize = 15 << EXIT_SYNC_TYPE_SHIFT; // 0b1111_0000 /// Handles 'RET_TO_RMM' cases from trap::handle_lower_exception() /// /// It can't cover all of RmiRecExitReason types. /// Because the following type...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/event/rmihandle.rs
rmm/src/event/rmihandle.rs
extern crate alloc; use crate::rmi; use crate::rmi::error::Error; use crate::Monitor; use alloc::boxed::Box; use alloc::collections::btree_map::BTreeMap; pub type Handler = Box<dyn Fn(&[usize], &mut [usize], &Monitor) -> Result<(), Error>>; pub struct RmiHandle { pub on_event: BTreeMap<usize, Handler>, } impl ...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/event/mainloop.rs
rmm/src/event/mainloop.rs
use super::Context; use crate::asm::smc; use crate::rmi; pub struct Mainloop; impl Mainloop { pub fn new() -> Self { Self } #[cfg(not(kani))] pub fn dispatch(&self, ctx: Context) -> Context { let ret = smc(ctx.cmd(), ctx.arg_slice()); let cmd = ret[0]; rmi::constraint:...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/event/mod.rs
rmm/src/event/mod.rs
pub mod mainloop; pub mod realmexit; pub mod rmihandle; pub mod rsihandle; pub use crate::rmi::error::Error; pub use crate::rsi; pub use mainloop::Mainloop; pub use rmihandle::RmiHandle; pub use rsihandle::RsiHandle; extern crate alloc; use alloc::vec::Vec; #[macro_export] macro_rules! listen { ($eventloop:expr,...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/rmi/gpt.rs
rmm/src/rmi/gpt.rs
use crate::asm::{smc, SMC_SUCCESS}; use crate::event::RmiHandle; use crate::granule::{set_granule, GranuleState}; use crate::listen; use crate::rmi; use crate::rmi::error::Error; #[cfg(not(feature = "gst_page_table"))] use crate::{get_granule, get_granule_if}; #[cfg(feature = "gst_page_table")] use crate::{get_granule,...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/rmi/rtt.rs
rmm/src/rmi/rtt.rs
extern crate alloc; use crate::event::RmiHandle; use crate::granule::{ is_granule_aligned, is_not_in_realm, set_granule, GranuleState, GRANULE_SIZE, }; use crate::host; use crate::host::DataPage; use crate::listen; use crate::measurement::HashContext; use crate::realm::mm::rtt; use crate::realm::mm::rtt::{RTT_MIN_...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/rmi/version.rs
rmm/src/rmi/version.rs
use crate::event::RmiHandle; use crate::listen; use crate::rmi::{self, error::Error}; extern crate alloc; pub fn decode_version(version: usize) -> (usize, usize) { let major = (version & 0x7fff0000) >> 16; let minor = version & 0xffff; (major, minor) } fn encode_version() -> usize { (rmi::ABI_MAJOR_...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/rmi/error.rs
rmm/src/rmi/error.rs
use crate::{measurement::MeasurementError, rsi}; use safe_abstraction::raw_ptr; // B3.4.1 RmiCommandReturnCode type // Default index is 0 #[derive(Debug)] pub enum Error { RmiErrorInput, RmiErrorRealm(usize), RmiErrorRec, RmiErrorRtt(usize), RmiErrorInUse, RmiErrorCount, //// The below are...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/rmi/mod.rs
rmm/src/rmi/mod.rs
pub mod constraint; pub mod error; pub mod features; pub mod gpt; pub mod metadata; pub mod realm; pub mod rec; pub mod rtt; pub mod version; use crate::define_interface; define_interface! { command { VERSION = 0xc400_0150, GRANULE_DELEGATE = 0xc400_0151, GRANULE_UN...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/rmi/features.rs
rmm/src/rmi/features.rs
use crate::event::RmiHandle; use crate::gic; use crate::listen; use crate::pmu; use crate::rec; use crate::rmi; use crate::simd; use armv9a::{define_bitfield, define_bits, define_mask}; extern crate alloc; define_bits!( FeatureReg0, MAX_RECS_ORDER[41 - 38], GICV3_NUM_LRS[37 - 34], HASH_SHA_512[33 - 33...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/rmi/constraint.rs
rmm/src/rmi/constraint.rs
use crate::config::SMCCC_1_3_SVE_HINT; use crate::event::{Command, Context}; use crate::rmi; #[allow(dead_code)] #[derive(Default, Copy, Clone)] pub struct Constraint { pub cmd: Command, pub arg_num: usize, // number of args including fid pub ret_num: usize, // TODO: add validate function for each RMI ...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/rmi/metadata.rs
rmm/src/rmi/metadata.rs
use core::ffi::CStr; use p384::{ ecdsa::{signature::Verifier, Signature, VerifyingKey}, elliptic_curve::generic_array::GenericArray, EncodedPoint, }; use super::{HASH_ALGO_SHA256, HASH_ALGO_SHA512}; use crate::granule::GRANULE_SIZE; use crate::measurement::{Measurement, MEASUREMENTS_SLOT_MAX_SIZE}; use cra...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/rmi/realm/params.rs
rmm/src/rmi/realm/params.rs
use crate::const_assert_eq; use crate::granule::{GRANULE_SHIFT, GRANULE_SIZE}; use crate::measurement::Hashable; use crate::pmu; use crate::realm::mm::rtt::{RTT_PAGE_LEVEL, RTT_STRIDE}; use crate::rmi::error::Error; use crate::rmi::features; use crate::rmi::{HASH_ALGO_SHA256, HASH_ALGO_SHA512}; use crate::simd; use ar...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/rmi/realm/mod.rs
rmm/src/rmi/realm/mod.rs
pub mod params; pub use self::params::Params; use super::error::Error; use crate::event::RmiHandle; use crate::granule::GRANULE_SIZE; use crate::granule::{set_granule, GranuleState}; use crate::host; use crate::listen; use crate::measurement::{HashContext, MEASUREMENTS_SLOT_RIM}; use crate::realm::mm::stage2_translatio...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/rmi/rec/vtcr.rs
rmm/src/rmi/rec/vtcr.rs
use crate::realm::rd::Rd; use crate::rec::Rec; use crate::rmi::error::Error; use aarch64_cpu::registers::*; fn is_feat_vmid16_present() -> bool { #[cfg(not(any(miri, test)))] let ret = ID_AA64MMFR1_EL1.read(ID_AA64MMFR1_EL1::VMIDBits) == ID_AA64MMFR1_EL1::VMIDBits::Bits16.into(); #[cfg(any(miri, ...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/rmi/rec/handlers.rs
rmm/src/rmi/rec/handlers.rs
use super::mpidr::MPIDR; use super::params::Params; use super::run::{EntryFlag, Run}; use super::vtcr::{activate_stage2_mmu, prepare_vtcr}; use crate::event::RmiHandle; #[cfg(feature = "gst_page_table")] use crate::granule::{set_granule, set_granule_with_parent, GranuleState}; #[cfg(not(feature = "gst_page_table"))] us...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/rmi/rec/params.rs
rmm/src/rmi/rec/params.rs
use super::mpidr; use crate::const_assert_eq; use crate::granule::{GranuleState, GRANULE_SIZE}; use crate::measurement::Hashable; use crate::rmi; use crate::rmi::error::Error; use crate::{get_granule, get_granule_if}; use autopadding::*; pub const NR_AUX: usize = 16; pub const NR_GPRS: usize = 8; pad_struct_and_impl...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/rmi/rec/mpidr.rs
rmm/src/rmi/rec/mpidr.rs
use armv9a::{define_bitfield, define_bits, define_mask}; // B3.4.16 RmiRecMpidr type define_bits!( MPIDR, AFF3[31 - 24], AFF2[23 - 16], AFF1[15 - 8], AFF0[3 - 0] ); impl From<u64> for MPIDR { fn from(val: u64) -> Self { Self(val) } } impl MPIDR { // B2.30 RecIndex function ...
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false
islet-project/islet
https://github.com/islet-project/islet/blob/5f541377a34c5daaf01aa148e406370e304fb661/rmm/src/rmi/rec/mod.rs
rmm/src/rmi/rec/mod.rs
pub mod exit; pub mod handlers; pub mod mpidr; pub mod params; pub mod run; pub mod vtcr; pub use self::handlers::set_event_handler;
rust
Apache-2.0
5f541377a34c5daaf01aa148e406370e304fb661
2026-01-04T20:21:26.369655Z
false