Skip to content

Commit

Permalink
Implements syscall 591 (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
ultimaweapon authored Oct 23, 2023
1 parent 2a05684 commit af4ef4b
Show file tree
Hide file tree
Showing 9 changed files with 180 additions and 413 deletions.
1 change: 1 addition & 0 deletions src/kernel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ macros = { path = "../macros" }
param = { path = "../param" }
serde = { version = "1.0", features = ["derive"] }
serde_yaml = "0.9"
sha1 = "0.10"
termcolor = "1.2.0"
thiserror = "1.0"
tls = { path = "../tls" }
Expand Down
91 changes: 0 additions & 91 deletions src/kernel/src/disasm/cpu.rs

This file was deleted.

279 changes: 0 additions & 279 deletions src/kernel/src/disasm/mod.rs

This file was deleted.

6 changes: 2 additions & 4 deletions src/kernel/src/ee/llvm/codegen.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
use crate::disasm::Disassembler;
use crate::llvm::module::LlvmModule;
use thiserror::Error;

/// Contains states for lifting a module.
pub(super) struct Codegen<'a> {
input: Disassembler<'a>,
output: &'a mut LlvmModule,
}

impl<'a> Codegen<'a> {
pub fn new(input: Disassembler<'a>, output: &'a mut LlvmModule) -> Self {
Self { input, output }
pub fn new(output: &'a mut LlvmModule) -> Self {
Self { output }
}

pub fn lift(&mut self, _offset: usize) -> Result<(), LiftError> {
Expand Down
Loading

0 comments on commit af4ef4b

Please sign in to comment.