lkml.org 
[lkml]   [2006]   [Feb]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: sys_mmap2 on different architectures
From
From: "H. Peter Anvin" <hpa@zytor.com>
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-02-23 02:06    [W:0.061 / U:2.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site