Skip to content

【提问】RT-Thread编译后出现supervisor特权级的CSR #19

@shili2017

Description

@shili2017

按照教程编译OSCPU/rt-thread之后,把elf文件dump了一下,发现有如下指令。

    80008f74:	9e850513          	addi	a0,a0,-1560 # 80016958 <rt_data_queue_deinit+0x12e8>
    80008f78:	e3dfd0ef          	jal	ra,80006db4 <rt_kprintf>
    80008f7c:	180027f3          	csrr	a5,satp
    80008f80:	fef43023          	sd	a5,-32(s0)
    80008f84:	fe043783          	ld	a5,-32(s0)

查阅指令集文档得知satp是supervisor特权级的CSR,是否意味着需要对rt-thread代码做进一步修改?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions