Skip to content

Commit

Permalink
Merge pull request project-oak#39 from efenniht/hfo2-17-api-cpu
Browse files Browse the repository at this point in the history
Wrap mutable states of VCpu with SpinLock (partially done)
  • Loading branch information
efenniht authored Aug 29, 2019
2 parents c8cc29b + 3e0219a commit b633e69
Show file tree
Hide file tree
Showing 13 changed files with 463 additions and 370 deletions.
1 change: 1 addition & 0 deletions hfo2/src/abi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

use crate::types::*;

#[derive(Clone, Copy)]
pub enum HfVCpuRunReturn {
/// The vCPU has been preempted but still has work to do. If the scheduling
/// quantum has not expired, the scheduler MUST call `hf_vcpu_run` on the
Expand Down
3 changes: 0 additions & 3 deletions hfo2/src/addr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ use core::fmt;
use crate::arch::*;
use crate::types::*;

// TODO: Refactor type names and remove this.
#[allow(non_camel_case_types)]

// TODO: Some codes (mm.rs, mpool.rs, page.rs and etc.) treats memory address
// with primitive types (usually usize.) Refactor them to use `*addr_t` types.

Expand Down
Loading

0 comments on commit b633e69

Please sign in to comment.