[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Bug at line 497 of mmnommu/slab.c?
Hi David,
David Banas wrote:
> I think I just found a bug at line 497 of mmnommu/slab.c:
> "0" -> "0L"
>
> It was preventing my kernel from booting during the 'kmem_cache_init()'
> phase by giving a bogus cache size to a lower level function, which was, in
> turn, bailing out to 'machine_halt' after being asked to create a cache of
> over 3 billion bytes.
The compiler should promote the 0 to 0L automagically. What was the
bogus value passed to the lwoer level function?
> What's curious is this: the fix doesn't appear in the current CVS archive.
> So, my question is, how is anyone running successfully with this bug
> present?
That code is stable and works across all nommu arches, microblaze
included. I'm more inclined to suspect something specific to your setup.
When did you last update your kernel sources (not that it should matter
in this instance)?
What compiler version are you using?
Also, can you run mb-objdump -S over the slab.o file, and see what sort
of assembly is being generated?
Thanks,
John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/