Thread (5 messages) flat view 5 messages, 3 authors, 2012-05-30

RE: pread() and pwrite() system calls

From: Michael Ellerman <hidden>
Date: 2012-05-29 08:54:23

On Tue, 2012-05-29 at 09:28 +0100, David Laight wrote:
quoted
quoted
A special pread/pwrite asm stub that just copies
r7 to r0 could be used.

Would it be enough to do:
syscall_pread_pwrite:
	mov 0,7
	sc
	blr
and handle the -ve -> errno in C?
Huh? Won't fly, r0 is used for the system call number!
I was copying that from r7!
Using the non-existant 'mov' instruction!

or 0,7,7

is much clearer :)

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help