Skip to content

Commit 7fa88e9

Browse files
committed
Merge branch 'master' into next
2 parents 8468914 + 7f4d2bb commit 7fa88e9

File tree

20 files changed

+549
-121
lines changed

20 files changed

+549
-121
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ jobs:
2626
- nightly
2727
- 1.59
2828
runs-on: ubuntu-latest
29+
env:
30+
# rustup prioritizes environment variables over rust-toolchain.toml files.
31+
RUSTUP_TOOLCHAIN: ${{ matrix.rust }}
2932
steps:
3033
- uses: actions/checkout@v4
3134
- uses: dtolnay/rust-toolchain@master
@@ -53,7 +56,7 @@ jobs:
5356
- uses: actions/checkout@v4
5457
- uses: dtolnay/rust-toolchain@nightly
5558
with:
56-
targets: x86_64-unknown-linux-musl, i686-unknown-linux-gnu, thumbv7em-none-eabihf
59+
targets: x86_64-unknown-linux-musl, i686-unknown-linux-musl, thumbv7em-none-eabihf
5760

5861
- run: cargo build
5962

@@ -69,9 +72,12 @@ jobs:
6972

7073
- name: "Build on non x86_64 platforms"
7174
run: |
72-
cargo build --target i686-unknown-linux-gnu --no-default-features --features nightly
75+
cargo build --target i686-unknown-linux-musl --no-default-features --features nightly
7376
cargo build --target thumbv7em-none-eabihf --no-default-features --features nightly
7477
78+
- run: cargo test --target i686-unknown-linux-musl --no-default-features --features nightly
79+
if: runner.os == 'Linux'
80+
7581
bootloader-test:
7682
name: "Bootloader Integration Test"
7783

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ license = "MIT/Apache-2.0"
1515
name = "x86_64"
1616
readme = "README.md"
1717
repository = "https://github.com/rust-osdev/x86_64"
18-
version = "0.15.1"
18+
version = "0.15.2"
1919
edition = "2018"
2020
rust-version = "1.59" # Needed to support inline asm and default const generics
2121

@@ -28,8 +28,9 @@ rustversion = "1.0.5"
2828
[features]
2929
default = ["nightly", "instructions"]
3030
instructions = []
31-
nightly = [ "const_fn", "step_trait", "abi_x86_interrupt", "asm_const" ]
31+
nightly = ["const_fn", "step_trait", "abi_x86_interrupt", "asm_const"]
3232
abi_x86_interrupt = []
33+
# deprecated, no longer needed
3334
const_fn = []
3435
asm_const = []
3536
step_trait = []

Changelog.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,46 @@
55
- [add `Mapper::clear` to clear any page table entry regardless of the present flag](https://github.com/rust-osdev/x86_64/pull/484)
66
- [`Mapper::unmap` now also returns the flags of the page ](https://github.com/rust-osdev/x86_64/pull/484)
77

8+
# 0.15.2 – 2024-11-30
9+
10+
This release is compatible with Rust nightlies starting with `nightly-2024-11-23` (this only applies when the `nightly` feature is used).
11+
12+
## New Features
13+
14+
- [add `GlobalDescriptorTable::limit`](https://github.com/rust-osdev/x86_64/pull/413)
15+
- [constify PhysFrame functions](https://github.com/rust-osdev/x86_64/pull/489)
16+
- [add `size` and `len` for `PageRange`, `PhysFrameRange`, `PageRangeInclusive` and `PhysFrameRangeInclusive`](https://github.com/rust-osdev/x86_64/pull/491)
17+
- [TryFrom implementation for ExceptionVector](https://github.com/rust-osdev/x86_64/pull/506)
18+
19+
## Fixes
20+
21+
- [Only enable instructions on `x86_64`](https://github.com/rust-osdev/x86_64/pull/483)
22+
- [Ensure that Page actually implements Hash](https://github.com/rust-osdev/x86_64/pull/490)
23+
- [fix field order for INVPCID descriptor](https://github.com/rust-osdev/x86_64/pull/508)
24+
- [fix typo in "InvPicdCommand"](https://github.com/rust-osdev/x86_64/pull/509)
25+
- [fix signature of Step::steps_between implementations](https://github.com/rust-osdev/x86_64/pull/513)
26+
27+
## Other Improvements
28+
29+
- [docs: add aliases for `in{,b,w,l}` and `out{,b,w,l}`](https://github.com/rust-osdev/x86_64/pull/474)
30+
- [ci: migrate away from unmaintained actions](https://github.com/rust-osdev/x86_64/pull/478)
31+
- [chore: migrate from legacy `rust-toolchain` to `rust-toolchain.toml`](https://github.com/rust-osdev/x86_64/pull/479)
32+
- [test: replace `x86_64-bare-metal.json` with `x86_64-unknown-none`](https://github.com/rust-osdev/x86_64/pull/477)
33+
- [docs: fix and detect warnings](https://github.com/rust-osdev/x86_64/pull/475)
34+
- [CI: Set `-Crelocation-model=static` in `RUSTFLAGS` for bootloader test job](https://github.com/rust-osdev/x86_64/pull/480)
35+
- [silence warning about cast](https://github.com/rust-osdev/x86_64/pull/482)
36+
- [fix cfg related warnings](https://github.com/rust-osdev/x86_64/pull/485)
37+
- [fix warnings](https://github.com/rust-osdev/x86_64/pull/488)
38+
- [don't use label starting with 1](https://github.com/rust-osdev/x86_64/pull/492)
39+
- [fix testing](https://github.com/rust-osdev/x86_64/pull/495)
40+
- [remove `#![feature(asm_const)]`](https://github.com/rust-osdev/x86_64/pull/496)
41+
- [Remove stabilized const_mut_refs feature](https://github.com/rust-osdev/x86_64/pull/501)
42+
- [Fix clippy warnings](https://github.com/rust-osdev/x86_64/pull/502)
43+
- [fix CI job for building on MSRV](https://github.com/rust-osdev/x86_64/pull/510)
44+
- [gate HandlerFunc behind target_arch = "x86{\_64}"](https://github.com/rust-osdev/x86_64/pull/507)
45+
- [Typo fix in TaskStateSegment comment](https://github.com/rust-osdev/x86_64/pull/504)
46+
- [Minor clarification DescriptorTablePointer::limit comment](https://github.com/rust-osdev/x86_64/pull/503)
47+
848
# 0.15.1 – 2024-03-19
949

1050
## New Features

0 commit comments

Comments
 (0)