Skip to content

Commit c1852c3

Browse files
cargo: bump arm-gic from 0.8.1 to 0.9.0 in /src/exercises/bare-metal/rtc (#3270)
Bumps arm-gic from 0.8.1 to 0.9.0. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Andrew Walbran <qwandor@google.com>
1 parent a585edc commit c1852c3

3 files changed

Lines changed: 51 additions & 12 deletions

File tree

src/exercises/bare-metal/rtc/Cargo.lock

Lines changed: 47 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/exercises/bare-metal/rtc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ publish = false
99
[dependencies]
1010
aarch64-paging = { version = "0.12.1", default-features = false }
1111
aarch64-rt = "0.4.3"
12-
arm-gic = "0.8.1"
12+
arm-gic = "0.9.0"
1313
arm-pl011-uart = "0.5.0"
1414
bitflags = "2.11.1"
1515
chrono = { version = "0.4.44", default-features = false }

src/exercises/bare-metal/rtc/src/main.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,9 @@ fn main(x0: u64, x1: u64, x2: u64, x3: u64) -> ! {
9393
// addresses of a GICv3 distributor and redistributor respectively, and
9494
// nothing else accesses those address ranges.
9595
let mut gic = unsafe {
96-
GicV3::new(
97-
UniqueMmioPointer::new(GICD_BASE_ADDRESS),
98-
GICR_BASE_ADDRESS,
99-
1,
100-
false,
101-
)
102-
};
96+
GicV3::new(UniqueMmioPointer::new(GICD_BASE_ADDRESS), GICR_BASE_ADDRESS, 1)
97+
}
98+
.unwrap();
10399
gic.setup(0);
104100
// ANCHOR_END: main
105101

0 commit comments

Comments
 (0)