Skip to content

Commit b9b1733

Browse files
authored
Merge pull request #61 from rust-osdev/next
This Month in Rust OSDev (June 2021)
2 parents f821262 + 5c6d476 commit b9b1733

File tree

1 file changed

+142
-0
lines changed

1 file changed

+142
-0
lines changed

content/this-month/2021-06/index.md

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
+++
2+
title = "This Month in Rust OSDev (June 2021)"
3+
date = 0000-01-01
4+
5+
[extra]
6+
month = "June 2021"
7+
authors = [
8+
"phil-opp",
9+
"IsaacWoods",
10+
# add yourself here
11+
]
12+
+++
13+
14+
Welcome to a new issue of _"This Month in Rust OSDev"_. In these posts, we give a regular overview of notable changes in the Rust operating system development ecosystem.
15+
16+
<!-- more -->
17+
18+
This series is openly developed [on GitHub](https://github.com/rust-osdev/homepage/). Feel free to open pull requests there with content you would like to see in the next issue. If you find some issues on this page, please report them by [creating an issue](https://github.com/rust-osdev/homepage/issues/new) or using our [_comment form_](#comment-form) at the bottom of this page.
19+
20+
<!--
21+
This is a draft for the upcoming "This Month in Rust OSDev (June 2021)" post.
22+
Feel free to create pull requests against the `next` branch to add your
23+
content here.
24+
Please take a look at the past posts on https://rust-osdev.com/ to see the
25+
general structure of these posts.
26+
-->
27+
28+
## Project Updates
29+
30+
In this section, we give an overview of notable changes to the projects hosted under the [`rust-osdev`] organization.
31+
32+
[`rust-osdev`]: https://github.com/rust-osdev/about
33+
34+
### [`acpi`](https://github.com/rust-osdev/acpi)
35+
36+
The `acpi` repository contains crates for parsing the ACPI tables – data structures that the firmware of modern computers use to relay information about the hardware to the OS.
37+
38+
This month, both the `rsdp` and `acpi` crates saw breaking changes. These changes should require minimal work to migrate to;
39+
please file an issue if you encounter any difficulties. <span class="gray">(published as `rsdp v2.0.0` and `acpi v3.0.0`)</span>
40+
41+
- [Basic support for the MADT's new Multiprocessor Wakeup Structure was added](https://github.com/rust-osdev/acpi/pull/99)
42+
- [`PhysicalMapping` now implements `Send`](https://github.com/rust-osdev/acpi/pull/101)
43+
- [`PhysicalMapping`'s fields were made private, preventing construction of unsound mappings in safe code](https://github.com/rust-osdev/acpi/pull/102).
44+
The `unmap_physical_region` method of `AcpiHandler` also lost its `self` type - handlers that used `self` should
45+
instead access themselves through the `PhysicalMapping::handler` method. This prevents a mapping from being
46+
unmapped using a different handler to the one that mapped it.
47+
- [Accesses to potentially unaligned packed field were fixed](https://github.com/rust-osdev/acpi/commit/d58e64b39e9f22367bc76b64a68826a519615226).
48+
`repr(packed)` structures are very common in OS Dev, and make sure the layout of Rust's structures matches the
49+
hardware's. Unfortunately, they can be slightly tricky to work with - creating an unaligned reference is
50+
undefined behaviour, and references can transiently be created by, for example, calling a method on an unaligned
51+
field of a packed structure (e.g. `entry.flags.get_bit(4)`). You can read more about this issue [here](https://github.com/rust-lang/rust/issues/82523).
52+
- [`acpi::platform` no longer re-exports the contents of its `interrupt` submodule](https://github.com/rust-osdev/acpi/commit/fdd88add32497411d439c2d18fe28258a3fe6525)
53+
54+
Thanks to [@wusyong](https://github.com/wusyong) and [@Freax13](https://github.com/wusyong) for their contributions!
55+
56+
57+
### [`uefi-rs`](https://github.com/rust-osdev/uefi-rs)
58+
59+
The `uefi` crate provides safe and performant wrappers for [UEFI](https://en.wikipedia.org/wiki/Unified_Extensible_Firmware_Interface), the successor to the BIOS. In June, we merged the following changes:
60+
61+
- [Make the `qemu-exit` dependency optional](https://github.com/rust-osdev/uefi-rs/pull/229)
62+
- [Fix type of the media field in the `BlockIO` protocol](https://github.com/rust-osdev/uefi-rs/pull/234)
63+
- [Use `newtype_enum` for `DevicePath` enums](https://github.com/rust-osdev/uefi-rs/pull/230)
64+
- [Make `DevicePath` and `AcpiDevicePath` unaligned](https://github.com/rust-osdev/uefi-rs/pull/231)
65+
- [Derive `Debug` for `CharConversionError`](https://github.com/rust-osdev/uefi-rs/pull/233)
66+
- [Rename boot services' `memset` to `set_mem`](https://github.com/rust-osdev/uefi-rs/pull/235)
67+
- [Implement image loading/starting](https://github.com/rust-osdev/uefi-rs/pull/237)
68+
- [Add `num_blocks` method to `GptPartitionEntry`](https://github.com/rust-osdev/uefi-rs/pull/238)
69+
- [`ShimLock` protocol uses `sysv64` function ABI](https://github.com/rust-osdev/uefi-rs/pull/227)
70+
- [Make using the `stdio` handles require a mutable ref](https://github.com/rust-osdev/uefi-rs/pull/240)
71+
- [Fix AArch64 build](https://github.com/rust-osdev/uefi-rs/pull/243)
72+
73+
Thanks to [@nicholasbishop](https://github.com/nicholasbishop), [@iankronquist](https://github.com/iankronquist) and [@josephlr](https://github.com/josephlr) for their contributions!
74+
75+
### [`x86_64`](https://github.com/rust-osdev/x86_64)
76+
77+
The `x86_64` crate provides various abstractions for `x86_64` systems, including wrappers for CPU instructions, access to processor-specific registers, and abstraction types for architecture-specific structures such as page tables and descriptor tables.
78+
79+
In June, we merged the following changes:
80+
81+
- [Add common abstractions for x86 Segments](https://github.com/rust-osdev/x86_64/pull/258)
82+
- [Specify sysv64 for the calling convention of the external assembly functions](https://github.com/rust-osdev/x86_64/pull/267)
83+
- [Make IDT module available on stable Rust](https://github.com/rust-osdev/x86_64/pull/271)
84+
- [Fix off-by-one error in GDT `from_raw_slice()`](https://github.com/rust-osdev/x86_64/pull/269)
85+
86+
We did not issue a new crates.io release with these changes yet, but we plan to do so soon.
87+
88+
Thanks to [@toku-sa-n](https://github.com/toku-sa-n) for their contribution!
89+
90+
## Call for Participation
91+
92+
Want to contribute to a Rust OSDev project, but don't know where to start? Pick up one of these outstanding
93+
issues in one of our projects and get started!
94+
95+
<!--
96+
Please use the following template for adding items:
97+
98+
> **[`repo_name`](link-to-repo):**
99+
>
100+
> - [Issue Description](https://example.com/link-to-issue)
101+
-->
102+
103+
**[`phil-opp/blog_os`](https://github.com/phil-opp/blog_os):**
104+
105+
- [New Russian translation needs a reviewer](https://github.com/phil-opp/blog_os/pull/1029): We're looking for someone that is speaking Russian to review the new Russian translation of [@MrZloHex](https://github.com/MrZloHex).
106+
107+
If you maintain a Rust OSDev project and are looking for contributors, especially for tasks suited to people
108+
getting started in this space, please [create a PR](https://github.com/rust-osdev/homepage/pulls) against the
109+
`next` branch with the tasks you want to include in the next issue.
110+
111+
## Personal Projects
112+
113+
In this section, we describe updates to personal projects that are not directly related to the `rust-osdev` organization. Feel free to [create a pull request](https://github.com/rust-osdev/homepage/pulls) with the updates of your OS project for the next post.
114+
115+
### [`phil-opp/blog_os`](https://github.com/phil-opp/blog_os)
116+
117+
<span class="gray">(Section written by [@phil-opp](https://github.com/phil-opp))</span>
118+
119+
The [_Writing an OS in Rust_](https://os.phil-opp.com/) blog received the following changes this month:
120+
121+
- [Switch comments from utterances to giscus](https://github.com/phil-opp/blog_os/pull/996)
122+
- [giscus: Use specific search term instead of `og:title`](https://github.com/phil-opp/blog_os/pull/1007)
123+
- [giscus: Make it possible to set discussion thread manually per post](https://github.com/phil-opp/blog_os/pull/1010)
124+
- [Translate `post-12` to Japanese](https://github.com/phil-opp/blog_os/pull/977)
125+
- Lots of smaller improvements and typo fixes: [#1021](https://github.com/phil-opp/blog_os/pull/1021), [#1023](https://github.com/phil-opp/blog_os/pull/1023), [#1026](https://github.com/phil-opp/blog_os/pull/1026), [#1028](https://github.com/phil-opp/blog_os/pull/1028), [#1032](https://github.com/phil-opp/blog_os/pull/1032)
126+
127+
Thanks to:
128+
129+
- [@kahirokunn](https://github.com/kahirokunn) for the new Japanese translation,
130+
- [@woodyZootopia](https://github.com/woodyZootopia), [@JohnTitor](https://github.com/JohnTitor), and [@sozysozbot](https://github.com/sozysozbot) for reviewing this translation, and
131+
- [@Foo-x](https://github.com/Foo-x), [@tsao-chi](https://github.com/tsao-chi), and [@conorbros](https://github.com/conorbros) for fixing typos.
132+
133+
Unfortunately, I didn't have time to work on the upcoming third edition this month. I'll try my best to continue working on it soon!
134+
135+
## Join Us?
136+
137+
Are you interested in Rust-based operating system development? Our `rust-osdev` organization is always open to new members and new projects. Just let us know if you want to join! A good way for getting in touch is our [gitter channel](https://gitter.im/rust-osdev/Lobby).
138+
139+
140+
<!--
141+
TODO: Update publication date
142+
-->

0 commit comments

Comments
 (0)