Commit graph

10340 commits

Author SHA1 Message Date
bunnie
33960277c1 fix hosted mode 2023-03-23 17:52:59 +08:00
bunnie
78e9824950 log if an unexpected interrupt happens on I2C 2023-03-23 16:01:13 +08:00
bunnie
673a3f1364 Merge branch 'main' of github.com:betrusted-io/xous-core into main 2023-03-23 15:31:10 +08:00
bunnie
4af7699f0d remove double-free path in I2C driver 2023-03-23 15:30:55 +08:00
bunnie
3e0b2e173d
Merge pull request #332 from markhuge/docs-hosted-dpad
Document dpad keymapping in hosted mode
2023-03-23 14:23:12 +08:00
Mark Wilkerson
2e56716a7a add dpad hosted mode mapping 2023-03-22 19:28:44 -07:00
bunnie
e32a22655b add a sanity check on the reported EC version 2023-03-23 03:17:05 +08:00
bunnie
0af6daa7b9 bump release notes 2023-03-22 03:10:35 +08:00
bunnie
c0ed701c08 remove implementations from the crates.io set
Restrict crates.io published set to just APIs, not implementation
files. Nobody is using the implementations anyways -- it was requested
but I've never seen the package pulled except for CI.
2023-03-22 03:09:03 +08:00
bunnie
704aaf98af bump versions for kernel interface changes 2023-03-22 02:48:55 +08:00
bunnie
57cea9b3ca cleanup a warning when debug is not turned on 2023-03-22 02:47:41 +08:00
bunnie
63c7600eb5
Merge pull request #331 from Foundation-Devices/kernel-arm
Add ARM support to kernel and xous-rs
2023-03-22 02:42:21 +08:00
bunnie
488a220d43
fix URL to public URL
didn't know i could just edit this directly in GH!
2023-03-22 01:05:10 +08:00
bunnie
773bbc695a
Merge pull request #330 from Foundation-Devices/loader-arm
loader: add ARMv7-A support via sama5d27 chip
2023-03-22 00:34:00 +08:00
eupn
1f2b45e60f
loader: replace ssh git dependency with https 2023-03-20 23:54:56 +04:00
bunnie
8a2e369791 bump release notes 2023-03-19 01:00:45 +08:00
bunnie
0c752edba4 update SoC to latest candidate 2023-03-19 00:58:41 +08:00
bunnie
ce9d5522c9 recover gracefully from I2C errors on resume
fix an issue where I2C, if not working well on resume, is not
recovered correctly. This patch improves that and hardens
the RTC code so that it handles a case that normally panics
with a try-harder loop.
2023-03-19 00:55:07 +08:00
bunnie
2b40e3e262 fix hosted mode 2023-03-18 00:12:56 +08:00
bunnie
ee6561f5d9 fix bugs in i2c timeout handler
seems to work now, recovers from timeout conditions more gracefully.
2023-03-18 00:06:35 +08:00
bunnie
a59de6d655 cleanup hosted mode warning (new with rust 1.68) 2023-03-17 22:19:04 +08:00
bunnie
900dbc3c51 fix hosted mode 2023-03-17 22:15:46 +08:00
bunnie
76a7d05156 add timeout logic to I2C driver 2023-03-17 22:12:02 +08:00
bunnie
5efbff0098 add note about GPIO usage vs WFI mode 2023-03-17 02:24:57 +08:00
bunnie
d413100102 handle edge case of a "perfect fit" loader section
When a block of data perfectly fits we fail to allocate the
next page, violating the loop invariant that there's data available
to write.

However, we can't always allocate a new page when we run out
because if we're at the end of the process we shouldn't allocate
a new page (I think). Thus we track if the last section was
a perfect fit, and if it was, we force a new page allocation
before copying more data.

This is an edit in phase 1 of the loader.
2023-03-16 01:05:07 +08:00
bunnie
137f23039b fix formatting on check print 2023-03-16 01:04:45 +08:00
bunnie
2cda7fc418 give the EC some time to boot before querying its version 2023-03-15 02:26:56 +08:00
eupn
723a730231
kernel: fix warnings 2023-03-14 19:01:11 +04:00
eupn
a027fc6a2c
xous-rs: checkout ARM assembly binary 2023-03-14 19:00:49 +04:00
eupn
b720426855
xous-rs: extend assemble script with arm arch 2023-03-14 19:00:17 +04:00
eupn
92969c8d42
xous-rs: extend build script to pick arm assembly binary too 2023-03-14 18:59:49 +04:00
eupn
294d75da4e
xous-rs: add ARM arch modules 2023-03-14 18:59:13 +04:00
eupn
76114c060a
xous-rs: add increase_heap syscall
This is used in ARM version of dlmalloc-rs for Xous stdlib
2023-03-14 18:51:07 +04:00
eupn
0f420b7b63
xous-rs: add "device" memory flag 2023-03-14 18:49:22 +04:00
eupn
e2d34d364c
kernel: always print when process is terminated 2023-03-14 18:48:45 +04:00
eupn
1634243f63
kernel: fix compile errors 2023-03-14 18:48:15 +04:00
eupn
7f5656445a
kernel: change some println!s to klog!s
Even when the print-debug feature isn't turned on, println! macro is still able to output some critical non-debug info to the console such as panics, process crashes and violations, etc. Debugging messages are printed with klog! macro that's disabled when debug-print feature is not set.
2023-03-14 18:47:57 +04:00
eupn
89a1447df4
kernel: checkout arm assembly binary 2023-03-14 18:41:45 +04:00
eupn
a42366b6cf
kernel: add arm to asm scripts 2023-03-14 18:41:33 +04:00
eupn
618392ca52
kernel: add arm features and deps to Cargo.toml 2023-03-14 18:39:19 +04:00
eupn
10bffc55b6
kernel: update build script to pick arch specific linker and asm binary 2023-03-14 18:37:40 +04:00
eupn
434e865a45
kernel: add sama5d2 uart workaround 2023-03-14 18:36:41 +04:00
eupn
0953812dfc
kernel: hide hw specific details in process init 2023-03-14 18:35:12 +04:00
eupn
3451d106f9
kernel: update debug and shell modules 2023-03-14 18:32:52 +04:00
eupn
38a02f9dbb
kernel: split precursor and sama5d2 platform modules 2023-03-14 18:30:07 +04:00
eupn
2ecd91b3c5
kernel: split arm and riscv arch modules 2023-03-14 18:28:49 +04:00
eupn
e7eb9ece2b
loader: remove unused imports 2023-03-14 17:15:17 +04:00
eupn
d4a85c7efa
loader: add FD to authors list 2023-03-14 17:15:17 +04:00
eupn
899351214b
loader: split hw specific details with feature gates in common modules 2023-03-14 17:15:17 +04:00
eupn
a0b9868068
loader: split panic handlers 2023-03-14 17:15:17 +04:00