This commit is contained in:
Erin 2023-06-25 00:18:31 +02:00
parent a7cf5e4847
commit bb50c09538
7 changed files with 13 additions and 2 deletions

0
hbvm/README.md Normal file
View file

View file

@ -1,4 +1,6 @@
#![doc = include_str!("../README.md")]
#![no_std]
extern crate alloc;
pub mod validate;

View file

@ -1,3 +1,5 @@
//! Validate if program is sound to execute
/// Program validation error kind
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ErrorKind {

View file

@ -1,10 +1,11 @@
mod paging;
//! Program memory implementation
use core::mem::MaybeUninit;
pub mod paging;
use self::paging::{PageTable, Permission, PtEntry};
use super::{trap::HandleTrap, VmRunError};
use alloc::boxed::Box;
use core::mem::MaybeUninit;
use derive_more::Display;
/// HoleyBytes virtual memory

View file

@ -1,3 +1,5 @@
//! Page table and associated structures implementation
use core::{
fmt::Debug,
mem::MaybeUninit,

View file

@ -1,3 +1,5 @@
//! Program trap handling interfaces
use super::{
mem::{Memory, MemoryAccessReason, PageSize},
value::Value,

View file

@ -1,3 +1,5 @@
//! HoleyBytes register value definition
use core::fmt::Debug;
/// Define [`Value`] union