fix ci/cd error (#195)

* fix ci/cd error

* update copyright year

* Modify remaining years

* solve ci report settings.json code style

* update .prettierrc.json

* prettierrc fix code style

* fix rb file i.to_s and code style

* fix error Line is too long. [101/100]

* Modify the Ruby file format and restore other file formats

* update makefile and readme file space
pull/196/head
James Zow 8 months ago committed by GitHub
parent 49a25275e6
commit 52b7ac9b2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3,7 +3,7 @@
# SPDX-License-Identifier: MIT OR Apache-2.0
#
# Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
# Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
require_relative '../utils/devtool/copyright'
@ -23,9 +23,9 @@ def copyright_check(staged_files)
copyright_check_files(staged_files)
end
##--------------------------------------------------------------------------------------------------
## -------------------------------------------------------------------------------------------------
## Execution starts here
##--------------------------------------------------------------------------------------------------
## -------------------------------------------------------------------------------------------------
staged_files = `git --no-pager diff --name-only --cached --diff-filter=d`.split(/\n/)
root_dir = `git rev-parse --show-toplevel`.strip

@ -1,40 +1,40 @@
name: BSP-RPi3
on:
push:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
pull_request:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
schedule:
- cron: "0 5 * * *"
push:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
pull_request:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
schedule:
- cron: "0 5 * * *"
jobs:
build:
name: Build kernels
runs-on: ubuntu-22.04
build:
name: Build kernels
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: Set up Rust nightly
run: |
cargo install cargo-binutils rustfilt
- name: Set up Ruby
run: |
gem install bundler
bundle config set without 'uart'
bundle install --retry 3
- name: Run
run: |
BSP=rpi3 bundle exec ruby utils/devtool.rb make
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: Set up Rust nightly
run: |
cargo install cargo-binutils rustfilt
- name: Set up Ruby
run: |
gem install bundler
bundle config set without 'uart'
bundle install --retry 3
- name: Run
run: |
BSP=rpi3 bundle exec ruby utils/devtool.rb make

@ -1,40 +1,40 @@
name: BSP-RPi4
on:
push:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
pull_request:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
schedule:
- cron: "0 5 * * *"
push:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
pull_request:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
schedule:
- cron: "0 5 * * *"
jobs:
build:
name: Build kernels
runs-on: ubuntu-22.04
build:
name: Build kernels
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: Set up Rust nightly
run: |
cargo install cargo-binutils rustfilt
- name: Set up Ruby
run: |
gem install bundler
bundle config set without 'uart'
bundle install --retry 3
- name: Run
run: |
BSP=rpi4 bundle exec ruby utils/devtool.rb make
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: Set up Rust nightly
run: |
cargo install cargo-binutils rustfilt
- name: Set up Ruby
run: |
gem install bundler
bundle config set without 'uart'
bundle install --retry 3
- name: Run
run: |
BSP=rpi4 bundle exec ruby utils/devtool.rb make

@ -1,46 +1,46 @@
name: Various Sanity Checks
on:
push:
branches:
- master
pull_request:
branches:
- master
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: Various Sanity Checks
runs-on: ubuntu-22.04
build:
name: Various Sanity Checks
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: "16"
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: Set up Rust nightly
run: |
rustup component add clippy
- name: Set up Bundler
run: |
gem install bundler
bundle config set without 'uart'
bundle install --retry 3
- name: Set up Prettier
run: |
npm install prettier
- name: Setup misspell
run: |
curl -L -o ./install-misspell.sh https://raw.githubusercontent.com/client9/misspell/master/install-misspell.sh
sh ./install-misspell.sh -b .vendor
- name: Run checks
run: |
BSP=rpi3 bundle exec ruby utils/devtool.rb clippy
BSP=rpi4 bundle exec ruby utils/devtool.rb clippy
bundle exec ruby utils/devtool.rb copyright
bundle exec ruby utils/devtool.rb fmt_check
bundle exec ruby utils/devtool.rb misspell
bundle exec ruby utils/devtool.rb rubocop
steps:
- uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: "16"
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: Set up Rust nightly
run: |
rustup component add clippy
- name: Set up Bundler
run: |
gem install bundler
bundle config set without 'uart'
bundle install --retry 3
- name: Set up Prettier
run: |
npm install prettier
- name: Setup misspell
run: |
curl -L -o ./install-misspell.sh https://raw.githubusercontent.com/client9/misspell/master/install-misspell.sh
sh ./install-misspell.sh -b .vendor
- name: Run checks
run: |
BSP=rpi3 bundle exec ruby utils/devtool.rb clippy
BSP=rpi4 bundle exec ruby utils/devtool.rb clippy
bundle exec ruby utils/devtool.rb copyright
bundle exec ruby utils/devtool.rb fmt_check
bundle exec ruby utils/devtool.rb misspell
bundle exec ruby utils/devtool.rb rubocop

@ -1,40 +1,40 @@
name: Integration-Tests
on:
push:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
pull_request:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
schedule:
- cron: "0 5 * * *"
push:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
pull_request:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
schedule:
- cron: "0 5 * * *"
jobs:
build:
name: Run integration tests
runs-on: ubuntu-22.04
build:
name: Run integration tests
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: Set up Rust nightly
run: |
cargo install cargo-binutils rustfilt
- name: Set up Ruby
run: |
gem install bundler
bundle config set without 'uart'
bundle install --retry 3
- name: Run
run: |
bundle exec ruby utils/devtool.rb test_integration
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: Set up Rust nightly
run: |
cargo install cargo-binutils rustfilt
- name: Set up Ruby
run: |
gem install bundler
bundle config set without 'uart'
bundle install --retry 3
- name: Run
run: |
bundle exec ruby utils/devtool.rb test_integration

@ -1,41 +1,41 @@
name: Boot-and-Unit-Tests
on:
push:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
pull_request:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
schedule:
- cron: "0 5 * * *"
push:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
pull_request:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
schedule:
- cron: "0 5 * * *"
jobs:
build:
name: Run boot and unit tests
runs-on: ubuntu-22.04
build:
name: Run boot and unit tests
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: Set up Rust nightly
run: |
cargo install cargo-binutils rustfilt
- name: Set up Ruby
run: |
gem install bundler
bundle config set without 'uart'
bundle install --retry 3
- name: Run
run: |
bundle exec ruby utils/devtool.rb test_boot
bundle exec ruby utils/devtool.rb test_unit
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: Set up Rust nightly
run: |
cargo install cargo-binutils rustfilt
- name: Set up Ruby
run: |
gem install bundler
bundle config set without 'uart'
bundle install --retry 3
- name: Run
run: |
bundle exec ruby utils/devtool.rb test_boot
bundle exec ruby utils/devtool.rb test_unit

@ -1,40 +1,40 @@
name: Xtra-Tests
on:
push:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
pull_request:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
schedule:
- cron: "0 5 * * *"
push:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
pull_request:
branches:
- master
paths-ignore:
- "utils/**"
- "doc/**"
- "docker/**"
schedule:
- cron: "0 5 * * *"
jobs:
build:
name: Run xtra tests
runs-on: ubuntu-22.04
build:
name: Run xtra tests
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: Set up Rust nightly
run: |
cargo install cargo-binutils
- name: Set up Ruby
run: |
gem install bundler
bundle config set without 'uart'
bundle install --retry 3
- name: Run
run: |
bundle exec ruby utils/devtool.rb make_xtra
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: Set up Rust nightly
run: |
cargo install cargo-binutils
- name: Set up Ruby
run: |
gem install bundler
bundle config set without 'uart'
bundle install --retry 3
- name: Run
run: |
bundle exec ruby utils/devtool.rb make_xtra

@ -1 +1,35 @@
{}
{
"printWidth": 100,
"tabWidth": 4,
"useTabs": false,
"semi": true,
"singleQuote": false,
"trailingComma": "es5",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "always",
"requirePragma": false,
"insertPragma": false,
"proseWrap": "preserve",
"endOfLine": "auto",
"overrides": [
{
"files": "*.rs",
"options": {
"printWidth": 100,
"tabWidth": 4,
"useTabs": false,
"semi": true,
"singleQuote": false,
"trailingComma": "es5",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "always",
"requirePragma": false,
"insertPragma": false,
"proseWrap": "preserve",
"endOfLine": "auto"
}
}
]
}

@ -10,23 +10,23 @@
# See https://github.com/rubocop-hq/rubocop/blob/master/manual/configuration.md
Layout/IndentationWidth:
Width: 4
AllowedPatterns: ['^\s*module']
Width: 4
AllowedPatterns: ['^\s*module']
Layout/LineLength:
Max: 100
Max: 100
Lint/UnusedMethodArgument:
AutoCorrect: False
AutoCorrect: False
Metrics/AbcSize:
Max: 25
Max: 25
Metrics/ClassLength:
Enabled: false
Enabled: false
Metrics/MethodLength:
Max: 20
Max: 20
AllCops:
NewCops: enable
NewCops: enable

@ -1,10 +1,10 @@
{
"editor.formatOnSave": true,
"editor.rulers": [100],
"rust-analyzer.cargo.target": "aarch64-unknown-none-softfloat",
"rust-analyzer.cargo.features": ["bsp_rpi3"],
"rust-analyzer.checkOnSave.allTargets": false,
"rust-analyzer.checkOnSave.extraArgs": ["--lib", "--bins"],
"rust-analyzer.lens.debug": false,
"rust-analyzer.lens.run": false
"editor.formatOnSave": true,
"editor.rulers": [100],
"rust-analyzer.cargo.target": "aarch64-unknown-none-softfloat",
"rust-analyzer.cargo.features": ["bsp_rpi3"],
"rust-analyzer.checkOnSave.allTargets": false,
"rust-analyzer.checkOnSave.extraArgs": ["--lib", "--bins"],
"rust-analyzer.lens.debug": false,
"rust-analyzer.lens.run": false
}

@ -1,10 +1,10 @@
{
"editor.formatOnSave": true,
"editor.rulers": [100],
"rust-analyzer.cargo.target": "aarch64-unknown-none-softfloat",
"rust-analyzer.cargo.features": ["bsp_rpi3"],
"rust-analyzer.checkOnSave.allTargets": false,
"rust-analyzer.checkOnSave.extraArgs": ["--bins"],
"rust-analyzer.lens.debug": false,
"rust-analyzer.lens.run": false
"editor.formatOnSave": true,
"editor.rulers": [100],
"rust-analyzer.cargo.target": "aarch64-unknown-none-softfloat",
"rust-analyzer.cargo.features": ["bsp_rpi3"],
"rust-analyzer.checkOnSave.allTargets": false,
"rust-analyzer.checkOnSave.extraArgs": ["--bins"],
"rust-analyzer.lens.debug": false,
"rust-analyzer.lens.run": false
}

@ -20,4 +20,4 @@ path = "src/main.rs"
## Dependencies
##--------------------------------------------------------------------------------------------------
[dependencies]
[dependencies]

@ -1,6 +1,6 @@
## SPDX-License-Identifier: MIT OR Apache-2.0
##
## Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
## Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
include ../common/docker.mk
include ../common/format.mk

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2021-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2021-2023 Andre Richter <andre.o.richter@gmail.com>
//! Architectural boot code.
//!

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2021-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2021-2023 Andre Richter <andre.o.richter@gmail.com>
//--------------------------------------------------------------------------------------------------
// Public Code

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! Conditional reexporting of Board Support Packages.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! Top-level BSP file for the Raspberry Pi 3 and 4.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2020-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2020-2023 Andre Richter <andre.o.richter@gmail.com>
//! Processor code.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2021-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2021-2023 Andre Richter <andre.o.richter@gmail.com>
//! Boot code.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
// Rust embedded logo for `make doc`.
#![doc(

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! A panic handler that infinitely waits.

@ -1,10 +1,10 @@
{
"editor.formatOnSave": true,
"editor.rulers": [100],
"rust-analyzer.cargo.target": "aarch64-unknown-none-softfloat",
"rust-analyzer.cargo.features": ["bsp_rpi3"],
"rust-analyzer.checkOnSave.allTargets": false,
"rust-analyzer.checkOnSave.extraArgs": ["--bins"],
"rust-analyzer.lens.debug": false,
"rust-analyzer.lens.run": false
"editor.formatOnSave": true,
"editor.rulers": [100],
"rust-analyzer.cargo.target": "aarch64-unknown-none-softfloat",
"rust-analyzer.cargo.features": ["bsp_rpi3"],
"rust-analyzer.checkOnSave.allTargets": false,
"rust-analyzer.checkOnSave.extraArgs": ["--bins"],
"rust-analyzer.lens.debug": false,
"rust-analyzer.lens.run": false
}

@ -1,6 +1,6 @@
## SPDX-License-Identifier: MIT OR Apache-2.0
##
## Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
## Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
include ../common/docker.mk
include ../common/format.mk

@ -58,7 +58,6 @@ diff -uNr 01_wait_forever/Makefile 02_runtime_init/Makefile
--section .text \
+ --section .rodata \
$(KERNEL_ELF) | rustfilt
##------------------------------------------------------------------------------
diff -uNr 01_wait_forever/src/_arch/aarch64/cpu/boot.rs 02_runtime_init/src/_arch/aarch64/cpu/boot.rs
@ -90,7 +89,7 @@ diff -uNr 01_wait_forever/src/_arch/aarch64/cpu/boot.s 02_runtime_init/src/_arch
--- 01_wait_forever/src/_arch/aarch64/cpu/boot.s
+++ 02_runtime_init/src/_arch/aarch64/cpu/boot.s
@@ -3,6 +3,22 @@
// Copyright (c) 2021-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2021-2023 Andre Richter <andre.o.richter@gmail.com>
//--------------------------------------------------------------------------------------------------
+// Definitions
@ -154,7 +153,7 @@ diff -uNr 01_wait_forever/src/_arch/aarch64/cpu.rs 02_runtime_init/src/_arch/aar
@@ -0,0 +1,26 @@
+// SPDX-License-Identifier: MIT OR Apache-2.0
+//
+// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
+// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
+
+//! Architectural processor code.
+//!
@ -185,7 +184,7 @@ diff -uNr 01_wait_forever/src/bsp/raspberrypi/cpu.rs 02_runtime_init/src/bsp/ras
@@ -0,0 +1,14 @@
+// SPDX-License-Identifier: MIT OR Apache-2.0
+//
+// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
+// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
+
+//! BSP Processor code.
+
@ -202,7 +201,7 @@ diff -uNr 01_wait_forever/src/bsp/raspberrypi/kernel.ld 02_runtime_init/src/bsp/
--- 01_wait_forever/src/bsp/raspberrypi/kernel.ld
+++ 02_runtime_init/src/bsp/raspberrypi/kernel.ld
@@ -3,6 +3,8 @@
* Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
* Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
*/
+__rpi_phys_dram_start_addr = 0;

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! Architectural processor code.
//!

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2021-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2021-2023 Andre Richter <andre.o.richter@gmail.com>
//! Architectural boot code.
//!

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! Conditional reexporting of Board Support Packages.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! Top-level BSP file for the Raspberry Pi 3 and 4.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! BSP Processor code.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2020-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2020-2023 Andre Richter <andre.o.richter@gmail.com>
//! Processor code.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2021-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2021-2023 Andre Richter <andre.o.richter@gmail.com>
//! Boot code.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
// Rust embedded logo for `make doc`.
#![doc(

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! A panic handler that infinitely waits.

@ -1,10 +1,10 @@
{
"editor.formatOnSave": true,
"editor.rulers": [100],
"rust-analyzer.cargo.target": "aarch64-unknown-none-softfloat",
"rust-analyzer.cargo.features": ["bsp_rpi3"],
"rust-analyzer.checkOnSave.allTargets": false,
"rust-analyzer.checkOnSave.extraArgs": ["--bins"],
"rust-analyzer.lens.debug": false,
"rust-analyzer.lens.run": false
"editor.formatOnSave": true,
"editor.rulers": [100],
"rust-analyzer.cargo.target": "aarch64-unknown-none-softfloat",
"rust-analyzer.cargo.features": ["bsp_rpi3"],
"rust-analyzer.checkOnSave.allTargets": false,
"rust-analyzer.checkOnSave.extraArgs": ["--bins"],
"rust-analyzer.lens.debug": false,
"rust-analyzer.lens.run": false
}

@ -1,6 +1,6 @@
## SPDX-License-Identifier: MIT OR Apache-2.0
##
## Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
## Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
include ../common/docker.mk
include ../common/format.mk

@ -130,7 +130,7 @@ diff -uNr 02_runtime_init/src/bsp/raspberrypi/console.rs 03_hacky_hello_world/sr
@@ -0,0 +1,47 @@
+// SPDX-License-Identifier: MIT OR Apache-2.0
+//
+// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
+// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
+
+//! BSP console facilities.
+
@ -192,7 +192,7 @@ diff -uNr 02_runtime_init/src/console.rs 03_hacky_hello_world/src/console.rs
@@ -0,0 +1,32 @@
+// SPDX-License-Identifier: MIT OR Apache-2.0
+//
+// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
+// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
+
+//! System console.
+
@ -327,7 +327,7 @@ diff -uNr 02_runtime_init/src/print.rs 03_hacky_hello_world/src/print.rs
@@ -0,0 +1,38 @@
+// SPDX-License-Identifier: MIT OR Apache-2.0
+//
+// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
+// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
+
+//! Printing.
+

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! Architectural processor code.
//!

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2021-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2021-2023 Andre Richter <andre.o.richter@gmail.com>
//! Architectural boot code.
//!

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! Conditional reexporting of Board Support Packages.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! Top-level BSP file for the Raspberry Pi 3 and 4.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! BSP console facilities.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! BSP Processor code.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! System console.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2020-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2020-2023 Andre Richter <andre.o.richter@gmail.com>
//! Processor code.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2021-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2021-2023 Andre Richter <andre.o.richter@gmail.com>
//! Boot code.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
// Rust embedded logo for `make doc`.
#![doc(

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! A panic handler that infinitely waits.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! Printing.

@ -1,10 +1,10 @@
{
"editor.formatOnSave": true,
"editor.rulers": [100],
"rust-analyzer.cargo.target": "aarch64-unknown-none-softfloat",
"rust-analyzer.cargo.features": ["bsp_rpi3"],
"rust-analyzer.checkOnSave.allTargets": false,
"rust-analyzer.checkOnSave.extraArgs": ["--bins"],
"rust-analyzer.lens.debug": false,
"rust-analyzer.lens.run": false
"editor.formatOnSave": true,
"editor.rulers": [100],
"rust-analyzer.cargo.target": "aarch64-unknown-none-softfloat",
"rust-analyzer.cargo.features": ["bsp_rpi3"],
"rust-analyzer.checkOnSave.allTargets": false,
"rust-analyzer.checkOnSave.extraArgs": ["--bins"],
"rust-analyzer.lens.debug": false,
"rust-analyzer.lens.run": false
}

@ -1,6 +1,6 @@
## SPDX-License-Identifier: MIT OR Apache-2.0
##
## Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
## Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
include ../common/docker.mk
include ../common/format.mk

@ -287,7 +287,7 @@ diff -uNr 03_hacky_hello_world/src/synchronization.rs 04_safe_globals/src/synchr
@@ -0,0 +1,77 @@
+// SPDX-License-Identifier: MIT OR Apache-2.0
+//
+// Copyright (c) 2020-2022 Andre Richter <andre.o.richter@gmail.com>
+// Copyright (c) 2020-2023 Andre Richter <andre.o.richter@gmail.com>
+
+//! Synchronization primitives.
+//!

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! Architectural processor code.
//!

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2021-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2021-2023 Andre Richter <andre.o.richter@gmail.com>
//! Architectural boot code.
//!

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! Conditional reexporting of Board Support Packages.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! Top-level BSP file for the Raspberry Pi 3 and 4.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! BSP console facilities.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! BSP Processor code.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! System console.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2020-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2020-2023 Andre Richter <andre.o.richter@gmail.com>
//! Processor code.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2021-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2021-2023 Andre Richter <andre.o.richter@gmail.com>
//! Boot code.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
// Rust embedded logo for `make doc`.
#![doc(

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! A panic handler that infinitely waits.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! Printing.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2020-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2020-2023 Andre Richter <andre.o.richter@gmail.com>
//! Synchronization primitives.
//!

@ -1,10 +1,10 @@
{
"editor.formatOnSave": true,
"editor.rulers": [100],
"rust-analyzer.cargo.target": "aarch64-unknown-none-softfloat",
"rust-analyzer.cargo.features": ["bsp_rpi3"],
"rust-analyzer.checkOnSave.allTargets": false,
"rust-analyzer.checkOnSave.extraArgs": ["--bins"],
"rust-analyzer.lens.debug": false,
"rust-analyzer.lens.run": false
"editor.formatOnSave": true,
"editor.rulers": [100],
"rust-analyzer.cargo.target": "aarch64-unknown-none-softfloat",
"rust-analyzer.cargo.features": ["bsp_rpi3"],
"rust-analyzer.checkOnSave.allTargets": false,
"rust-analyzer.checkOnSave.extraArgs": ["--bins"],
"rust-analyzer.lens.debug": false,
"rust-analyzer.lens.run": false
}

@ -1,6 +1,6 @@
## SPDX-License-Identifier: MIT OR Apache-2.0
##
## Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
## Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
include ../common/docker.mk
include ../common/format.mk
@ -150,7 +150,7 @@ $(KERNEL_BIN): $(KERNEL_ELF)
##------------------------------------------------------------------------------
## Generate the documentation
##------------------------------------------------------------------------------
##-----------------------------------------------------------------------------
doc:
$(call color_header, "Generating docs")
@$(DOC_CMD) --document-private-items --open

@ -278,7 +278,7 @@ diff -uNr 04_safe_globals/src/bsp/device_driver/bcm/bcm2xxx_gpio.rs 05_drivers_g
@@ -0,0 +1,228 @@
+// SPDX-License-Identifier: MIT OR Apache-2.0
+//
+// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
+// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
+
+//! GPIO Driver.
+
@ -511,7 +511,7 @@ diff -uNr 04_safe_globals/src/bsp/device_driver/bcm/bcm2xxx_pl011_uart.rs 05_dri
@@ -0,0 +1,407 @@
+// SPDX-License-Identifier: MIT OR Apache-2.0
+//
+// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
+// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
+
+//! PL011 UART driver.
+//!
@ -923,7 +923,7 @@ diff -uNr 04_safe_globals/src/bsp/device_driver/bcm.rs 05_drivers_gpio_uart/src/
@@ -0,0 +1,11 @@
+// SPDX-License-Identifier: MIT OR Apache-2.0
+//
+// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
+// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
+
+//! BCM driver top level.
+
@ -939,7 +939,7 @@ diff -uNr 04_safe_globals/src/bsp/device_driver/common.rs 05_drivers_gpio_uart/s
@@ -0,0 +1,38 @@
+// SPDX-License-Identifier: MIT OR Apache-2.0
+//
+// Copyright (c) 2020-2022 Andre Richter <andre.o.richter@gmail.com>
+// Copyright (c) 2020-2023 Andre Richter <andre.o.richter@gmail.com>
+
+//! Common device driver code.
+
@ -982,7 +982,7 @@ diff -uNr 04_safe_globals/src/bsp/device_driver.rs 05_drivers_gpio_uart/src/bsp/
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: MIT OR Apache-2.0
+//
+// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
+// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
+
+//! Device driver.
+
@ -1121,7 +1121,7 @@ diff -uNr 04_safe_globals/src/bsp/raspberrypi/driver.rs 05_drivers_gpio_uart/src
@@ -0,0 +1,71 @@
+// SPDX-License-Identifier: MIT OR Apache-2.0
+//
+// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
+// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
+
+//! BSP driver support.
+
@ -1197,7 +1197,7 @@ diff -uNr 04_safe_globals/src/bsp/raspberrypi/memory.rs 05_drivers_gpio_uart/src
@@ -0,0 +1,37 @@
+// SPDX-License-Identifier: MIT OR Apache-2.0
+//
+// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
+// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
+
+//! BSP Memory Management.
+
@ -1281,7 +1281,7 @@ diff -uNr 04_safe_globals/src/console/null_console.rs 05_drivers_gpio_uart/src/c
@@ -0,0 +1,41 @@
+// SPDX-License-Identifier: MIT OR Apache-2.0
+//
+// Copyright (c) 2022 Andre Richter <andre.o.richter@gmail.com>
+// Copyright (c) 2022-2023 Andre Richter <andre.o.richter@gmail.com>
+
+//! Null console.
+
@ -1422,7 +1422,7 @@ diff -uNr 04_safe_globals/src/driver.rs 05_drivers_gpio_uart/src/driver.rs
@@ -0,0 +1,167 @@
+// SPDX-License-Identifier: MIT OR Apache-2.0
+//
+// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
+// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
+
+//! Driver support.
+

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! Architectural processor code.
//!

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2021-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2021-2023 Andre Richter <andre.o.richter@gmail.com>
//! Architectural boot code.
//!

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! Conditional reexporting of Board Support Packages.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! Device driver.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! BCM driver top level.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! GPIO Driver.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! PL011 UART driver.
//!

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2020-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2020-2023 Andre Richter <andre.o.richter@gmail.com>
//! Common device driver code.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! Top-level BSP file for the Raspberry Pi 3 and 4.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! BSP console facilities.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! BSP Processor code.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! BSP driver support.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! BSP Memory Management.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! System console.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2022-2023 Andre Richter <andre.o.richter@gmail.com>
//! Null console.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2020-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2020-2023 Andre Richter <andre.o.richter@gmail.com>
//! Processor code.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2021-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2021-2023 Andre Richter <andre.o.richter@gmail.com>
//! Boot code.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! Driver support.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
// Rust embedded logo for `make doc`.
#![doc(

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! A panic handler that infinitely waits.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! Printing.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2020-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2020-2023 Andre Richter <andre.o.richter@gmail.com>
//! Synchronization primitives.
//!

@ -1,10 +1,10 @@
{
"editor.formatOnSave": true,
"editor.rulers": [100],
"rust-analyzer.cargo.target": "aarch64-unknown-none-softfloat",
"rust-analyzer.cargo.features": ["bsp_rpi3"],
"rust-analyzer.checkOnSave.allTargets": false,
"rust-analyzer.checkOnSave.extraArgs": ["--bins"],
"rust-analyzer.lens.debug": false,
"rust-analyzer.lens.run": false
"editor.formatOnSave": true,
"editor.rulers": [100],
"rust-analyzer.cargo.target": "aarch64-unknown-none-softfloat",
"rust-analyzer.cargo.features": ["bsp_rpi3"],
"rust-analyzer.checkOnSave.allTargets": false,
"rust-analyzer.checkOnSave.extraArgs": ["--bins"],
"rust-analyzer.lens.debug": false,
"rust-analyzer.lens.run": false
}

@ -1,6 +1,6 @@
## SPDX-License-Identifier: MIT OR Apache-2.0
##
## Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
## Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
include ../common/docker.mk
include ../common/format.mk

@ -237,7 +237,6 @@ diff -uNr 05_drivers_gpio_uart/Makefile 06_uart_chainloader/Makefile
+ @$(DOCKER_QEMU) $(EXEC_QEMU) $(QEMU_RELEASE_ARGS) -kernel $(KERNEL_BIN) -d in_asm
+
endif
##------------------------------------------------------------------------------
-## Connect to the target's serial
+## Push the kernel to the real HW target
@ -375,7 +374,7 @@ diff -uNr 05_drivers_gpio_uart/src/bsp/raspberrypi/console.rs 06_uart_chainloade
@@ -1,16 +0,0 @@
-// SPDX-License-Identifier: MIT OR Apache-2.0
-//
-// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
-// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
-
-//! BSP console facilities.
-
@ -394,7 +393,7 @@ diff -uNr 05_drivers_gpio_uart/src/bsp/raspberrypi/kernel.ld 06_uart_chainloader
--- 05_drivers_gpio_uart/src/bsp/raspberrypi/kernel.ld
+++ 06_uart_chainloader/src/bsp/raspberrypi/kernel.ld
@@ -3,8 +3,6 @@
* Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
* Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
*/
-__rpi_phys_dram_start_addr = 0;
@ -580,7 +579,7 @@ diff -uNr 05_drivers_gpio_uart/tests/chainboot_test.rb 06_uart_chainloader/tests
+
+# SPDX-License-Identifier: MIT OR Apache-2.0
+#
+# Copyright (c) 2020-2022 Andre Richter <andre.o.richter@gmail.com>
+# Copyright (c) 2020-2023 Andre Richter <andre.o.richter@gmail.com>
+
+require_relative '../../common/serial/minipush'
+require_relative '../../common/tests/boot_test'

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! Architectural processor code.
//!

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2021-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2021-2023 Andre Richter <andre.o.richter@gmail.com>
//! Architectural boot code.
//!

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! Conditional reexporting of Board Support Packages.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! Device driver.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! BCM driver top level.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! GPIO Driver.

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2018-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2018-2023 Andre Richter <andre.o.richter@gmail.com>
//! PL011 UART driver.
//!

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
//
// Copyright (c) 2020-2022 Andre Richter <andre.o.richter@gmail.com>
// Copyright (c) 2020-2023 Andre Richter <andre.o.richter@gmail.com>
//! Common device driver code.

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save