[arch][riscv] port to riscv64

Very little needed to port except to conditionalize some assembly in the
context switch and exception code. Mostly needed to move build system
stuff around and add a new project.
This commit is contained in:
Travis Geiselbrecht
2019-11-02 17:21:13 -07:00
parent ae5200595c
commit fdc08a8446
14 changed files with 173 additions and 142 deletions

View File

@@ -281,7 +281,7 @@ static void novm_dump_arena(struct novm_arena *n) {
}
mutex_acquire(&n->lock);
printf("name '%s', %d pages, each %zdk (%zdk in all)\n", n->name, n->pages, PAGE_SIZE >> 10, (PAGE_SIZE * n->pages) >> 10);
printf("name '%s', %zu pages, each %zdk (%zdk in all)\n", n->name, n->pages, (size_t)PAGE_SIZE >> 10, (size_t)(PAGE_SIZE * n->pages) >> 10);
printf(" range: %p-%p\n", (void *)n->base, (char *)n->base + n->size);
printf(" unaligned range: %p-%p\n", n->unaligned_area, n->unaligned_area + n->unaligned_size);
unsigned i;