Re: FreeBSD AMD64 kernel calling convention
- In reply to: Daniel Cervus : "FreeBSD AMD64 kernel calling convention"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 19 Jan 2023 15:11:23 UTC
It's the same as Linux. rdi, rsi, rdx, r10, r8, r9 in that order. rcx and r11 destroy'd immediately upon syscall invocation. Thanks, Paul Procacci On Wed, Jan 18, 2023 at 11:08 PM Daniel Cervus <DanieltheDeer@outlook.com> wrote: > Hi, everyone. I’m learning AMD64 assembly language. But seems I cannot > find much information about FreeBSD kernel interface, does it follows the > same calling convention as described in System V AMD64 ABI? Or it is like > Linux kernel calling convention, uses R10 instead of RCX to pass parameters? > > > > Daniel > -- __________________ :(){ :|:& };: