* [U-Boot] errno.h header -> asm-generic?
@ 2009-06-30 10:00 Michal Simek
2009-06-30 11:55 ` Stefan Roese
0 siblings, 1 reply; 4+ messages in thread
From: Michal Simek @ 2009-06-30 10:00 UTC (permalink / raw)
To: u-boot
Hi All,
I found that Microblaze miss errno.h file among some other minor fault which I want to fix.
Anyway I looked at errno.h header file for all arch which are in U-BOOT and I found that
almost all arch use the same file that's why I think that will be good to create (maybe asm-generic)
folder with these type of generic file.
What do you think guys?
Thanks,
Michal
--
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] errno.h header -> asm-generic?
2009-06-30 10:00 [U-Boot] errno.h header -> asm-generic? Michal Simek
@ 2009-06-30 11:55 ` Stefan Roese
2009-06-30 12:33 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Roese @ 2009-06-30 11:55 UTC (permalink / raw)
To: u-boot
Hi Michal,
On Tuesday 30 June 2009 12:00:55 Michal Simek wrote:
> I found that Microblaze miss errno.h file among some other minor fault
> which I want to fix.
>
> Anyway I looked at errno.h header file for all arch which are in U-BOOT and
> I found that almost all arch use the same file that's why I think that will
> be good to create (maybe asm-generic) folder with these type of generic
> file.
>
> What do you think guys?
Yes, I would welcome such a errno.h consolidation.
Thanks.
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] errno.h header -> asm-generic?
2009-06-30 11:55 ` Stefan Roese
@ 2009-06-30 12:33 ` Jean-Christophe PLAGNIOL-VILLARD
2009-06-30 13:55 ` Michal Simek
0 siblings, 1 reply; 4+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2009-06-30 12:33 UTC (permalink / raw)
To: u-boot
On 13:55 Tue 30 Jun , Stefan Roese wrote:
> Hi Michal,
>
> On Tuesday 30 June 2009 12:00:55 Michal Simek wrote:
> > I found that Microblaze miss errno.h file among some other minor fault
> > which I want to fix.
> >
> > Anyway I looked at errno.h header file for all arch which are in U-BOOT and
> > I found that almost all arch use the same file that's why I think that will
> > be good to create (maybe asm-generic) folder with these type of generic
> > file.
> >
> > What do you think guys?
>
> Yes, I would welcome such a errno.h consolidation.
ditto
Best Regards,
J.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] errno.h header -> asm-generic?
2009-06-30 12:33 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2009-06-30 13:55 ` Michal Simek
0 siblings, 0 replies; 4+ messages in thread
From: Michal Simek @ 2009-06-30 13:55 UTC (permalink / raw)
To: u-boot
Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 13:55 Tue 30 Jun , Stefan Roese wrote:
>> Hi Michal,
>>
>> On Tuesday 30 June 2009 12:00:55 Michal Simek wrote:
>>> I found that Microblaze miss errno.h file among some other minor fault
>>> which I want to fix.
>>>
>>> Anyway I looked at errno.h header file for all arch which are in U-BOOT and
>>> I found that almost all arch use the same file that's why I think that will
>>> be good to create (maybe asm-generic) folder with these type of generic
>>> file.
>>>
>>> What do you think guys?
>> Yes, I would welcome such a errno.h consolidation.
> ditto
>
I have just sent patch to mailing list.
Some my comments:
MIPS has incompatible errno.h that's why I don't remove it - it is up to custodian.
NIOS, NIOS2, i386 don't have errno.h is asm folder -> this mean for me that they don't
need it. If yes, let me know.
Some archs define EDEADLOCK to 58 and some as EDEADLK. I looked at Linux kernel
and there is EDEADLK that's why I added this implementation is asm-generic.
#define EDEADLOCK 58 /* File locking deadlock error */
#define EDEADLOCK EDEADLK
Some arch defined these 5 macros below - they are not used in U-BOOT that's why I removed them.
/* Should never be seen by user programs */
#define ERESTARTSYS 512
#define ERESTARTNOINTR 513
#define ERESTARTNOHAND 514 /* restart if no handler.. */
#define ENOIOCTLCMD 515 /* No ioctl command */
#define _LAST_ERRNO 515
Please test this change carefully. If you have any problem let me know.
Thanks,
Michal
> Best Regards,
> J.
--
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-06-30 13:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-30 10:00 [U-Boot] errno.h header -> asm-generic? Michal Simek
2009-06-30 11:55 ` Stefan Roese
2009-06-30 12:33 ` Jean-Christophe PLAGNIOL-VILLARD
2009-06-30 13:55 ` Michal Simek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox