This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <assert.h> | |
| #include <libusb.h> | |
| #include <stdbool.h> | |
| #include <stdio.h> | |
| #include <stdint.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| typedef struct bmda_probe | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Includes one of the default files in src/bootstrap/defaults | |
| profile = "library" | |
| change-id = 116998 | |
| [build] | |
| # When building the standard library, you almost never want to build the compiler itself. | |
| build-stage = 2 | |
| test-stage = 2 | |
| bench-stage = 2 | |
| target = ["riscv32imac-unknown-xous-elf"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [package] | |
| name = "unwind" | |
| version = "0.0.0" | |
| license = "MIT OR Apache-2.0" | |
| repository = "https://github.com/rust-lang/rust.git" | |
| edition = "2021" | |
| include = [ | |
| '/libunwind/*', | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #![allow(non_camel_case_types)] | |
| #![allow(non_snake_case)] | |
| #![allow(non_upper_case_globals)] | |
| pub type rv_inst = u64; | |
| #[derive(Clone, Copy, PartialEq)] | |
| pub enum RvIsa { | |
| Rv32 = 0, | |
| Rv64 = 1, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // This program tests `ecall` and `ebreak`. Link with the | |
| // following linker script: | |
| // | |
| //-- linker.x ---------------------------------------------- | |
| // MEMORY { FLASH : ORIGIN = 0x80000000, LENGTH = 512K } | |
| // SECTIONS { .text : { *(.text .text.*); } > FLASH } | |
| //---------------------------------------------------------- | |
| // | |
| // Compile and link into a binary with: | |
| // riscv-none-elf-gcc -march=rv32imac_zicsr -g my.S -o my.elf -nostdinc -nostdlib -T my.ld |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use crate::os::xous::ffi::{map_memory, unmap_memory, MemoryFlags}; | |
| use core::arch::asm; | |
| use core::cell::Cell; | |
| use core::sync::atomic::{AtomicBool, AtomicU8, AtomicUsize, Ordering}; | |
| const TLS_KEY_COUNT: usize = 128; | |
| const TLS_MEMORY_SIZE: usize = 4096; | |
| pub type Key = usize; | |
| pub type Dtor = unsafe extern "C" fn(*mut u8); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "version": 1, | |
| "app": "siliwiz", | |
| "timestamp": 1676266623, | |
| "rects": [ | |
| { "x": 14.4, "y": 18, "height": 363, "width": 372, "layer": "p substrate" }, | |
| { "x": 118.4, "y": 147, "height": 118, "width": 152, "layer": "n diffusion" }, | |
| { "x": 341.4, "y": 350, "height": 28, "width": 39, "layer": "p tap" }, | |
| { "x": 180.4, "y": 129, "height": 158, "width": 31, "layer": "polysilicon" }, | |
| { "x": 345.4, "y": 352, "height": 24, "width": 32, "layer": "metal1 via" }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/library/std/src/sync/condvar.rs b/library/std/src/sync/condvar.rs | |
| index eb1e7135a6e..ba270d2aee5 100644 | |
| --- a/library/std/src/sync/condvar.rs | |
| +++ b/library/std/src/sync/condvar.rs | |
| @@ -122,10 +122,10 @@ impl Condvar { | |
| /// let condvar = Condvar::new(); | |
| /// ``` | |
| #[stable(feature = "rust1", since = "1.0.0")] | |
| - #[rustc_const_stable(feature = "const_locks", since = "1.63.0")] | |
| + // #[rustc_const_stable(feature = "const_locks", since = "1.63.0")] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| set > /opt/Xous/environment | |
| export PATH=/opt/gcc/xpack-riscv-none-elf-gcc-12.1.0-2/bin/:$PATH | |
| echo "Building rust..." | |
| cd /opt/Xous/rust-next | |
| rm -rf target-* | |
| rustup override set $RUSTUP_TOOLCHAIN |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| target\debug\create-image.exe ` | |
| target\riscv32imac-unknown-xous-elf\release\xous_presign.img ` | |
| --kernel target/riscv32imac-unknown-xous-elf/release/xous-kernel ` | |
| --init target/riscv32imac-unknown-xous-elf/release/xous-ticktimer ` | |
| --init target/riscv32imac-unknown-xous-elf/release/xous-log ` | |
| --init fake-root-keys\target\riscv32imac-unknown-xous-elf\debug\fake-root-keys ` | |
| --init pddb-raw\target\riscv32imac-unknown-xous-elf\debug\pddb-raw ` | |
| --init target/riscv32imac-unknown-xous-elf/release/xous-names ` | |
| --init target/riscv32imac-unknown-xous-elf/release/xous-susres ` | |
| --init target\riscv32imac-unknown-xous-elf\release\pddb ` |