[lkml]   [2001]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [Acpi] Re: ACPI fundamental locking problems
Jeff Garzik <> writes:

> "Eric W. Biederman" wrote:
> > That and the linux tools for making small binaries are relatively
> > immature.
> I am rapidly discovering that :(
> I wouldn't mind, for example, having a linker that is smart enough to
> eliminate dead code inside code sections, and can rewrite function
> prologues to more optimized forms once it knows the entire scope of said
> functions. (ie. an optimizing linker)

I'll worry about the linker when the embedded libc problem is handled.
uClibc is the most mature when I looked several months ago, and unlike dietlibc
it actually tried not to user kernel headers.

> > > I don't like the current initrd very much myself, I have to admit. I'm not
> > > going to accept a "you have to have a ramdisk" approach - I think the
> > > ramdisks are really broken.
> > >
> > > But I've seen a "populate ramfs from a tar-file built into 'bzImage'"
> > > patch somewhere, and that would be a whole lot more palatable to me.
> >
> > To some extent I'd prefer to build the tar-file into vmlinux as that
> > makes it a multi architecture solution. I don't like the fact that
> > rdev only works on x86.
> IMHO rdev -should- work on other platforms. There -should- be a way to
> set flags inside an already-built kernel image. That concept is not
> inherently x86.
> That is why I favor
> cat bzImage ramfs.tar.gz > vmlinuz
> rdev vmlinuz i-have-a-ramfs
> It's -much- more flexible than actually building the initramfs into the
> kernel.
> Admittedly I'm biased but IMHO the only reason why people want to lose
> flexibility by avoiding this approach is to avoid coming up with an rdev
> concept that works on alpha, sparc, ... :)

Which is why I mentioned vmlinux. All platforms build it at some stage.

> > - The version of ``preinit'' cannot use glibc, there is too much
> > bloat. uclibc is o.k. but a little immature. We can probably use
> > the infrastructure we have in linux/unistd.h for doing system calls
> > from the kernel to remove any dependieces on other packages. But
> > using kernel headers from user space has been outlawed...
> There should be no need to use linux/unistd.h infrastructure. dietlibc
> is just as small (smaller than uClibc in the cases I've tried), and has
> already done this. They even have dynamic linking going for x86, arm,
> sparc, and maybe others.

I've played with it. Dietlibc is horrible on alpha. The basic problem
is dependecies on kernel headers. uClibc was at least straight forward
to port. In my backlog of things to do is get the uClibc port to alpha

> > - We must be architecture netural. Do this only for x86 is
> > unacceptable.
> obviously

I saw plenty of reference to bzImage and vmlinuz, it is only obvious
in hindsight.

> > - The _init stuff that allows us to throw code after device
> > initialization would need to be disabled to some extent because it
> > would now depends on code in user space.
> I don't see this at all, can you elaborate?

Well if you don't know the devices is there, you can't throw away it's
initialization routine. This problem already exists to some extent with
hot-plug pci devices. But if you treat the host pci bridge as a hot-plug
pci device, then everything else is as well..

> > Irq tables. A corrected system memory map. Builtin ISA devices.
> > Long term we need is an interface to feed a pre intialized
> > ``struct device'' (the renamed struct pci_device) tree into the kernel.
> ie. come up with our own firmware->kernel information passing interface
> :)
> Let's make it better than ACPI this time, shall we? :)

It's probably the most important thing on my todo list, (with the
exception of convincing AMD it's not a problem to release a few extra
lines of code)... Though
since it is most grunt work and detail checking I'm not even going to
look at it until I'm back from vacation :)

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:57    [W:0.121 / U:1.604 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site