随笔分类 -  riscv

1 2 下一页

apt install g++-8-riscv64-linux-gnu
摘要:apt install g++-8-riscv64-linux-gnu 阅读全文

posted @ 2022-03-23 09:20 tycoon3 阅读(63) 评论(0) 推荐(0) 编辑

Installing Debian On SiFiveHiFiveUnmatched
摘要:ubuntu@ubuntu:~/linux-5.14$ ls ./arch/riscv/boot/dts/sifive/ fu540-c000.dtsi hifive-unleashed-a00.dtb hifive-unmatched-a00.dtb Makefile fu740-c000.dts 阅读全文

posted @ 2022-03-21 20:23 tycoon3 阅读(82) 评论(0) 推荐(0) 编辑

抢占(PREEMPTION)是如何发生的
摘要:进程切换有自愿(Voluntary)和强制(Involuntary)之分,在前文中详细解释了两者的不同,简单来说,自愿切换意味着进程需要等待某种资源,强制切换则与抢占(Preemption)有关。 抢占(Preemption)是指内核强行切换正在CPU上运行的进程,在抢占的过程中并不需要得到进程的配 阅读全文

posted @ 2022-03-07 20:32 tycoon3 阅读(857) 评论(0) 推荐(0) 编辑

qemu-system-riscv64
摘要:qemu-system-riscv64 -M sifive_u 改成 qemu-system-riscv64 -M virt qemu-system-riscv64: clint: invalid write: 0000e8a4 qemu-system-riscv64: clint: invalid 阅读全文

posted @ 2022-01-21 19:34 tycoon3 阅读(577) 评论(0) 推荐(0) 编辑

gdb riscv 寄存器
摘要:For help, type "help". Type "apropos word" to search for commands related to "word". 0x0000000000001000 in ?? () (gdb) b xPortStartFirstTask Breakpoin 阅读全文

posted @ 2022-01-19 12:15 tycoon3 阅读(364) 评论(0) 推荐(0) 编辑

FreeRTOS
摘要:riscv 通用寄存器 CPU中包含32个通用寄存器,有时候也会被称为通用寄存器文件,如图1所示。通用寄存器的命名方式为X0-X31。其中第一个寄存器X0的值,被硬连线到0,因此值永远是0。其他寄存器X1-X31都是可读可写的。0-31也叫做索引号,索引号也可以理解为寄存器的地址,当指令需要调用通用 阅读全文

posted @ 2022-01-06 20:02 tycoon3 阅读(1103) 评论(0) 推荐(0) 编辑

Store/AMO access fault
摘要:运行05-Preemptive 05-Preemptive# riscv64-linux-gnu-objdump -d -t kernel.elf > dump.txt cat dump.txt | grep 800002ac -B 10 8000028c: 87aa mv a5,a0 800002 阅读全文

posted @ 2021-12-28 11:05 tycoon3 阅读(676) 评论(0) 推荐(0) 编辑

riscv_clocksource
摘要:static unsigned long long riscv_clocksource_rdtime(struct clocksource *cs) { return get_cycles64(); } clocksource clocksource 提供了对不同软硬件时钟的抽象。可以理解为时间源, 阅读全文

posted @ 2021-12-23 17:22 tycoon3 阅读(188) 评论(0) 推荐(0) 编辑

mini-riscv-os 05-Preemptive
摘要:void timer_init() { // each CPU has a separate source of timer interrupts. int id = r_mhartid(); // ask the CLINT for a timer interrupt. // int interv 阅读全文

posted @ 2021-12-22 17:02 tycoon3 阅读(82) 评论(0) 推荐(0) 编辑

Illegal instruction mret - mret指令返回异常
摘要:lesson7 qemu-system-riscv64 --version QEMU emulator version 6.1.0 Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers 执行mret 抛异常 I 阅读全文

posted @ 2021-12-22 11:38 tycoon3 阅读(426) 评论(0) 推荐(0) 编辑

enter_supervisor_mode
摘要:204 void enter_supervisor_mode(void (*fn)(uintptr_t), uintptr_t arg0, uintptr_t arg1) 205 { 206 uintptr_t mstatus = read_csr(mstatus); 207 mstatus = I 阅读全文

posted @ 2021-12-21 19:21 tycoon3 阅读(86) 评论(0) 推荐(0) 编辑

undefined reference to `__stack_chk_guard'
摘要:添加nostdlib CFLAGS = -Wall -mcmodel=medany -g -I $(IDIR) -O0 -nostdlib 阅读全文

posted @ 2021-12-21 17:16 tycoon3 阅读(73) 评论(0) 推荐(0) 编辑

iperf交叉编译
摘要:./configure --host=arm-linux-gnueabihf CC=arm-linux-gnueabihf-gcc CFLAGS=-static CXX=arm-linux-gnueabihf-g++ CXXFLAGS=-static root@ubuntu:/home/ubuntu 阅读全文

posted @ 2021-12-15 17:45 tycoon3 阅读(872) 评论(0) 推荐(0) 编辑

1 2 下一页

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示