Skip to content

Commit

Permalink
Update toolchain to last night's nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
steveklabnik committed Jul 18, 2022
1 parent 7cdd4b8 commit 02a2f7e
Show file tree
Hide file tree
Showing 24 changed files with 96 additions and 86 deletions.
23 changes: 16 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions app/demo-stm32f4-discovery/app-f3.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ stacksize = 1536
name = "drv-stm32fx-rcc"
features = ["f3"]
priority = 1
max-sizes = {flash = 4096, ram = 1024}
max-sizes = {flash = 8192, ram = 1024}
uses = ["rcc"]
start = true

Expand Down Expand Up @@ -96,4 +96,3 @@ priority = 5
max-sizes = {flash = 128, ram = 256}
stacksize = 256
start = true

2 changes: 1 addition & 1 deletion app/demo-stm32f4-discovery/app.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ stacksize = 1536
name = "drv-stm32fx-rcc"
features = ["f4"]
priority = 1
max-sizes = {flash = 4096, ram = 1024}
max-sizes = {flash = 8192, ram = 1024}
uses = ["rcc"]
start = true

Expand Down
2 changes: 1 addition & 1 deletion app/demo-stm32h7-nucleo/app-h753.toml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ task-slots = ["sys", "hash_driver"]
name = "drv-stm32h7-hash-server"
features = ["h753"]
priority = 3
max-sizes = {flash = 8192, ram=4096 }
max-sizes = {flash = 16384, ram=4096 }
stacksize = 2048
start = true
uses = ["hash"]
Expand Down
2 changes: 1 addition & 1 deletion app/gemini-bu/app.toml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ task-slots = ["sys", "hash_driver"]
name = "drv-stm32h7-hash-server"
features = ["h753"]
priority = 3
max-sizes = {flash = 8192, ram=4096 }
max-sizes = {flash = 16384, ram=4096 }
stacksize = 2048
start = true
uses = ["hash"]
Expand Down
4 changes: 2 additions & 2 deletions app/gimlet/rev-b.toml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ register_defs = "gimlet-regs-b.json"
name = "drv-stm32h7-hash-server"
features = ["h753"]
priority = 2
max-sizes = {flash = 8192, ram=4096 }
max-sizes = {flash = 16384, ram=4096 }
stacksize = 2048
start = true
uses = ["hash"]
Expand Down Expand Up @@ -224,7 +224,7 @@ features = ["vlan"]
[tasks.validate]
name = "task-validate"
priority = 5
max-sizes = {flash = 8192, ram = 4096 }
max-sizes = {flash = 16384, ram = 4096 }
stacksize = 1000
start = true
task-slots = ["i2c_driver"]
Expand Down
4 changes: 2 additions & 2 deletions app/gimletlet/app.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ features = ["stm32h753", "usart2"]
uses = ["usart2"]
interrupts = {"usart2.irq" = 1}
priority = 3
max-sizes = {flash = 8192, ram = 4096}
max-sizes = {flash = 16384, ram = 4096}
stacksize = 2048
start = true
task-slots = ["sys"]
Expand Down Expand Up @@ -185,7 +185,7 @@ task-slots = ["sys", "user_leds"]
[tasks.update_server]
name = "stm32h7-update-server"
priority = 3
max-sizes = {flash = 8192, ram = 4096}
max-sizes = {flash = 16384, ram = 4096}
stacksize = 2048
start = true
uses = ["flash_controller", "bank2"]
Expand Down
2 changes: 1 addition & 1 deletion app/sidecar/app.toml
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ task-slots = ["i2c_driver", "sensor", "sequencer"]
[tasks.validate]
name = "task-validate"
priority = 5
max-sizes = {flash = 8192, ram = 4096 }
max-sizes = {flash = 16384, ram = 4096 }
stacksize = 1000
start = true
task-slots = ["i2c_driver"]
Expand Down
2 changes: 1 addition & 1 deletion build/xtask/src/dist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,6 @@ fn link_task(
name: &str,
allocs: &Allocations,
) -> Result<()> {
println!("linking task '{}'", name);
let task_toml = &cfg.toml.tasks[name];
generate_task_linker_script(
"memory.x",
Expand Down Expand Up @@ -1287,6 +1286,7 @@ fn link(
cmd.arg("-m").arg(m);
cmd.arg("-z").arg("common-page-size=0x20");
cmd.arg("-z").arg("max-page-size=0x20");
cmd.arg("-rustc-lld-flavor=ld");

cmd.current_dir(working_dir);

Expand Down
1 change: 0 additions & 1 deletion drv/lpc55-romapi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

#![feature(asm)]
#![feature(naked_functions)]
#![no_std]

Expand Down
1 change: 0 additions & 1 deletion drv/sidecar-seq-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#![no_std]
#![no_main]
#![feature(destructuring_assignment)]

use crate::clock_generator::ClockGenerator;
use crate::front_io::FrontIOBoard;
Expand Down
2 changes: 1 addition & 1 deletion drv/stm32g0-usart/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ num-traits = { version = "0.2.12", default-features = false }
drv-stm32xx-sys-api = {path = "../stm32xx-sys-api", default-features = false}
stm32g0 = { git = "https://github.com/oxidecomputer/stm32-rs-nightlies", branch = "stm32g0b1-initial-support", default-features = false }
cortex-m = { version = "0.7", features = ["inline-asm"] }
cortex-m-semihosting = { version = "0.3.7", features = ["inline-asm"] }
cortex-m-semihosting = { version = "0.5.0" }

[features]
g031 = ["stm32g0/stm32g031", "drv-stm32xx-sys-api/g031"]
Expand Down
1 change: 1 addition & 0 deletions drv/stm32xx-sys/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#![no_std]
#![no_main]
#![deny(unsafe_op_in_unsafe_fn)]

cfg_if::cfg_if! {
if #[cfg(feature = "family-stm32g0")] {
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[toolchain]
channel = "nightly-2021-09-22"
channel = "nightly-2022-07-17"
targets = [ "thumbv6m-none-eabi", "thumbv7em-none-eabihf", "thumbv8m.main-none-eabihf" ]
profile = "minimal"
components = [ "rustfmt" ]
7 changes: 4 additions & 3 deletions stage0/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

#![feature(cmse_nonsecure_entry)]
#![feature(asm)]
#![feature(naked_functions)]
#![feature(array_methods)]
#![no_main]
#![no_std]

use core::arch;

extern crate lpc55_pac;
extern crate panic_halt;
use cortex_m::peripheral::Peripherals;
Expand Down Expand Up @@ -98,7 +99,7 @@ unsafe fn branch_to_image(image: Image) -> ! {
let stack = image.get_sp();

// and branch
asm!("
arch::asm!("
msr MSP_NS, {stack}
bxns {entry}",
stack = in(reg) stack,
Expand All @@ -125,7 +126,7 @@ unsafe fn branch_to_image(image: Image) -> ! {
let stack = image.get_sp();

// and branch
asm!("
arch::asm!("
msr MSP, {stack}
bx {entry}",
stack = in(reg) stack,
Expand Down
Loading

0 comments on commit 02a2f7e

Please sign in to comment.