Sean Cross
b71349f142
xtask: remove xous-names from renode image
...
This snuck in there from another branch.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-01-08 11:03:33 +08:00
Sean Cross
71dd57f5e0
loader: fix kernel text section ownership
...
The text section of the kernel should be owned by the kernel itself. Due
to a typo, only the last page of the text section was being marked as
owned by the text section.
This marks the remainder of the section as being owned by the kernel.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-01-08 11:02:44 +08:00
bunnie
b6a774742c
update emulation.svd
2021-01-07 19:31:03 +08:00
Sean Cross
e8f85c7373
graphics-server: minifb: use iterators for drawing the screen
...
This removes the bounds checks that were being performed, and goes for a
pure iterator approach.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-01-07 19:28:37 +08:00
Sean Cross
037bbdc430
xtask: emulation: add nameserver to renode image
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-01-07 18:51:57 +08:00
Sean Cross
f6bfd61cce
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 18:51:14 +08:00
Sean Cross
b16ad82e56
kernel: riscv: print out allocated address
...
This will aid in debugging.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-01-07 18:50:48 +08:00
Sean Cross
05464b945b
kernel: print out panic messages
...
This enables `println!()` but avoids the excessive debug spew
Signed-off-by: Sean Cross <sean@xobs.io>
2021-01-07 18:50:19 +08:00
Sean Cross
2d33c3903d
emulation: sync renode addresses
...
The addresses of the target system have changed. Update the platform
definition file to keep these addresses in sync.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-01-07 18:49:01 +08:00
Sean Cross
6cbec94953
kernel: riscv: use page base addr when allocating pages
...
When allocating a page, it is only assigned a physical address once it
is actually needed. This on-demand paging works well, however we were
assuming that the first address of a page was accessed first.
This fixes an issue where a Message is allocated but the first byte
isn't accessed first.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-01-07 13:34:42 +08:00
Sean Cross
655a5b1c59
Merge pull request #27 from hasheddan/syscall-create-server-typo
...
Fix server typos in syscall doc comments
2021-01-06 09:31:55 +08:00
hasheddan
666be8db7f
Fix server typos in syscall doc comments
...
Fixes a few minor typos in the sycall documentation comments.
Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2021-01-05 16:28:08 -06:00
Sean Cross
f6c3d955ea
xous: add ipc module
...
This module is a stopgap to allow for transferring structs and enums
between modules.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-01-03 18:57:46 +08:00
Sean Cross
7b50d00eb8
repo: run cargo fmt
...
This reformats line endings to be consistent, and reinforces the
contents of `.gitattributes`.
Signed-off-by: Sean Cross <sean@xobs.io>
2021-01-03 18:31:51 +08:00
Sean Cross
a36ceb00c2
kernel: use crossbeam for tests
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-12-30 16:51:21 +08:00
Sean Cross
c9cb50b579
kernel: use crossbeam-channel internally
...
This provides better performance than MPSC.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-12-30 16:50:28 +08:00
Sean Cross
12def62858
gitattributes: add more types to attribute list
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-12-30 16:48:53 +08:00
Sean Cross
036d4776b5
gitattributes: add rs, toml, and lock files
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-12-30 16:45:41 +08:00
Sean Cross
e88b4cae7c
emulation: update renode models to include trng
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-12-23 22:12:28 +08:00
bunnie
21b54a5033
get rid of an unnecessary &mut that makes svd2utra a bit difficult to use
2020-12-14 23:30:18 +08:00
bunnie
ed5624635b
Merge branch 'master' of https://github.com/betrusted-io/xous-core into hardware
2020-12-14 17:58:39 +08:00
bunnie
c9a18125df
add hardware TRNG support to kernel (issue #16 )
2020-12-14 17:57:29 +08:00
Sean Cross
ddd57c30bd
kernel: fix compile error when debug-print enabled
...
This tracks a variable that has been renamed, and was preventing the
kernel from compiling when debug printing is enabled.
This fixes #19 .
Signed-off-by: Sean Cross <sean@xobs.io>
2020-12-14 17:02:58 +08:00
Sean Cross
ed433c6011
Merge pull request #18 from ayshen/emulation-wdt
...
Copy WDT into emulator to fix build break
2020-12-13 14:04:23 +08:00
Andrew Shen
432a4467c3
Copy WDT into emulator to fix build break
...
Quick fix a build break in ticktimer-server by copying the WDT
from the SoC into the emulator so that it can reference
utra::wdt::WATCHDOG_RESET_CODE .
Signed-off-by: Andrew Shen <Andrew.Y.Shen@jacobs.ucsd.edu>
2020-12-12 21:06:05 -08:00
bunnie
09f3390524
update soc.svd to have latest perihperals
2020-12-13 02:24:41 +08:00
bunnie
fdf3f6860a
ugh fix more CI issues on "run" variant
2020-12-13 02:22:52 +08:00
bunnie
6b39946d31
fix git refs for push to master
2020-12-13 02:10:44 +08:00
bunnie
7488018e22
get wdt mods compiling into xtask run
2020-12-13 02:03:15 +08:00
bunnie
e1c4b702a9
add WDT support to xous-core
2020-12-13 01:54:25 +08:00
bunnie
95719852b3
Merge remote-tracking branch 'betrusted/master' into hardware
2020-12-12 12:58:06 +08:00
bunnie
06a2c5c2f1
Merge pull request #17 from hasheddan/tools-contrib
...
Update various README links to top-level documentation
2020-12-07 02:21:15 +08:00
hasheddan
0a6f63a129
Update loader README.md links to other docs
...
Fixes links in loader directory README.md to top-level documentation.
Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2020-12-06 10:43:07 -06:00
hasheddan
1953c0f9d9
Update kernel README.md links to other docs
...
Fixes links in kernel directory README.md to top-level documentation.
Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2020-12-06 10:41:53 -06:00
hasheddan
a4d18d6db2
Update tools README.md links to other docs
...
Fixes links in tools directory README.md to top-level documentation.
Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2020-12-06 10:40:45 -06:00
Sean Cross
f49518f7d5
kernel: add connect_for_process()
...
This allows one process to establish a connection to a server on behalf
of another process.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-12-04 23:25:41 +08:00
Sean Cross
1875126dba
xous: connect_for_process: add wrapper function
...
This provides a functional call around the raw syscall.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-12-04 22:50:49 +08:00
Sean Cross
06daa06921
xous: add syscall definition for ConnectForProcess
...
This call allows one process to establish a connection on behalf of
another process.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-12-04 22:47:01 +08:00
Sean Cross
b094f1147b
xous: implement sender.pid()
...
This is mostly an implementation detail, but appears to work.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-12-04 22:38:35 +08:00
Sean Cross
1fa83d1d94
xous: make MessageSender a struct
...
This is now an object instead of an alias for `usize`, in preparation
for adding a `.pid()` function.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-12-04 22:16:24 +08:00
Sean Cross
1f1a535801
kernel: fix pid generation for non-test case
...
When compiling under non-test scenarios, the `rand` create conflicts
with the new `rand` module.
Disambiguate this field.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-12-04 21:12:18 +08:00
Sean Cross
168ffe004e
kernel: use create_server() for some tests
...
Signed-off-by: Sean Cross <sean@xobs.io>
2020-12-04 20:59:21 +08:00
Sean Cross
85b6357d26
kernel: implement CreateServer
...
This implements CreateServer, which creates a server with a random name.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-12-04 20:58:14 +08:00
Sean Cross
f165130931
xous: add CreateServer syscall
...
This syscall has not yet been wired up.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-12-04 20:44:45 +08:00
Sean Cross
25e4d16de3
xous-os: rename CreateServer to CreateServerWithAddress
...
Servers will, by default, get randomly-assigned SIDs. Certain servers
will want to have well-known SIDs, such as the log server or the
nameserver. These will use a separate call in order to perform this
priveledged operation.
A subsequent patch will add `CreateServer`.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-12-04 20:33:33 +08:00
Sean Cross
3df80a9291
Merge branch 'master' of github.com:betrusted-io/xous-core into master
2020-12-04 19:54:25 +08:00
bunnie
bcb52f1a59
eliminate unused code
2020-12-03 23:58:26 +08:00
bunnie
fbf9d7a342
add some docs on the name server
2020-12-03 23:58:06 +08:00
bunnie
bd64323f36
revert to local repo for builds
2020-12-03 01:54:21 +08:00
bunnie
72ed8cd35d
refer to pushed gitref for merge to main
2020-12-03 01:52:20 +08:00