Commit graph

10340 commits

Author SHA1 Message Date
bunnie
6a583a5f0c the system as writ does not actually allocate an extra connection
Adjust the connection number back to 4. There isn't a connection
made for a keyboard backlight server anymore. This is necessary
for root key initialization to proceed.
2022-06-14 01:25:41 +08:00
bunnie
9760910991 do not renumber explicitly numbered enums
In general, if an enum has been explicitly numbered, it means
that there are crates that depend on the actual number assigned,
and changing them will break other crates.

This is done to allow for cross-compatibility reasons, for
example, going to a C FFI or to the standard library, where
we can't simply refer to a Rust crate to import the symbolic
enums and have the compiler figure out a consistent numbering
method.

Thus even though it's a bit "ugly", please assign only unused
numbers to new enums, and when old enums are retired, do not
re-use the number.
2022-06-14 01:23:48 +08:00
Gianguido Sorà
d7eb53664e chore: move automatic backlight in status crate
Let's not use a precious process just for some a backlight effect :-)
2022-06-13 16:33:44 +02:00
Gianguido Sorà
ee29998534 Merge branch 'main' into gsora/backlight-on-keypress 2022-06-13 15:40:18 +02:00
bunnie
d2aff7da44 Fix #181
This is still a bogus AAGUID but at least it's less likely to
collide with other bogus AAGUIDs.
2022-06-13 17:49:14 +08:00
bunnie
c281518094 nope. that definitely runs slower and breaks things. leave opt level the way it was. 2022-06-13 03:39:32 +08:00
bunnie
d0490db63f push a different opt-level to the build
let's see this go through the CI gauntlet and we'll compare
runtimes...
2022-06-13 03:30:12 +08:00
bunnie
cce617366f move to the release version of usbd-human-interface-device
thanks @dlkj!
2022-06-13 00:20:14 +08:00
bunnie
9ab3f71f23 modify naming of FidoInterface to RawFidoInterface
per maintainer request of usbd-human-interface-device for PR
2022-06-12 23:05:20 +08:00
Gianguido Sorà
31bfaa0928 chore: remove wlanman app entry in cargo.toml members 2022-06-12 13:48:30 +02:00
bunnie
d752c4e87e fix renode build 2022-06-11 23:37:18 +08:00
bunnie
5497b1d264 add a delay to de-chatter switching between cores 2022-06-11 22:46:37 +08:00
bunnie
41936a1a21 update SoC to support forced reset
this is to try and fix a problem we're seeing on Linux with the
USB stack eventually shutting down the port as we switch
device configurations too often.
2022-06-11 18:25:22 +08:00
bunnie
3f791f5979 sync pddb after any credential change state
help prevent data loss in case of power outage/crash
2022-06-11 03:08:23 +08:00
Gianguido Sorà
1ebf3316e7 feat: wire keyboard backlight controls to main menu 2022-06-10 17:14:38 +02:00
Gianguido Sorà
0ff4e569c1 Merge branch 'main' into gsora/backlight-on-keypress 2022-06-10 17:12:52 +02:00
bunnie
3803a580cf Merge branch 'main' into insert_menu_item 2022-06-10 21:38:33 +08:00
bunnie
e32ea4d3f5 fix #174 2022-06-10 21:36:53 +08:00
bunnie
21c8c09050 create a API to insert an item at an offset 2022-06-10 21:29:33 +08:00
bunnie
cae1c3267e add sentinels for test automation 2022-06-10 21:16:59 +08:00
Gianguido Sorà
4115c9b2cd feat: wire keyboard-backlight to status menu 2022-06-10 14:33:33 +02:00
Sean Cross
a1474b3e40
Merge pull request #166 from codemaster138/patch-1
chore: fix typo in build.rs
2022-06-10 19:42:39 +08:00
Gianguido Sorà
2fee46753e Merge remote-tracking branch 'upstream/main' into gsora/backlight-on-keypress 2022-06-10 12:37:11 +02:00
Gianguido Sorà
cf6dfd06f8 chore: remove wlanman demo app 2022-06-10 12:21:10 +02:00
Gianguido Sorà
014dcfd612 status: add wifi management menu 2022-06-10 12:20:39 +02:00
bunnie
2200bcc5d5 reflect latest ci build config 2022-06-10 18:11:07 +08:00
bunnie
10d543154f improve gitignore 2022-06-10 18:10:49 +08:00
bunnie
f059f4c85f Merge branch 'main' of github.com:betrusted-io/xous-core into main 2022-06-10 18:06:03 +08:00
bunnie
e288286bda reduce binary burden of backup SHA implementations
When the hardware engine is unavailable, the implementation
falls back to a software SHA. This code path is actually
rarely used, but it is the top object code consumer according
to our bloat analysis tool (40kiB for each instance of
the compress function alone).

