Skip to content

Commit 4e66623

Browse files
authored
Merge pull request #209 from rust-osdev/update-deps
Fix `asm` imports on latest nightly
2 parents 2a44fd4 + 4529b53 commit 4e66623

File tree

11 files changed

+33
-37
lines changed

11 files changed

+33
-37
lines changed

Cargo.lock

Lines changed: 10 additions & 26 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
@@ -34,7 +34,7 @@ required-features = ["uefi_bin"]
3434

3535
[dependencies]
3636
xmas-elf = { version = "0.6.2", optional = true }
37-
x86_64 = { version = "0.13.2", optional = true, default-features = false, features = ["instructions", "inline_asm"] }
37+
x86_64 = { version = "0.14.7", optional = true, default-features = false, features = ["instructions", "inline_asm"] }
3838
usize_conversions = { version = "0.2.0", optional = true }
3939
bit_field = { version = "0.10.0", optional = true }
4040
log = { version = "0.4.8", optional = true }

Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# Unreleased
22

3+
- Fix `asm` imports on latest nightly ([#209](https://github.com/rust-osdev/bootloader/pull/209))
4+
35
# 0.10.9 – 2021-10-07
46

7+
- Add support for framebuffer configuration ([#179](https://github.com/rust-osdev/bootloader/pull/179))
8+
59
# 0.10.8 – 2021-08-22
610

711
- Pad UEFI FAT file length ([#180](https://github.com/rust-osdev/bootloader/pull/180))

examples/test_framework/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ members = [
1212

1313
[dependencies]
1414
bootloader = { path = "../.." } # replace this with a version number
15-
x86_64 = "0.14.2"
15+
x86_64 = "0.14.7"
1616
uart_16550 = "0.2.14"
1717
spin = { version = "0.9.0", features = ["lazy"] }

src/bin/bios.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@ use bootloader::{
1111
binary::SystemInfo,
1212
boot_info::{FrameBufferInfo, PixelFormat},
1313
};
14-
use core::panic::PanicInfo;
15-
use core::slice;
14+
use core::{
15+
arch::{asm, global_asm},
16+
panic::PanicInfo,
17+
slice,
18+
};
1619
use usize_conversions::usize_from;
1720
use x86_64::structures::paging::{FrameAllocator, OffsetPageTable};
1821
use x86_64::structures::paging::{

src/bin/uefi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use bootloader::{
1717
binary::{legacy_memory_region::LegacyFrameAllocator, parsed_config::CONFIG, SystemInfo},
1818
boot_info::FrameBufferInfo,
1919
};
20-
use core::{mem, panic::PanicInfo, slice};
20+
use core::{arch::asm, mem, panic::PanicInfo, slice};
2121
use uefi::{
2222
prelude::{entry, Boot, Handle, ResultExt, Status, SystemTable},
2323
proto::console::gop::{GraphicsOutput, PixelFormat},

src/binary/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use crate::{
33
boot_info::{BootInfo, FrameBuffer, FrameBufferInfo, MemoryRegion, TlsTemplate},
44
};
55
use core::{
6+
arch::asm,
67
mem::{self, MaybeUninit},
78
slice,
89
};

tests/runner/src/main.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use std::{
2+
io::Write,
23
path::{Path, PathBuf},
3-
process::Command,
4+
process::{Command, Stdio},
45
};
56

67
const QEMU_ARGS: &[&str] = &[
@@ -28,8 +29,11 @@ fn main() {
2829
run_cmd.args(QEMU_ARGS);
2930
run_cmd.args(std::env::args().skip(2).collect::<Vec<_>>());
3031

31-
let exit_status = run_cmd.status().unwrap();
32-
match exit_status.code() {
32+
let child_output = run_cmd.output().unwrap();
33+
std::io::stderr().write_all(&child_output.stderr).unwrap();
34+
std::io::stderr().write_all(&child_output.stdout).unwrap();
35+
36+
match child_output.status.code() {
3337
Some(33) => {} // success
3438
Some(35) => panic!("Test failed"), // success
3539
other => panic!("Test failed with unexpected exit code `{:?}`", other),

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 = { version = "0.13.2", default-features = false, features = ["instructions", "inline_asm"] }
9+
x86_64 = { version = "0.14.7", default-features = false, features = ["instructions", "inline_asm"] }
1010
uart_16550 = "0.2.10"

tests/test_kernels/higher_half/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 = { version = "0.13.2", default-features = false, features = ["instructions", "inline_asm"] }
9+
x86_64 = { version = "0.14.7", default-features = false, features = ["instructions", "inline_asm"] }
1010
uart_16550 = "0.2.10"

tests/test_kernels/map_phys_mem/Cargo.toml

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

77
[target.'cfg(target_arch = "x86_64")'.dependencies]
88
bootloader = { path = "../../.." }
9-
x86_64 = { version = "0.13.2", default-features = false, features = ["instructions", "inline_asm"] }
9+
x86_64 = { version = "0.14.7", default-features = false, features = ["instructions", "inline_asm"] }
1010
uart_16550 = "0.2.10"
1111

1212
[package.metadata.bootloader]

0 commit comments

Comments
 (0)