syscall_linkage
Can somebody explain me, please, what the difference is between an __attribute__((syscall_linkage)) call and a regular one ?
The Itanium Software Conventions & Runtime Architecture Guide does not say a word about it, does it mean it is a non standard way to pass parameters ?
What registers need / do not need to be saved with respect to what is written in the Intel book ?
Thanks,
Zoltán Menyhárt
Hi,
Quoted 3 lines · Zoltan Menyhart
Can somebody explain me, please, what the difference is between an __attribute__((syscall_linkage)) call and a regular one ?
It indicates to the compiler that the arguments of the function are to be treated read-only. If they need to be modified, then a copy is made into other registers. This is necessary for the system call entry points because some syscalls can be restarted and they need to restart we the orginal values. Remember that all syscall arguments are passed in registers AND the registers come straight from the user level, i.e., they are never copied.
Quoted 14 lines
The Itanium Software Conventions & Runtime Architecture Guide does not say a word about it, does it mean it is a non standard way to pass parameters ?
What registers need / do not need to be saved with respect to what is written in the Intel book ?
Thanks,
Zoltán Menyhárt
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 1 line
-Stephane
Zoltan,
The quick summary can be found in asm-ia64/ptrace.h. Also, my book has a fairly extensive discussion of how machine-state is handled on ia64 linux.
--david
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line · Zoltan Menyhart
Zoltan> Can somebody explain me, please, what the difference is between an Zoltan> __attribute__((syscall_linkage)) call and a regular one ?
Zoltan> The Itanium Software Conventions & Runtime Architecture Guide does Zoltan> not say a word about it, does it mean it is a non standard way to Zoltan> pass parameters ?
Zoltan> What registers need / do not need to be saved with respect to what Zoltan> is written in the Intel book ?
Quoted 2 lines · Zoltan Menyhart
Can somebody explain me, please, what the difference is between an __attribute__((syscall_linkage)) call and a regular one ?
It also prohibits use of input registers for local values, thus helping to prevent kernel data from accidentally leaking back to application code. The input registers will be visible to the caller after the syscall returns because of the register windows.
See the gcc code that implements syscall_linkage in gcc/config/ia64/ia64.c.
Signature · 1 line
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com