Skip to content

Commit 764dae7

Browse files
committed
cleanup
Signed-off-by: YdrMaster <[email protected]>
1 parent c4e908d commit 764dae7

File tree

5 files changed

+155
-486
lines changed

5 files changed

+155
-486
lines changed

rustsbi-qemu/build.rs

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,25 @@ MEMORY {
1414
DRAM : ORIGIN = 0x80000000, LENGTH = 2M
1515
}
1616
SECTIONS {
17-
.text : ALIGN(4) {
17+
.text : {
1818
*(.text.entry)
1919
*(.text .text.*)
2020
} > DRAM
21-
.rodata : ALIGN(8) {
22-
srodata = .;
21+
.rodata : {
2322
*(.rodata .rodata.*)
2423
*(.srodata .srodata.*)
25-
. = ALIGN(8);
26-
erodata = .;
2724
} > DRAM
28-
.data : ALIGN(8) {
29-
sdata = .;
25+
.data : {
3026
*(.data .data.*)
3127
*(.sdata .sdata.*)
32-
. = ALIGN(8);
33-
edata = .;
3428
} > DRAM
35-
.bss (NOLOAD) : ALIGN(8) {
29+
.bss (NOLOAD) : {
3630
*(.bss.uninit)
31+
. = ALIGN(8);
3732
sbss = .;
3833
*(.bss .bss.*)
3934
*(.sbss .sbss.*)
35+
. = ALIGN(8);
4036
ebss = .;
4137
} > DRAM
4238
/DISCARD/ : {

rustsbi-qemu/src/clint.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(unused)]
2+
13
use core::cell::UnsafeCell;
24
use rustsbi::{spec::binary::SbiRet, HartMask, Ipi, Timer};
35

@@ -34,7 +36,6 @@ pub(crate) fn init(base: usize) {
3436
unsafe { *BASE.get() = base };
3537
}
3638

37-
#[allow(unused)]
3839
pub mod mtime {
3940
#[inline]
4041
pub fn read() -> u64 {

0 commit comments

Comments
 (0)