All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: grub2 ChangeLog term/i386/pc/serial.c
Date: Wed, 7 Nov 2007 22:28:32 +0100	[thread overview]
Message-ID: <20071107212832.GA17708@thorin> (raw)
In-Reply-To: <47322185.2040005@nic.fi>

On Wed, Nov 07, 2007 at 10:35:17PM +0200, Vesa Jääskeläinen wrote:
> > grub_inb() and grub_outb() are based on the inb()/outb() implementation
> > from glibc headers, so I kept the same arguments for consistency.
> 
> I see... Once again inconsistency introduced by Unix folks... as AT&T
> assembler wouldn't be enough, they then poisons C libs too... oh well...
> another thing to try to keep in mind...

I always thought the Right Way to do this would be implement it in GCC,
so that you can do things like:

  __some_magic__(PORT_ADDR) |= 0x80;

which is much more beatufil than either of:

  outb (PORT_ADDR, inb (PORT_ADDR) | 0x80);

  outb (inb (PORT_ADDR) | 0x80, PORT_ADDR);

don't you think?

(now if someone is bored and takes my suggestion to gcc-patches, that'd make
my day...)

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)



  reply	other threads:[~2007-11-07 21:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1IpVtw-0001l3-2T@cvs.savannah.gnu.org>
2007-11-06 21:33 ` grub2 ChangeLog term/i386/pc/serial.c Vesa Jääskeläinen
2007-11-07 20:19   ` Robert Millan
2007-11-07 20:35     ` Vesa Jääskeläinen
2007-11-07 21:28       ` Robert Millan [this message]
2007-11-09 15:26         ` Marco Gerards
2007-11-09 21:37           ` Robert Millan

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=20071107212832.GA17708@thorin \
    --to=rmh@aybabtu.com \
    --cc=grub-devel@gnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.