Why is stdint.h so little used?

2016-11-30 Thread Bjørn Forsman
Hi all, I see that grub has an stdint.h header in grub-core/lib/posix_wrap/stdint.h. But hardly any code use it. Why is that? When projects have these custom types (e.g. grub_uint32_t) it just makes porting more difficult IMHO. I'm currently working on a xHCI driver for GRUB, and I'd like to use

Re: Why is stdint.h so little used?

2016-11-30 Thread Bjørn Forsman
On 30 November 2016 at 11:12, Bjørn Forsman wrote: > Hi all, > > I see that grub has an stdint.h header in > grub-core/lib/posix_wrap/stdint.h. But hardly any code use it. Why is > that? The only reason I can think of, in general, is if you want to support pre-C99 toolchains. But in GRUB's case,

Re: [PATCH 2/2] ofnet: implement a receive buffer

2016-11-30 Thread Stanislav Kholmanskikh
On 11/23/2016 06:09 PM, Stanislav Kholmanskikh wrote: > > > On 11/23/2016 02:16 PM, Daniel Kiper wrote: >> On Tue, Nov 22, 2016 at 05:08:25PM +0300, Stanislav Kholmanskikh wrote: >>> On 11/22/2016 12:48 AM, Daniel Kiper wrote: On Fri, Nov 18, 2016 at 04:29:24PM +0300, Stanislav Kholmanskik

GRUB stdint.h is "leaky"

2016-11-30 Thread Bjørn Forsman
Hi all, I noticed that grub-core/lib/posix_wrap/stdint.h leaks symbols. It pulls in , which in turn pulls in . And that is how we end up with symbols like "grub_printf" from stdint.h. That's not what I'd expect :-) Best regards, Bjørn Forsman ___ Grub

Re: Boot Linux through GRUB2 on AMD DB-FT3b-LC

2016-11-30 Thread Grigore Lupescu
Hello Andrei, Unfortunately not - I cannot attach a serial. My only options excluding HDMI output are LPC (ordered header) and USB (with hacks, don't want to try this one yet). Any suggestions on debug would definitely help. >From the looks of it it might be a Coreboot problem rather than a GRUB2

Re: Boot Linux through GRUB2 on AMD DB-FT3b-LC

2016-11-30 Thread Andrei Borzenkov
30.11.2016 18:59, Grigore Lupescu пишет: > Hello Andrei, > > Unfortunately not - I cannot attach a serial. My only options excluding > HDMI output are LPC (ordered header) and USB (with hacks, don't want to try > this one yet). Any suggestions on debug would definitely help. > > From the looks of

Re: GRUB stdint.h is "leaky"

2016-11-30 Thread Andrei Borzenkov
30.11.2016 18:42, Bjørn Forsman пишет: > Hi all, > > I noticed that grub-core/lib/posix_wrap/stdint.h leaks symbols. It > pulls in , which in turn pulls in . And that > is how we end up with symbols like "grub_printf" from stdint.h. > What exact problem does it cause? __

Re: GRUB stdint.h is "leaky"

2016-11-30 Thread Bjørn Forsman
On 30 November 2016 at 17:54, Andrei Borzenkov wrote: > 30.11.2016 18:42, Bjørn Forsman пишет: >> Hi all, >> >> I noticed that grub-core/lib/posix_wrap/stdint.h leaks symbols. It >> pulls in , which in turn pulls in . And that >> is how we end up with symbols like "grub_printf" from stdint.h. > >

Re: Fails to build with GCC from Debian Sid/unstable: `/usr/bin/ld: -r and -pie may not be used together`

2016-11-30 Thread Andrei Borzenkov
Ping. Does proposed patch work for you? 26.11.2016 20:07, Andrei Borzenkov пишет: > 26.11.2016 19:48, Paul Menzel пишет: >> Dear GRUB folks, >> >> >> Using Debian Sid/unstable with GCC 6.2, which has PIE enabled by >> default *in Debian* since some time [1], building GRUB for the platform >> *core