This patch annotates the SHA functions with `#[inline(never)]`
to reduce the size of these rarely-used functions.

...it might actually be that on our small-cache system,
reducing the in-lining could improve performance as well
because it helps the whole routine fit inside L2 cache.

Anyways, it's a rarely-used path (I've never seen the code
used once tbh) so let's reduce its overhead and keep
Xous trim.
2022-06-10 18:02:52 +08:00
Sean Cross
aa436cbcc7 tools: elf: don't get raw_data for no_copy sections
The `xmas-elf` crate doesn't deal with `raw_data()` of sections that are
`NO_COPY`. These sections may point to data that is outside of the file.

In order to avoid hitting this assert, don't call `raw_data()` on
sections that are marked `NO_COPY`.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-06-10 16:52:57 +08:00
bunnie
ebc8fd90f3
Merge pull request #180 from kelas/main
Fix realloc()
2022-06-10 16:45:40 +08:00
/dev/kelas
cd62bd4552
Merge branch 'betrusted-io:main' into main 2022-06-09 23:02:41 +02:00
kelas
ab18eb0776 Fix realloc() 2022-06-09 23:01:43 +02:00
Gianguido Sorà
c5c868557a intermediate commit 2022-06-09 20:19:44 +02:00
bunnie
b3ea67a2a9
Merge pull request #179 from betrusted-io/fix-forward-memory
xous: envelope: handle MemoryReturned in forward()
2022-06-09 22:32:40 +08:00
Sean Cross
f4f5418190 xous: envelope: handle MemoryReturned in forward()
Previously, we only handled messages that were forwarded. With this
patch, we also handle memory messages that were returned.

This fixes #165

Signed-off-by: Sean Cross <sean@xobs.io>
2022-06-09 17:50:21 +08:00
bunnie
ceef2b0bd6
Merge pull request #176 from Hoverbear-Consulting/fix-sha-name
`cargo xtask run` tries to execute non-existing binary.
2022-06-09 04:12:47 +08:00
bunnie
42996a8177 fix U2F flow
accidentally broke it while debugging FIDO2. added notes about how
the flow is implemented.
2022-06-09 02:57:31 +08:00
bunnie
fd9fb1cbcc fix hosted mode 2022-06-09 00:28:48 +08:00
bunnie
d56360b599 reflect status of "vault" moving toward a default app status 2022-06-09 00:25:04 +08:00
bunnie
e68c976735 configure vault for production and add maintainer's notes 2022-06-09 00:20:36 +08:00
bunnie
3fc038cca9 add some missing translations, and add a listener to the unplug state 2022-06-08 23:48:09 +08:00
bunnie
a4d0cdba80 pass unplug events down to the FIDO stack
this is necessary because unplugs actually force some
cryptographic state to rekey
2022-06-08 23:47:44 +08:00
bunnie
52211f078e adjust autotest flow for UDP-based button pressing 2022-06-08 20:15:32 +08:00
Gianguido Sorà
7985ad9a95 make the thing compile 2022-06-08 12:08:49 +02:00
Gianguido Sorà
c99ac0b3f5 Merge branch 'main' into gsora/backlight-on-keypress 2022-06-08 11:58:45 +02:00
Ana Hobden
fa864ef137 Correct sha binary name
Signed-off-by: Ana Hobden <operator@hoverbear.org>
2022-06-07 23:42:01 -07:00
bunnie
01fbc1e8b7 update release notes 2022-06-08 04:42:28 +08:00
bunnie
7506b3ba30 update lock file 2022-06-08 04:37:48 +08:00
bunnie
b66f8b5303 update lock file 2022-06-08 04:37:35 +08:00