Skip to content

Commit 5186547

Browse files
committed
fix(shim-sev): cleanup interrupt handling
Remove unused code from the `idt` copypasta and reduce it to the absolute minimum. As soon as `x86_64` > 0.14.6 is released, `InterruptStackFrame` and `InterruptStackFrameValue` can be removed also, see rust-osdev/x86_64#312 Signed-off-by: Harald Hoyer <[email protected]>
1 parent 34201f4 commit 5186547

File tree

4 files changed

+111
-225
lines changed

4 files changed

+111
-225
lines changed

internal/shim-sev/Cargo.lock

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/shim-sev/Cargo.toml

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ test = false
1313
sallyport = { git = "https://github.com/enarx/sallyport", rev = "d016f8c6afd50ae2694ddc2d2afea4eec7301a41", features = [ "asm" ] }
1414
rcrt1 = { git = "https://github.com/enarx/rcrt1", rev = "b28f711" }
1515
compiler_builtins = { version = "0.1", default-features = false, features = [ "mem" ] }
16+
# FIXME: can be removed with the release of `x86_64` > 0.14.6
17+
volatile = "0.4.4"
1618
x86_64 = { version = "^0.14.6", default-features = false, features = ["instructions", "inline_asm"] }
1719
goblin = { version = "0.4", default-features = false, features = [ "elf64" ] }
1820
crt0stack = { version = "0.1", default-features = false }

0 commit comments

Comments
 (0)