Re: [patch] inotify: ppc64 syscalls.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Robert Love <[email protected]>
Date: Wed, 27 Jul 2005 13:31:36 -0400

> [ I don't think we need sys32 compatibility versions--and if we do, I
> failed in life. ]

add_watch and rm_watch both do, because system call arguments are
zero-extended by default for compat tasks, thus the "fd" arg needs
sign extension.

You'll notice that sys_ppc32.c has a ton of shims which purely
exist to sign extend "int" system call arguments.  Sparc64 does
something similarly, but in assembler so that we don't eat the
overhead of a full stack frame just to sign extend arguments.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux