From: Miguel Bolanos <mike@linuxlabs.com>
To: claudio@conectiva.com
Cc: Eduardo Pereira Habkost <ehabkost@conectiva.com.br>,
linux-8086@vger.kernel.org
Subject: Re: Experimental fix for my memcpy_{to,from}fs problem
Date: Wed, 02 Jun 2004 14:53:07 -0600 [thread overview]
Message-ID: <1086209587.3063.10.camel@talena.hsol.net> (raw)
In-Reply-To: <Pine.LNX.4.58L.0406012229500.27909@damien.conectiva>
Applied. Thanks
Mike
On Tue, 2004-06-01 at 19:33, claudio@conectiva.com wrote:
> On Tue, 1 Jun 2004, Eduardo Pereira Habkost wrote:
>
> > The following patch fixes the problem on my system. Probably
> > with some versions of bcc the patch will break something.
> >
> > I've added code to save the contents of SI and DI, I don't know if the
> > callers of these functions assume that SI and DI are touched, but just
> > in case.
> >
> > Now the system booted and ran flawlessly.
>
> You may need to apply the same fix in strlen_fromfs().
>
> diff -rud e/arch/i86/mm/user.c elks/arch/i86/mm/user.c
> --- e/arch/i86/mm/user.c 2004-06-01 22:29:01.000000000 -0300
> +++ elks/arch/i86/mm/user.c 2004-06-01 22:27:54.000000000 -0300
> @@ -165,8 +165,9 @@
>
> #ifndef S_SPLINT_S
> #asm
> -
> - mov ax,[bp-6] ! source segment (local variable)
> + push di
> + push si
> + mov ax,[bp-2] ! source segment (local variable)
> mov es,ax
> mov di,[bp+4] ! source address
> cld
> @@ -177,6 +178,8 @@
> sub di,[bp+4] ! calc len +1
> dec di
> mov [bp-6],di ! save in local var ds
> + pop si
> + pop di
> #endasm
> #endif
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-8086" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2004-06-02 20:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-01 21:32 memcpy_fromfs() failing. Wrong variable offsets Eduardo Pereira Habkost
2004-06-01 22:02 ` Experimental fix for my memcpy_{to,from}fs problem Eduardo Pereira Habkost
2004-06-01 22:30 ` Eduardo Pereira Habkost
2004-06-02 2:57 ` Miguel Bolanos
2004-06-02 16:25 ` Eduardo Pereira Habkost
2004-06-03 14:02 ` Miguel Bolanos
2004-06-03 14:14 ` Eduardo Pereira Habkost
2004-06-03 14:37 ` Paul Nasrat
2004-06-02 1:33 ` claudio
2004-06-02 20:53 ` Miguel Bolanos [this message]
2004-06-02 3:05 ` Miguel Bolanos
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=1086209587.3063.10.camel@talena.hsol.net \
--to=mike@linuxlabs.com \
--cc=claudio@conectiva.com \
--cc=ehabkost@conectiva.com.br \
--cc=linux-8086@vger.kernel.org \
/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