1. Jul 09, 2023
  2. Jul 07, 2023
  3. Jul 06, 2023
  4. Jul 04, 2023
  5. Jan 23, 2023
    • bors[bot]'s avatar
      Merge #110 · e95dc95a
      bors[bot] authored
      
      
      110: fix: avoid rust-analyzer snake case warning r=almindor a=sethp
      
      It seems that rust-analyzer needs to operate over the expanded text of the proc macro (in order to e.g. support completion in the function body, see #11014 for way more details), so it "sees" the non-snake-case name emitted by riscv-rt's `entry` here.
      
      Without this change, rust-analyzer will show a "weak warning" on invocations of `#[entry]` with the text:
      
      ```
      Function `__risc_v_rt__main` should have snake_case name, e.g. `__risc_v_rt_main`
      ```
      
      Co-authored-by: default avatarsethp <seth@codecopse.net>
      e95dc95a
  6. Jan 22, 2023
    • sethp's avatar
      fix: avoid rust-analyzer snake case warning · c1b88da5
      sethp authored
      It seems that rust-analyzer needs to operate over the expanded text of the proc macro (in order to e.g. support completion in the function body, see #11014 for way more details), so it "sees" the non-snake-case name emitted by riscv-rt's `entry` here.
      
      Without this change, rust-analyzer will show a "weak warning" on invocations of `#[entry]` with the text:
      
      ```
      Function `__risc_v_rt__main` should have snake_case name, e.g. `__risc_v_rt_main`
      ```
      c1b88da5
  7. Jan 19, 2023
  8. Dec 27, 2022
    • bors[bot]'s avatar
      Merge #108 · 513dee15
      bors[bot] authored
      
      
      108: update to riscv 0.10 r=dkhayes117 a=tfx2001
      
      In `svd2rust` 0.24.2, require `critial-section` feature of `riscv` 0.10.0 to use the `Peripheral::take()`. So update `riscv` to 0.10 avoid link error.
      
      ```text
        = note: rust-lld: error: undefined symbol: _critical_section_1_0_release
                >>> referenced by lib.rs:197 (C:\***\.cargo\registry\src\github.com-1ecc6299db9ec823\critical-section-1.1.1\src/lib.rs:197)
                >>>               C:\***\target\riscv32imac-unknown-none-elf\debug\deps\blink-38e172683ad1eb45.21kbt3gcucoa48u6.rcgu.o:(core::ptr::drop_in_place$LT$critical_section..with..Guard$GT$::h47fa1a207a83c94b)
      
                rust-lld: error: undefined symbol: _critical_section_1_0_acquire
                >>> referenced by lib.rs:180 (C:\***\.cargo\registry\src\github.com-1ecc6299db9ec823\critical-section-1.1.1\src/lib.rs:180)
                >>>               C:\***\target\riscv32imac-unknown-none-elf\debug\deps\blink-38e172683ad1eb45.54bke7unpav17a81.rcgu.o:(critical_section::with::h3ba86eebd468f130)
      ```
      
      Co-authored-by: default avatartfx2001 <tfx2001@outlook.com>
      513dee15
  9. Dec 26, 2022
  10. Nov 05, 2022
  11. Sep 20, 2022
    • bors[bot]'s avatar
      Merge #104 · 3b4ab6f3
      bors[bot] authored
      
      
      104: SBI mode r=almindor a=pgraubner
      
      Introducing Supervisor Binary Interface (SBI) compatibility as a build-time feature. Main goal is to allow riscv-rt based implementations to be bootstrapped by a SBI-firmware (like in `qemu-system-riscv64`).
      
      * Introduce compiler switches for assembly in order to switch between machine mode / supervisor mode
      * Introduce cargo feature for conditional compilation
      * Patch lib.rs for supervisor-mode compatibility
      
      The only interface this PR is braking is `mp_hook`, which needs a mhartid replacement for smode. The hart id is passed by the caller.
      Tested with `qemu-system-riscv64`.
      
      See also documentation/features/sbi for further implementation details.
      
      Co-authored-by: default avatarPablo Graubner <2234137+pgraubner@users.noreply.github.com>
      3b4ab6f3
    • Pablo Graubner's avatar
      SMODE: remove redundand paths · 096d90a3
      Pablo Graubner authored
      096d90a3
  12. Sep 17, 2022
  13. Sep 16, 2022
  14. Sep 09, 2022
  15. Sep 08, 2022
  16. Jul 11, 2022
  17. Jul 03, 2022
    • bors[bot]'s avatar
      Merge #98 · 0ff428fa
      bors[bot] authored
      
      
      98: Convert default_setup_interrupts into a Rust function r=dkhayes117 a=Disasm
      
      First step towards a fully inline-asm `riscv-rt`.
      
      Co-authored-by: default avatarVadim Kaushan <admin@disasm.info>
      0ff428fa