Skip to content

CSRW Instruction error during compilation using PULP-RISC-V toolchain #34

@reinaldoasf

Description

@reinaldoasf

Hello! I'm having an issue when I try to compile an OS using the PULP-RISC-V toolchain. During the process, I've reached this Error: Instruction csrw requires absolute expression.
The mentioned function is the following:

static inline void rv32gc_satp_write(rv32gc_word_t val)
{
asm volatile(
"csrw satp, %0;"
:
: "r" (val)
);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions