Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime error running on RISCV #198

Closed
Shuumatsu opened this issue Aug 8, 2021 · 1 comment · Fixed by #202
Closed

Runtime error running on RISCV #198

Shuumatsu opened this issue Aug 8, 2021 · 1 comment · Fixed by #202

Comments

@Shuumatsu
Copy link

cd zCore
make run arch=riscv64 linux=1

按照 Quick start for RISCV64 执行后出现运行时异常

OpenSBI v0.8
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name       : riscv-virtio,qemu
Platform Features   : timer,mfdeleg
Platform HART Count : 1
Boot HART ID        : 0
Boot HART ISA       : rv64imafdcsu
BOOT HART Features  : pmp,scounteren,mcounteren,time
BOOT HART PMP Count : 16
Firmware Base       : 0x80000000
Firmware Size       : 92 KB
Runtime SBI Version : 0.2

MIDELEG : 0x0000000000000222
MEDELEG : 0x000000000000b109
PMP0    : 0x0000000080000000-0x000000008001ffff (A)
PMP1    : 0x0000000000000000-0xffffffffffffffff (A,R,W,X)
[334.8694ms  WARN 0 0:0] rust_main(), After logging init


Uart output testing
+++ Setting up UART interrupts +++
+++ Setting up PLIC +++
+++ setup interrupt +++
Exception::Breakpoint: A breakpoint set @0xffffffff8034bdd2 
Setup virtio @devicetree 0xffffffff87e00000
[417.9476ms ERROR 0 0:0] 

panicked at 'attempt to create unaligned or null slice', /home/curry/.rustup/toolchains/nightly-2021-07-27-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/slice/raw.rs:130:5
@DeathWish5 DeathWish5 linked a pull request Aug 11, 2021 that will close this issue
@DeathWish5
Copy link
Contributor

Fixed by PR#202.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants