Skip to content

Commit 8c82e68

Browse files
committed
Update to x86_64 0.13.1
1 parent ca0a90a commit 8c82e68

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

Cargo.lock

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ required-features = ["uefi_bin"]
3232

3333
[dependencies]
3434
xmas-elf = { version = "0.6.2", optional = true }
35-
x86_64 = { git = "https://github.com/rust-osdev/x86_64.git", optional = true }
35+
x86_64 = { version = "0.13.1", optional = true }
3636
usize_conversions = { version = "0.2.0", optional = true }
3737
bit_field = { version = "0.10.0", optional = true }
3838
log = { version = "0.4.8", optional = true }

src/binary/load_kernel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::{
55
use x86_64::{
66
align_up,
77
structures::paging::{
8-
FrameAllocator, MapperAllSizes, Page, PageSize, PageTableFlags as Flags, PhysFrame,
8+
mapper::MapperAllSizes, FrameAllocator, Page, PageSize, PageTableFlags as Flags, PhysFrame,
99
Size4KiB,
1010
},
1111
PhysAddr, VirtAddr,

src/binary/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ unsafe fn context_switch(
398398
) -> ! {
399399
// identity-map current and next frame, so that we don't get an immediate pagefault
400400
// after switching the active page table
401-
let current_addr = PhysAddr::new(registers::read_rip());
401+
let current_addr = PhysAddr::new(registers::read_rip().as_u64());
402402
let current_frame: PhysFrame = PhysFrame::containing_address(current_addr);
403403
for frame in PhysFrame::range_inclusive(current_frame, current_frame + 1) {
404404
unsafe {

tests/test_kernels/default_settings/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ edition = "2018"
66

77
[dependencies]
88
bootloader = { path = "../../.." }
9-
x86_64 = "0.12.2"
9+
x86_64 = "0.13.1"
1010
uart_16550 = "0.2.10"

0 commit comments

Comments
 (0)