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: Fri, 9 Nov 2007 22:37:33 +0100	[thread overview]
Message-ID: <20071109213733.GH23437@thorin> (raw)
In-Reply-To: <87abpnl9th.fsf@xs4all.nl>

On Fri, Nov 09, 2007 at 04:26:02PM +0100, Marco Gerards wrote:
> >
> > 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...)
> 
> That's possible in C++ using operator overloading AFAIK.

Ah, right.  Maybe we could switch to building with g++ just to get this
feature ;-)

> Did this commit fix serial support for LB?

No, it fixed a bug affecting all platforms (i.e. both of them ;-)).

For serial.mod to work on LB, we need the other patch (the machine.h one).

-- 
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-09 21:37 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
2007-11-09 15:26         ` Marco Gerards
2007-11-09 21:37           ` Robert Millan [this message]

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=20071109213733.GH23437@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.