bunnie
5cdf597a5b
fixup tests
2021-02-18 02:35:11 +08:00
bunnie
c5e6391e22
remove mention of Sendable and the ipc.rs module
2021-02-18 02:01:11 +08:00
bunnie
0af72ffb6d
clean up Sendable references and warnings
2021-02-17 23:29:20 +08:00
Sean Cross
14f661f565
xous: remove id field from lend()
...
This argument is no longer used.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-17 20:54:08 +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
Sean Cross
6ecc25b7e0
services: keyboard: fix build warnings in lib
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-17 20:52:44 +08:00
Sean Cross
7d9fdb9c0d
services: graphics: fix unused import warnings in op
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-17 20:52:23 +08:00
Sean Cross
f962be1f3c
services: graphics: text: fix unused import warnings
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-17 20:51:59 +08:00
Sean Cross
5979556a2c
services: com: fix warnings in lib
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-17 20:51:23 +08:00
Sean Cross
5d59fccbc0
services: graphics: fix warnings in lib
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-17 20:51:05 +08:00
Sean Cross
c4fb83b22f
services: com: remove unused imports from main
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-17 20:50:12 +08:00
Sean Cross
c820573450
services: com: remove unused imports from api
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-17 20:47:07 +08:00
Sean Cross
c349345ce8
xous: get rid of most warnings
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-17 20:40:27 +08:00
Sean Cross
f361bd6e7e
xous: buffer: impl Drop for Buffer
...
This will release a Buffer to the kernel when it goes out of scope.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-17 20:31:02 +08:00
Sean Cross
6119c78bc7
kernel: riscv: really fix sharing logic
...
We're comparing numbers and not MMUFlags, so invalid values crept in.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-17 17:35:13 +08:00
Sean Cross
b6a28a85fc
kernel: riscv: invert shared logic
...
This logic was backwards.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-17 17:28:49 +08:00
Sean Cross
e9a1da25b0
kernel: riscv: mark address_available() as false when shared
...
When a page is shared, only report an address as being available when
we receive a `BadAddress` error when doing the translation. Otherwise,
assume it is in use.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-17 17:23:05 +08:00
Sean Cross
3b85392877
kernel: riscv: return ShareViolation when memory is shared
...
When memory has been shared, it is no longer valid. However, it is still
"in use".
Return a `ShareViolation` error in this case so we can check for it
elsewhere.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-17 17:23:05 +08:00
bunnie
b77827f2ed
fix data type for hosted mode
2021-02-17 16:58:46 +08:00
Sean Cross
50e72bf837
loader: disable interrupts in the kernel
...
This disables interrupts when the kernel is running.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-17 16:49:38 +08:00
bunnie
8646662804
commit checkpoint for xobs
2021-02-17 16:10:05 +08:00
Sean Cross
fbad2e4391
kernel: riscv: don't allow multi-sharing of lends
...
Initially, we wanted to be able to immutably lend data in a one-to-many
fashion. However, this has proven challenging, and doesn't have any
immediately obvious useful benefits.
For now, only allow one-to-one immutable lends.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-16 20:26:27 +08:00
Sean Cross
b9a4e11a64
kernel: riscv: use bit flags for irq handler
...
Instead of hardcoding bit values, use the symbolic names. This will
ensure we don't make mistakes by using magic numbers.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-16 20:25:42 +08:00
Sean Cross
1394e1c7d5
xtask: use hw_pkgs to build renode image
...
This ensures the renode image has the same set of packages as hardware.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-16 20:25:08 +08:00
bunnie
b803d7d4e9
commit that captures the multiple lend bug
2021-02-16 12:42:11 +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
2a46f541f2
add PID identification facility to help with debugging
2021-02-15 19:15:58 +08:00
bunnie
af012c48dc
getting a little further with the port, but still crashing on a borrow message
2021-02-15 04:42:30 +08:00
bunnie
fc8290cdb4
futzing around and something is kind of working on xous-string port to rkyv
2021-02-15 00:05:42 +08:00
bunnie
ed5cdabe40
port COM name registration to use rkyv instead of Sendable
2021-02-13 17:52:50 +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
bunnie
9f79367d1c
Merge branch 'hardware-rkyv' into hardware
2021-02-12 01:56:50 +08:00
bunnie
24e7885779
change out hw-image servers for rkyv testing
2021-02-12 01:51:42 +08:00
bunnie
6bbb3f9644
add note about where things got left off
2021-02-10 20:59:14 +08:00
Sean Cross
405469b637
benchmark-target: remove Lookup reference
...
This private API is no longer used.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-10 15:22:28 +08:00
Sean Cross
4c76bb1a3d
emulation: memlcd: fix of-by-one error in redraw
...
This would cause us to escape the screen under rare circumstances.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-10 15:21:44 +08:00
Sean Cross
6162284d76
xtask: add missing programs to renode_image
...
These were missing from renode_image but were present in hardware.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-10 15:21:23 +08:00
Sean Cross
7d40c749f0
keyboard: remove internal xous_names API
...
This API is now private.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-10 15:13:25 +08:00
Sean Cross
704c0f47bf
com: don't use internal xous_names register api
...
This API is now private.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-10 15:03:35 +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
Sean Cross
374e411b74
cargo: use resolver 2 to fix graphics issue
...
The graphics server has an issue where something upstream is activating
the "std" feature on "log", which prevents us from compiling anything
that includes the "log" crate. Which is everything.
Use resolver "2", which requires Rust 1.51 or newer.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-10 15:00:16 +08:00
Sean Cross
86140dfb35
tools: specify v0.4 for log
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-06 16:36:34 +08:00
Sean Cross
1e17d6402d
services: benchmark-target: don't use private Lookup struct
...
Use a custom struct instead.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-04 10:34:22 +08:00
Sean Cross
3bd32389bf
benchmark-target: don't use private Lookup field
...
This field was made private by the nameserver. Use a dummy structure
instead.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-04 10:32:58 +08:00
Sean Cross
715e76bee0
kernel: allow connection IDs to be u32
...
In an effort to homogonize platforms, we are moving away from `usize` in
favour of `u32`. Allow the `CID` type to be a `u32` in the kernel by
casting it to a `usize` as necessary.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-04 10:29:12 +08:00
Sean Cross
00ef495b09
cargo: refresh upstream version numbers
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-04 10:28:53 +08:00
Sean Cross
2c2cc7eb9a
imports: blitstr: sync with upstream version
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-02-04 10:28:00 +08:00