linux-um archives
 help / color / mirror / Atom feed
From: Matt Ayres <matta@tektonic.net>
To: BlaisorBlade <blaisorblade_spam@yahoo.it>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] [PATCH] skas3 for x86_64 arch
Date: Fri, 20 Feb 2004 16:05:26 -0500	[thread overview]
Message-ID: <1077311125.8412.78.camel@wopr.tektonic.net> (raw)
In-Reply-To: <200402202155.44773.blaisorblade_spam@yahoo.it>

On Fri, 2004-02-20 at 15:55, BlaisorBlade wrote:
> Alle 20:24, venerdì 20 febbraio 2004, Matt Ayres ha scritto:
> > Hi,
> >
> > I just did a quick port of the skas3 patch to the x86_64 architecture.
> > Everything seems very straightforward except for the do_mmap2 function.
> 
> Sorry, but you've changed the prototype of sys32_mmap2 by adding the mm 
> parameter (which goes only on do_mmap2). So it cannot possibly compile.

That area confuses me, I can't find anything in the kernel that actually
uses sys32_mmap2.  I've changed it for compatibility, but i'm not sure
how it will work.  do_mmap2 doesn't exist for x86_64.  do_mmap2 did
exist in kernel 2.4.20 and I simply copied the code from there.  I've
uploaded a new patch,
https://www.tektonic.net/public/linux-2.4.25-x86_64-skas3.patch.  I
wasn't using the updated skas patch for 2.4.25 so it wouldn't have
worked anyway.  The main problem I think is that skas changes the
do_mmap_pgoff function, so I had to update the arch/x86_64/sys_x86_64.c
file also where I don't even think it will actually touch any code in
that file as UML will be running in 32-bit mode.



> 
> Have you tried a cross build with make ARCH=x86_64 ? I'm not sure if that can 
> work or requires cross-compilators, but maybe not.

Yes, I tried that and got an error very early saying it can't be done. 
The x86_64 emulator seems to cost money.  I'll have to see if i'm using
a cross compiler or not, I always thought gcc had that enabled by
default.

-- 
Matt Ayres <matta@tektonic.net>
TekTonic



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  reply	other threads:[~2004-02-20 21:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-20 19:24 [uml-devel] [PATCH] skas3 for x86_64 arch Matt Ayres
2004-02-20 20:55 ` BlaisorBlade
2004-02-20 21:05   ` Matt Ayres [this message]
2004-02-21  9:45     ` Cameron Patrick
2004-02-22  2:51       ` matta
2004-02-22  3:06         ` Cameron Patrick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1077311125.8412.78.camel@wopr.tektonic.net \
    --to=matta@tektonic.net \
    --cc=blaisorblade_spam@yahoo.it \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox