Skip to content

Commit b49ccae

Browse files
authored
Merge pull request #170 from rust-osdev/nightly-fix
Make bootloader v0.10 compatible with latest Rust nightlies by updating `uefi-rs` dependency
2 parents f5e1425 + 2c956dc commit b49ccae

File tree

11 files changed

+34
-32
lines changed

11 files changed

+34
-32
lines changed

Diff for: Cargo.lock

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

Diff for: Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ x86_64 = { version = "0.13.2", optional = true, default-features = false, featur
3434
usize_conversions = { version = "0.2.0", optional = true }
3535
bit_field = { version = "0.10.0", optional = true }
3636
log = { version = "0.4.8", optional = true }
37-
uefi = { version = "0.9.0", optional = true }
37+
uefi = { version = "0.11.0", optional = true }
3838
argh = { version = "0.1.3", optional = true }
3939
displaydoc = { version = "0.1.7", optional = true }
4040
conquer-once = { version = "0.2.1", optional = true, default-features = false }

Diff for: Changelog.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Unreleased
22

3+
- Fix build on latest Rust nightlies by updating `uefi-rs` dependency ([#170](https://github.com/rust-osdev/bootloader/pull/170))
4+
- Also: Fix warnings about `.intel_syntax` attribute in assembly code
5+
36
# 0.10.4 – 2021-05-14
47

58
- Fix build on latest Rust nightly by updating to `uefi` v0.9.0 ([#162](https://github.com/rust-osdev/bootloader/pull/162))

Diff for: src/asm/e820.s

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.section .boot, "awx"
2-
.intel_syntax noprefix
32
.code16
43

54
# From http://wiki.osdev.org/Detecting_Memory_(x86)#Getting_an_E820_Memory_Map

Diff for: src/asm/stage_1.s

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.section .boot-first-stage, "awx"
22
.global _start
3-
.intel_syntax noprefix
43
.code16
54

65
# This stage initializes the stack, enables the A20 line, loads the rest of

Diff for: src/asm/stage_2.s

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.section .boot, "awx"
2-
.intel_syntax noprefix
32
.code16
43

54
# This stage sets the target operating mode, loads the kernel from disk,

Diff for: src/asm/stage_3.s

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.section .boot, "awx"
2-
.intel_syntax noprefix
32
.code32
43

54
# This stage performs some checks on the CPU (cpuid, long mode), sets up an

Diff for: src/asm/vesa.s

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# Copyright (c) 2017 Redox OS, licensed under MIT License
44

55
.section .boot, "awx"
6-
.intel_syntax noprefix
76
.code16
87

98
vesa:

Diff for: tests/test_kernels/higher_half/src/bin/verify_higher_half.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ fn kernel_main(_boot_info: &'static mut BootInfo) -> ! {
1717

1818
/// This function is called on panic.
1919
#[panic_handler]
20-
fn panic(_info: &PanicInfo) -> ! {
20+
fn panic(info: &PanicInfo) -> ! {
21+
use core::fmt::Write;
22+
23+
let _ = writeln!(test_kernel_higher_half::serial(), "PANIC: {}", info);
2124
exit_qemu(QemuExitCode::Failed);
2225
}

Diff for: tests/test_kernels/higher_half/x86_64-higher_half.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
"disable-redzone": true,
1414
"features": "-mmx,-sse,+soft-float",
1515
"pre-link-args": {
16-
"ld.lld": ["--image-base", "0xFFFF800000000000"]
16+
"ld.lld": ["--image-base", "0xFFFF800000000000", "--gc-sections"]
1717
}
1818
}

Diff for: x86_64-bootloader.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
"linker": "rust-lld",
66
"pre-link-args": {
77
"ld.lld": [
8-
"--script=linker.ld"
9-
]
8+
"--script=linker.ld",
9+
"--gc-sections"
10+
]
1011
},
1112
"target-endian": "little",
1213
"target-pointer-width": "64",
@@ -17,5 +18,5 @@
1718
"disable-redzone": true,
1819
"panic-strategy": "abort",
1920
"executables": true,
20-
"relocation_model": "static"
21+
"relocation_model": "static"
2122
}

0 commit comments

Comments
 (0)