Re: sys_mmap2 on different architectures

From: David S. Miller
Date: Wed Feb 22 2006 - 20:01:32 EST


From: "H. Peter Anvin" <hpa@xxxxxxxxx>
Date: Wed, 22 Feb 2006 16:59:04 -0800

> On the other hand, sys32_mmap2 on SPARC64 matches the SPARC32 sys_mmap2
> in that the shift is hard-coded to 12:
>
> .globl sys32_mmap2
> sys32_mmap2:
> sethi %hi(sys_mmap), %g1
> jmpl %g1 + %lo(sys_mmap), %g0
> sllx %o5, 12, %o5

Another good catch...

> At this point, I'm more than willing to treat SPARC as a special case,
> but I really want to know what the rules actually _ARE_ as opposed to
> what they are supposed to be (which they clearly are not.)

I have to admit I'm totally stumped...

Why are you invoking mmap2() instead of mmap64() btw?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/