pull/1/head
ondra05 2023-06-25 00:18:31 +02:00
parent 42e4cb6273
commit 45d1265007
No known key found for this signature in database
GPG Key ID: 0DA6D2BB2285E881
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