RV32 SoC DS UG
High-Perf RV32 SoC DS UG
RV64 SoC DS UG API and Examples
Embedded IDE UG
Loading...
Searching...
No Matches
Assembly Context Helpers

Overview

Macros to abstract XLEN (32 vs 64-bit) for inline assembly.

Note
These are used inside trap_entry to save/restore registers width-agnostically.

Macros

#define STORE   "sw"
 Store Word (32-bit).
#define LOAD   "lw"
 Load Word (32-bit).
#define GPR_SIZE   "4"
#define STACK_SIZE   "64"

Macro Definition Documentation

◆ GPR_SIZE

#define GPR_SIZE   "4"

#include <mtrap.h>

Definition at line 74 of file mtrap.h.

◆ LOAD

#define LOAD   "lw"

#include <mtrap.h>

Load Word (32-bit).

Definition at line 73 of file mtrap.h.

◆ STACK_SIZE

#define STACK_SIZE   "64"

#include <mtrap.h>

Definition at line 75 of file mtrap.h.

◆ STORE

#define STORE   "sw"

#include <mtrap.h>

Store Word (32-bit).

Definition at line 72 of file mtrap.h.