diff --git a/kernel/drivers/opensbi/opensbi.cpp b/kernel/drivers/opensbi/opensbi.cpp index 677b999..330c6f9 100644 --- a/kernel/drivers/opensbi/opensbi.cpp +++ b/kernel/drivers/opensbi/opensbi.cpp @@ -20,11 +20,11 @@ namespace opensbi { register sbiword_t r_a3 asm("a3") = a3; register sbiword_t r_a4 asm("a4") = a4; register sbiword_t r_a5 asm("a5") = a5; - asm volatile("ecall" : // Instruction - "=r"(r_a0), "=r"(r_a1) : // Inputs - "r"(r_a7), "r"(r_a6), // Outputs - "r"(r_a0), "r"(r_a1), "r"(r_a2), - "r"(r_a3), "r"(r_a4), "r"(r_a5)); + asm volatile( + "ecall" : + "=r"(r_a0), "=r"(r_a1) : + "r"(r_a0), "r"(r_a1), "r"(r_a2), "r"(r_a3), + "r"(r_a4), "r"(r_a5), "r"(r_a7), "r"(r_a6)); return {.error = r_a0, .value = r_a1}; }