From: Gabriel Paubert <paubert@iram.es>
To: willy tarreau <wtarreau@yahoo.fr>, linux-kernel@vger.kernel.org
Subject: Re: [ANNOUNCE] CMOV emulation for 2.4.19-rc1
Date: Mon, 01 Jul 2002 18:25:39 +0200 [thread overview]
Message-ID: <3D208283.7010106@iram.es> (raw)
In-Reply-To: 20020701130327.38962.qmail@web20506.mail.yahoo.com
willy tarreau wrote:
> Hello Denis,
>
>
>>This code is performance critical.
>>With this in mind,
>
>
> Yes and no. In fact, I first wanted to code some
> parts in assembler because GCC is sub-optimal
> on bit-fields calculations. But then, I realized that
> I could save, say 10 cycles, while the trap costs
> about 400 cycles.
>
>
>>+static void *modrm_address(struct pt_regs *regs,
>>unsigned char **from, char w, char bit32,
>>w seems to be unused
>
>
> Well, you're right, it's not used anymore. It was
> used to check if the instruction applies to a byte
> or a word.
>
>
>>Why? i86 can do unaligned accesses:
>> offset = *(u32*)(*from); *from += 4;
>
>
> that's simply because I'm not sure if the kernel
> runs with AC flag on or off. I quickly checked
> that it's OK from userland.
AC is only checked when running at CPL==3, i.e.,
you'll never get an alignment trap in the kernel.
Gabriel
next prev parent reply other threads:[~2002-07-01 16:23 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-30 4:39 [ANNOUNCE] CMOV emulation for 2.4.19-rc1 Willy TARREAU
2002-07-01 13:58 ` Denis Vlasenko
2002-07-01 13:03 ` willy tarreau
2002-07-01 15:55 ` Bill Davidsen
2002-07-02 10:46 ` Denis Vlasenko
2002-07-02 6:31 ` willy tarreau
2002-07-02 12:03 ` Denis Vlasenko
2002-07-01 16:25 ` Gabriel Paubert [this message]
2002-07-01 17:08 ` willy tarreau
2002-07-01 18:16 ` Denis Vlasenko
2002-07-01 13:25 ` willy tarreau
2002-07-02 20:00 ` Willy TARREAU
2002-07-03 0:36 ` jw schultz
2002-07-18 19:15 ` Robert de Bath
2002-07-18 20:44 ` jw schultz
2002-07-01 18:25 ` Denis Vlasenko
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=3D208283.7010106@iram.es \
--to=paubert@iram.es \
--cc=linux-kernel@vger.kernel.org \
--cc=wtarreau@yahoo.fr \
/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