Commit graph

10340 commits

Author SHA1 Message Date
bunnie
7da6649e30 add iox function to cram-hal-service
also modularize ifram into a separate file
2024-01-23 04:00:39 +08:00
bunnie
1e93171575 turn of rkyv derives in kernel and loader, as these are no-std 2024-01-23 03:59:49 +08:00
bunnie
3063e76c1c add option to derive rkyv types for iox functions 2024-01-23 03:59:32 +08:00
bunnie
35d5c56d27 upgrade SVD/header files to use symbolic IRQ names 2024-01-22 23:25:08 +08:00
bunnie
60dc329cbc ugrade unit tests to use the auto-generated irq names 2024-01-22 23:24:47 +08:00
bunnie
f586ad7367
Merge pull request #481 from betrusted-io/cramium-cleanup
WIP: Cramium cleanup
2024-01-21 01:18:52 +08:00
bunnie
d981bbe550 add more features to the loader for the cramium target
this *shouldn't* break other builds because the loader has
its arguments set by xtask for every target explicitly.
2024-01-21 01:14:51 +08:00
bunnie
48a839b7e8 bump the cramium targets
reflects bug fixes and improvements in the target header
file extractors.
2024-01-21 01:13:22 +08:00
bunnie
002a621181 change order of imports (work around rust-analyzer bug?)
I can't figure out why rust-analyzer on my system isn't work
correctly but if I change the order of imports things work better.

If this breaks things for Foundation Devices (@eupn) let me know,
I will poke at this some more and try to figure it out. In theory
it should have no impact but somehow I'm getting the atsamd target
*always* live in my vscode environment, even when it is switched
off when it isn't the last target in the list (and this overrides
all of the rust-analyzer settings for other targets).
2024-01-21 01:10:46 +08:00
bunnie
7db25efcd5 update xtask to include the new "mandatory" service for cramium targets 2024-01-21 00:35:49 +08:00
bunnie
7e21d5a494 update lock file to include the new service 2024-01-21 00:35:37 +08:00
bunnie
c133d61336 add cram-hal-service
this is the hub service for all the cramium-soc global hardware
issues. Kind of like the equivalent of `llio` on Precursor, but
hopefully slightly better thought-out.

The first service implemented here is an IFRAM allocator, which
is essential for all things DMA and UDMA.
2024-01-21 00:34:31 +08:00
bunnie
6786efbb01 add PL230/PIO test to bringup section 2024-01-20 21:32:20 +08:00
bunnie
b5be447170 add notes 2024-01-20 21:31:05 +08:00
bunnie
d4e6cbc442 cleanup pl230 test 2024-01-20 21:29:19 +08:00
bunnie
d990a4d3b2 xous is now a Rust target, so we have to specify baremetal explicitly 2024-01-20 17:45:36 +08:00
bunnie
47dbecfd0b print trng status on bringup boot 2024-01-20 16:17:02 +08:00
bunnie
75217075c1 fix up bugs in trng hal; automatically reset generator on exhaustion 2024-01-20 16:16:31 +08:00
bunnie
5df2e27447 add production TRNG to cramium target for kernel 2024-01-20 16:16:07 +08:00
bunnie
96102630b3 add SID debug printout for test servers 2024-01-20 16:15:37 +08:00
bunnie
798183fe95 add TRNG output to board bring-up test 2024-01-20 01:26:30 +08:00
bunnie
2fb5b171c0 add sce to hal crate 2024-01-20 01:26:10 +08:00
bunnie
001e501fc6 initial take at the SCE TRNG API 2024-01-20 01:25:52 +08:00
bunnie
a79b134d14 add placeholder for v2p/PID mapping
We need the V2P feature, but don't need the ability to swap
PID spaces yet. Leave the alternate API as a todo!() item
in the kernel for riscv targets.
2024-01-19 23:23:28 +08:00
bunnie
2a389d2999 refactor xous-log to use cramium HAL
code is much cleaner, closer to production quality
2024-01-19 23:22:36 +08:00
bunnie
0e14761641 cleanup loader code path
- print a banner on boot even without bringup
- stylistic improvements
2024-01-19 23:21:40 +08:00
bunnie
3192aeacbc add v2p feature for cramium target
uses DMA, which is physical memory.
2024-01-19 23:20:31 +08:00
bunnie
b72a365c1f adjustments for virtual memory
the library now automatically does v2p mappings for DMA targets.
2024-01-19 23:19:51 +08:00
bunnie
f12ddb09cb uart Rx in loader now seems to work. 2024-01-18 19:09:49 +08:00
bunnie
a0e464bcee turn Udma into a trait
I think this makes the code more clearly reflect the intended
"hardware polymorphism" effect of the udma implementation
2024-01-18 18:49:37 +08:00
bunnie
bfc66ec947 add cramium-hal to the lock file 2024-01-18 18:03:01 +08:00
bunnie
6f81024c77 refactor loader to use cramium-hal primitives
this is instead of the raw bitbang stuff we were doing before.
2024-01-18 18:02:23 +08:00
bunnie
192d38db72 add default flags to cramium-soc loader target
- debug loader
- board bringup mode
2024-01-18 18:01:05 +08:00
bunnie
28d959f938 add cramium-hal library 2024-01-18 18:00:49 +08:00
bunnie
8703764b8e
Merge pull request #480 from betrusted-io/chore
chore: fix default clock rate for simulation framework
2024-01-16 17:44:32 +08:00
bunnie
09487cbcb4 chore: fix default clock rate for simulation framework
have to slow down the defalut clock rate for the FIFO test in PIO
unit test, so we can capture results in simulation
2024-01-16 17:41:41 +08:00
bunnie
f6015fd298 ...and a pretty obvious one i missed 2024-01-15 02:17:28 +08:00
bunnie
659796916a chore: cleanup typos in docs, comments 2024-01-15 02:16:43 +08:00
bunnie
dc43fad220 chore: fix typos 2024-01-15 02:01:19 +08:00
bunnie
83d8f12cec chore: fix typos 2024-01-15 02:00:31 +08:00
bunnie
d7f8ebbc7a rename symbols for spell check 2024-01-15 01:55:17 +08:00
bunnie
d1a925c224 modify format CI flow to generate template files prior to checks 2024-01-15 01:53:02 +08:00
bunnie
9234b11962 add xtask target to generate dummy versions of files for formatting checks 2024-01-15 01:52:47 +08:00
bunnie
cee320977e add formatting bypasses to xtask-generated files 2024-01-15 01:52:32 +08:00
bunnie
d32914fc95 one more formatting straggler 2024-01-15 01:06:35 +08:00
bunnie
508c610339 prefsgenerator not in workspace but still needs formatting 2024-01-15 01:04:36 +08:00
bunnie
c411ee881a vaultbackup-rs is not part of workspace but still needs formatting... 2024-01-15 01:03:45 +08:00
bunnie
01fe4700d2 another difference between --check and fmt runs 2024-01-15 01:02:20 +08:00
bunnie
710da30952 inconsistencies in cargo fmt
running `cargo +nightly fmt -p app-loader` gives you one result.

running `cargo +nightly fmt --check` gives you another result.

manually opening and saving the files causes a result to agree
with the check.
2024-01-15 00:59:23 +08:00
bunnie
00bb37186a forgot to run wycheproof-import 2024-01-15 00:57:32 +08:00