[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCHv3 07/14] unicore32-softmmu: Add puv3 soc/board s
From: |
Blue Swirl |
Subject: |
Re: [Qemu-devel] [PATCHv3 07/14] unicore32-softmmu: Add puv3 soc/board support |
Date: |
Thu, 21 Jun 2012 17:15:46 +0000 |
On Wed, Jun 20, 2012 at 1:56 AM, Guan Xuetao <address@hidden> wrote:
> On Mon, 2012-06-18 at 20:02 +0000, Blue Swirl wrote:
> [snip]
>> > diff --git a/hw/puv3.h b/hw/puv3.h
>> > new file mode 100644
>> > index 0000000..bcfc978
>> > --- /dev/null
>> > +++ b/hw/puv3.h
>> > @@ -0,0 +1,49 @@
>> > +/*
>> > + * Misc PKUnity SoC declarations
>> > + *
>> > + * Copyright (C) 2010-2012 Guan Xuetao
>> > + *
>> > + * This program is free software; you can redistribute it and/or modify
>> > + * it under the terms of the GNU General Public License version 2 as
>> > + * published by the Free Software Foundation, or any later version.
>> > + * See the COPYING file in the top-level directory.
>> > + */
>> > +#ifndef __PUV3_H__
>>
>> Use of leading underscores is reserved to Posix, please use for
>> example HW_PUV3_H.
> Ok, I will change it.
> Perhaps I'm wrong, but IMHO, leading underscores are used pervasively
> for headers protection and low-level definitions.
It's unfortunately common, but as mentioned in HACKING file, those are
reserved to C and POSIX use. For example Linux kernel can disregard
this, because it doesn't use libc and GCC does not exercise the right
to use the reserved prefixes. I guess some people copy this style to
applications where it's no longer correct.
>
> Guan Xuetao
>
>
>
- [Qemu-devel] [PATCHv3 03/14] unicore32-softmmu: Make UniCore32 cpuid & exceptions correct and runable, (continued)
[Qemu-devel] [PATCHv3 07/14] unicore32-softmmu: Add puv3 soc/board support, Guan Xuetao, 2012/06/18
[Qemu-devel] [PATCHv3 10/14] unicore32-softmmu: Add puv3 gpio support, Guan Xuetao, 2012/06/18
[Qemu-devel] [PATCHv3 08/14] unicore32-softmmu: Add puv3 interrupt support, Guan Xuetao, 2012/06/18
[Qemu-devel] [PATCHv3 14/14] unicore32-softmmu: Add maintainer information for UniCore32 machine, Guan Xuetao, 2012/06/18
[Qemu-devel] [PATCHv3 09/14] unicore32-softmmu: Add puv3 ostimer support, Guan Xuetao, 2012/06/18
[Qemu-devel] [PATCHv3 05/14] unicore32-softmmu: Implement softmmu specific functions, Guan Xuetao, 2012/06/18
[Qemu-devel] [PATCHv3 13/14] unicore32-softmmu: Add ps2 support, Guan Xuetao, 2012/06/18
[Qemu-devel] [PATCHv3 11/14] unicore32-softmmu: Add puv3 pm support, Guan Xuetao, 2012/06/18