mirror of
https://github.com/ziglang/zig.git
synced 2024-11-15 00:26:57 +00:00
std.builtin.CallingConvention: RISC-V PrivilegeLevel
-> PrivilegeMode
The RISC-V specification uses these terms a little interchangably, but "mode" seems more correct here.
This commit is contained in:
parent
a2c519ba67
commit
67580ede5e
@ -469,10 +469,10 @@ pub const CallingConvention = union(enum(u8)) {
|
||||
/// The boundary the stack is aligned to when the function is called.
|
||||
/// `null` means the default for this calling convention.
|
||||
incoming_stack_alignment: ?u64 = null,
|
||||
/// The privilege level.
|
||||
level: PrivilegeLevel = .machine,
|
||||
/// The privilege mode.
|
||||
mode: PrivilegeMode = .machine,
|
||||
|
||||
pub const PrivilegeLevel = enum(u2) {
|
||||
pub const PrivilegeMode = enum(u2) {
|
||||
user,
|
||||
supervisor,
|
||||
machine,
|
||||
|
Loading…
Reference in New Issue
Block a user