riscv-software-src / riscv-pk

RISC-V Proxy Kernel
Other
596 stars 308 forks source link

Openat sys call #252

Open S-Nomii opened 3 years ago

S-Nomii commented 3 years ago

Hi I'm studying how to call linux system function using risc-v asm. Can anyone tell me how to call openat function. I have already learned that the sequence of calling Open funciton:

  1. put 1024 into a7.
  2. put other arguments into a0~a6
  3. use ecall to call open

But I fail to find openat's syscall number in syscall.h Can anyone help me with this.