Commit graph

674 commits

Author SHA1 Message Date
bunnie
2958858a3a refactor to use UTRA for control registers 2021-01-13 01:17:43 +08:00
bunnie
812fbf5d4f this patch fixes the previous commit's panic 2021-01-13 00:32:07 +08:00
bunnie
a404e4ae61 this panics with an alignment error (double string) issue #32 2021-01-13 00:27:12 +08:00
bunnie
c848d374c6 roll back the build time notice
Turns out the build time only seems to capture the last time
you managed to force a full rebuild (???). Even though cargo
indicates that a rebuild had happened of the main.rs, the environment
variable containing the time is not being updated, because the
build.rs file isn't being run. But! if you force a trigger of
that file, then cargo decides to rebuild *everything* which greatly
increases the build time, which is a drag for development.

So, just remove the build time notice. If it's not going to be
correct, better to not emit it than to be outright misleading...
2021-01-13 00:24:12 +08:00
bunnie
f5f04a52bb update lockfile for vergen inclusion 2021-01-12 23:31:13 +08:00
bunnie
0a3c50f820 add build timestamping/versioning to the Xous log output 2021-01-12 23:30:52 +08:00
bunnie
2eafe825b8 refactor COM to use generic name registrations for event listeners 2021-01-12 18:44:02 +08:00
bunnie
7cf70892c1 Merge branch 'master' of github.com:betrusted-io/xous-core 2021-01-12 04:21:09 +08:00
bunnie
cd4ea5ed17 make the run variant not break 2021-01-12 04:20:37 +08:00
bunnie
426c747f8f keyboard server basics seem working 2021-01-12 04:13:15 +08:00
bunnie
5cad631569 now it works! changing usize -> u8 did the trick. don't know why. spooky. 2021-01-12 02:08:20 +08:00
bunnie
6a3833ebc7 commit of mysterious tuple-vec problem 2021-01-12 01:37:52 +08:00
bunnie
aeadbfb1b5 fix up keyboard API to use scalars, add demo connection
also fix a bunch of other idiomatic weirdnesses
2021-01-12 00:00:57 +08:00
bunnie
f166073954 first draft of keyboard server 2021-01-11 06:11:15 +08:00
bunnie
fb13768ebe
Add files via upload 2021-01-09 16:01:50 +08:00
bunnie
4a32baf12f fix SVD sample file issues that are breaking CI 2021-01-09 02:38:02 +08:00
bunnie
a8d31cb7e2 update README and add xous-names into renode image 2021-01-09 02:23:01 +08:00
bunnie
7781749371 Merge branch 'master' of github.com:betrusted-io/xous-core 2021-01-09 02:16:18 +08:00
bunnie
ea78de8014 convert all services to use xous-names server 2021-01-09 02:12:01 +08:00
Sean Cross
47e0b85b1b 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 19:37:15 +08:00
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
4ef581a266 riddled with race conditions, but...sort of works 2021-01-08 05:20:53 +08:00
bunnie
8a8d675ebf add the names.rs 2021-01-07 22:30:54 +08:00
bunnie
ab6fa7ae1c another intermediate checkout 2021-01-07 22:30:26 +08:00
bunnie
95d4f03591 intermediate checkin 2021-01-07 21:53:08 +08:00
bunnie
9716eba039 Merge remote-tracking branch 'origin/master' into hardware 2021-01-07 20:34:04 +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
Sean Cross
147100fa38 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 20:30:42 +08:00
Sean Cross
e12a02b1c5 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:28:20 +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
bunnie
323c11f554 commit a version that exhausts the kernel allocation 2021-01-07 16:58:13 +08:00
Sean Cross
b884c8ed4f 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:40:21 +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
bunnie
dcdd33e594 copy svd file to renode emulation every time on build 2021-01-06 22:08:29 +08:00
bunnie
0ad4377586 update emulation.svd 2021-01-06 13:13:53 +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
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