Skip to content

Commit 688fb79

Browse files
committed
fix: remove r0
Signed-off-by: YdrMaster <[email protected]>
1 parent 38606f6 commit 688fb79

File tree

3 files changed

+7
-17
lines changed

3 files changed

+7
-17
lines changed

Cargo.lock

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

linker/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ authors = ["YdrMaster <[email protected]>"]
77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

99
[dependencies]
10-
r0 = "1.0.0"

linker/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ impl KernelLayout {
161161
/// 清零 .bss 段。
162162
#[inline]
163163
pub unsafe fn zero_bss(&self) {
164-
r0::zero_bss::<u64>(self.sbss as _, self.ebss as _);
164+
core::slice::from_raw_parts_mut(self.sbss as *mut u8, self.ebss - self.sbss).fill(0);
165165
}
166166

167167
/// 内核区段迭代器。

0 commit comments

Comments
 (0)