bunnie
e32ea4d3f5
fix #174
2022-06-10 21:36:53 +08:00
Sean Cross
3ae9d8abf0
apps/services: remove xous::xous_main macro usage
...
This macro will be removed, since it is no longer necessary. Remove this
macro across the project and replace it with a standard `main()`
function.
Signed-off-by: Sean Cross <sean@xobs.io>
2022-05-31 13:33:30 +08:00
Sean Cross
d738b9fd51
xous-names: add BlockingConnect opcode
...
This opcode allows a client to request a connection to the Server, and
will only return if there's an Error or a Connection.
This contains future support for AuthenticationRequests, however those
are not yet implemented.
Signed-off-by: Sean Cross <sean@xobs.io>
2022-03-15 15:22:15 +08:00
bunnie
752b374fcb
add metadata for sharing xous-names
2022-03-07 23:35:40 +08:00
bunnie
827888ccbb
fix up the REFCOUNT on connections
...
Was doing disjoint loads and stores on an Atomic, really, should
be using the fetch_add, fetch_sub variants to be proper.
Didn't seem to impact anything but maybe there's a future version
of me that high fives me for doing this.
2022-01-31 23:13:10 +08:00
bunnie
b3788a54af
clarify the dependency policy
2022-01-10 16:50:10 +08:00
bunnie
995915ed4e
nail down a couple more dependencies, and add a policy note to Cargo.toml
...
Each Cargo.toml now includes a comment which remnids maintainers
of the dependency policy for Xous (that is, nail down every dependency
to the minor number).
2022-01-10 15:54:27 +08:00
bunnie
dd943c5416
pin down versions and harmonize versions across servers
...
Versions are pinned down to the minor number. Yes, this means that
we don't automatically pull in features and bug updates from crates.io,
but it also means we don't pull in new attack surfaces and code that
hasn't been tested or reviewed. I'd like this process to be very deliberate
and not automatic for Xous.
The `rand` crate is almost pinned down to a single version, except
for an odd dependency that's pulled in by hosted mode that depends
on rand 0.8.4 via a subordinate dependency via the `tempfile` crate.
Pondering if it's worth it to try and eliminate that, because the
0.8.4 version doesn't get compiled into any version that touches
real hardware. It just makes it harder to analyze the Cargo.lock
file, mostly. I think I'll leave it as-is.
2022-01-10 15:39:55 +08:00
bunnie
489a26dd11
fix an issue where we don't decrement the connection counter on drop
2022-01-05 20:01:54 +08:00
bunnie
421a3814d8
clean up some warnings before moving on to further integration
2022-01-02 15:07:48 +08:00
bunnie
7f3d2e3ce3
move xous-names into standard formatting
2021-08-19 23:51:20 +08:00
bunnie
cf3ed935e7
add staging location lockout and xous-names completion checking
2021-08-10 04:30:45 +08:00
bunnie
ef671dd6a3
fix up xous-names and resolve issue #26 thanks to stdlib
...
also frees up about 24k of unused RAM, i'll take it!
2021-08-04 01:59:17 +08:00
Sean Cross
b86e0a65cd
services: recognize xous as a hardware OS
...
Support `xous` as a valid OS. This allows us to build the entire kernel
under this target.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-02 18:11:48 +08:00
bunnie
2714c9eb13
link in some READMEs so that rustdoc pulls them in
...
also add some bread crumbs on the more user-facing APIs to
help beginners out. Need to do a good spring cleaning of the
rustdoc tree, though. looks pretty terrible as it is.
2021-08-01 16:08:27 +08:00
bunnie
b6c443145c
extend modal functions; refactor status into its own server
2021-07-28 01:01:39 +08:00
bunnie
b5630b74ce
update documentation
2021-06-19 01:36:35 +08:00
bunnie
0f937037e4
just getting to the point of implementing defacement
...
menu now pops up. does nothing, but we can at least
change contexts for the Ux into a different Ux theme.
2021-06-18 16:20:56 +08:00
bunnie
eee9f4e765
refactor xous-names to permit only a fixed number of connections
...
this prevents less trusted processes from connecting to servers
after the kernel initializations are done.
this works so long as we don't have disconnects from the kernel
servers. In order to support disconnects we will also need a
way to re-enumerate the SID to guarantee that we don't have a re-use
problem. But for now, the kernel is not designed with any practical
disconnect mechanism; there is no code that calls the Quit mechanism
on any server.
2021-06-15 17:41:14 +08:00
bunnie
fadc9c29ab
Merge remote-tracking branch 'origin/master' into bunnie-dev
2021-06-02 03:59:25 +08:00
bunnie
58edcc56f2
sha512 tests fully implemented, working through sus/res
...
note: sha512 will fail if a suspend is forced upon it!! but
it will vociferously complain if this happens.
2021-05-21 15:56:58 +08:00
bunnie
21a5ddb40f
sha512 hardware acceleration is working, now benchmarking
...
also need to extend hw implementation to sha512/256
2021-05-21 03:15:13 +08:00
Sean Cross
eb7895d601
xous: add a return code to TerminateProcess
...
As part of this refactor, make `terminate_process()` a divergent call.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-05-20 11:01:00 +08:00
bunnie
b36865a893
add some delay on hosted mode for failed name requests
...
helps make startup a bit more orderly on multi-core systems
2021-05-16 01:22:25 +08:00
bunnie
a24803354c
refactor xous-names to eliminate heapless
...
see issue #30
2021-05-08 23:34:08 +08:00
bunnie
391122823d
refactor heapless version in attempt to debug issue that cropped up in xous-names
...
somehow, updating the toolchain has broken the FnvIndexMap implementation
2021-05-08 18:44:23 +08:00
bunnie
05df98d1c1
disable suspend/resume support in hosted mode
...
hosted mode doesn't have suspend/resume support, and it's
not worth debugging subtle issues on that side of the fence
that seem to be OS-dependent.
2021-05-02 16:10:51 +08:00
bunnie
20040c5e02
fix a bogus error path that primarily trips up hosted mode
2021-05-01 01:12:32 +08:00
bunnie
94505ae6c5
improve some error messages
2021-04-27 00:52:52 +08:00
bunnie
a4678ee95c
remove dependency of xous-names on ticktimer; use d11ctimeout instead
...
this allows susres to manage ticktimer and have secured namespace
integration
2021-04-27 00:39:18 +08:00
bunnie
50fa517f3f
Update README.md
2021-04-07 01:24:41 +08:00
bunnie
ca349ec1b0
clean up minor bugs and other issues
2021-04-06 22:38:11 +08:00
bunnie
9ba2fb134c
refactor most major modules, but Xous now crashes
2021-04-05 23:50:00 +08:00
bunnie
25dc27f2f7
add drop implementation to servers
2021-04-02 22:01:40 +08:00
bunnie
2cb519b8ee
cleanup logging
2021-04-02 17:58:20 +08:00
bunnie
5a6ce66d7e
clean up log messages now that we can identify the logging source
2021-04-02 03:10:13 +08:00
bunnie
aab0bf459c
update API to more compliant names
2021-04-01 16:43:22 +08:00
bunnie
dc2519c5ef
trying out new API names
2021-04-01 03:47:10 +08:00
bunnie
23ae292e3d
found the stupid bug
2021-03-29 05:20:21 +08:00
bunnie
c6371e86e7
fix other minor errors
2021-03-29 04:44:03 +08:00
bunnie
f35d478cf0
attempt to refactor xous_names
2021-03-29 04:35:11 +08:00
bunnie
88d66f4fd2
partial refactor but need to switch branches
2021-03-28 19:36:55 +08:00
bunnie
e889765caf
refactor the Ticktimer API.
2021-03-28 18:14:41 +08:00
Sean Cross
fdce58d06e
ipc: convert project to use xous-ipc
...
This rewrites the entire project so that most runnable projects now use
`xous-ipc` instead of `xous::String` where possible.
This also removes `rkyv` from the list of dependencies in `xous-rs`.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-03-26 20:22:33 +08:00
bunnie
ea8b208a15
finalize rkyv 0.4.1 refactor
2021-03-18 03:54:48 +08:00
bunnie
8fbd900a4c
Merge branch 'hardware-no-cb' into rkyv-refactor
...
Bring the two branches up to date, while also laying the groundwork
for XousServerName to be used as a native index type in xous-names
so we aren't burdening xous::String with a hasher
2021-03-17 16:06:06 +08:00
bunnie
eff3e7d7bf
incremental i2c changes
2021-03-16 15:52:13 +08:00
bunnie
d68e3e8cf4
an attempt to refactor to rkyv 0.4.1
...
unfortunately, it looks like deserialize requires an alloc??
2021-03-16 02:02:53 +08:00
bunnie
16d8438a0d
turn off some debugging
2021-03-11 04:12:14 +08:00
bunnie
0cc1f9f5fb
it doesn't look that impressive, but there's a lot of plumbing now.
2021-03-06 01:10:18 +08:00
bunnie
9a2bce24cb
clean up timing and cosmetic issues on status updates
2021-03-02 21:47:23 +08:00
bunnie
0af72ffb6d
clean up Sendable references and warnings
2021-02-17 23:29:20 +08:00
Sean Cross
aabd2d242d
services: xous-names: remove buffer import from lib
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-17 20:53:33 +08:00
Sean Cross
05f27e4c0e
services: xous-names: pass warning when write fails
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-17 20:53:09 +08:00
bunnie
2b003f8a7d
intermediate checkin
2021-02-16 00:28:44 +08:00
bunnie
07b3dd9afa
add PID printout to every service as it starts
2021-02-15 19:16:21 +08:00
bunnie
7e0902344c
move XousBuffer to xous-rs
2021-02-13 01:42:31 +08:00
bunnie
05633604d1
remove duplicate buffer.rs file
2021-02-12 19:11:23 +08:00
Sean Cross
8ba7496f64
xous-names: use rkyv to pass messages
...
This is an experimental method of message passing to allow for mutable
structs.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-10 15:02:48 +08:00
bunnie
da35ecc09c
the great usize extinction event: xous-names
...
replace usize in repr(C) with u32 for xous-names
2021-01-22 00:41:25 +08:00
bunnie
2eafe825b8
refactor COM to use generic name registrations for event listeners
2021-01-12 18:44:02 +08:00
bunnie
f166073954
first draft of keyboard server
2021-01-11 06:11:15 +08:00
bunnie
a8d31cb7e2
update README and add xous-names into renode image
2021-01-09 02:23:01 +08:00
bunnie
ea78de8014
convert all services to use xous-names server
2021-01-09 02:12:01 +08:00
bunnie
4ef581a266
riddled with race conditions, but...sort of works
2021-01-08 05:20:53 +08:00
bunnie
95d4f03591
intermediate checkin
2021-01-07 21:53:08 +08:00
Sean Cross
6ccbacf65f
loader: assign sections to process ownership
...
This ensures these addresses aren't re-used and handed out again by
memory allocation.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-01-07 20:33:21 +08:00
bunnie
323c11f554
commit a version that exhausts the kernel allocation
2021-01-07 16:58:13 +08:00
bunnie
73c4be0457
upgrade name length to 64 characters
2021-01-05 16:53:19 +08:00
bunnie
0d869870ae
this code works in hosted mode but fails on hardware
2021-01-05 15:48:51 +08:00
bunnie
ec675eefb4
cleanup warnings
2021-01-05 04:45:23 +08:00
bunnie
bdbe8f8288
intermediate checkin
2021-01-05 04:40:34 +08:00
bunnie
61409bb94c
update README on xous-names, and refine the API a bit
2021-01-05 02:28:27 +08:00
bunnie
1075dff559
the name server itself
2021-01-04 23:34:36 +08:00
bunnie
fbf9d7a342
add some docs on the name server
2020-12-03 23:58:06 +08:00