Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalBlk committed Jul 4, 2022
2 parents ac0c346 + 44530a8 commit f6c05dc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sys/drv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ SOURCES-AARCH64 = \
SOURCES-RISCV = \
clint.c \
liteuart.c \
litex_riscv_rootdev.c \
plic.c \
riscv_rootdev.c \
sbi_console.c \
sifive_uart.c

Expand Down
4 changes: 4 additions & 0 deletions sys/drv/litex_riscv_rootdev.c → sys/drv/riscv_rootdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,11 @@ static int rootdev_attach(device_t *bus) {
return ENXIO;

rman_init(&rd->mem_rm, "RISC-V I/O space");
#if __riscv_xlen == 64
rman_manage_region(&rd->mem_rm, 0x00000000, 0x30000000);
#else
rman_manage_region(&rd->mem_rm, 0xf0000000, 0x10000000);
#endif

/*
* NOTE: supervisor can only control supervisor and user interrupts, however,
Expand Down
2 changes: 1 addition & 1 deletion sys/drv/simplebus.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ static int sb_intr_to_rl(device_t *dev) {

end:
kfree(M_DEV, intrs);
return 0;
return err;
}

int simplebus_add_child(device_t *bus, const char *path, int unit,
Expand Down

0 comments on commit f6c05dc

Please sign in to comment.