Re: /proc/kcore
Eric Youngdale (eric@andante.jic.com)
Sun, 1 Jun 1997 20:18:14 -0400 (EDT)
trevor@jpj.net said:
> Andrew E. Mileski wrote:
>
> > -r-------- 1 root root 33558528 May 31 12:58 /proc/kcore
> >
> > My machine has 32MB = 33554432, so this is off by 4kB = 4096.
> > What's the extra 4kB for?
>
> from arch/i386/mm/init.c:
>
> /*
> * IBM messed up *AGAIN* in their thinkpad: 0xA0000 -> 0x9F000.
> * They seem to have done something stupid with the floppy
> * controller as well..
> */
> while (start_low_mem < 0x9f000+PAGE_OFFSET) {
> ___
> Trevor Johnson
>
>
Wrong answer. The extra 4096 is for a file header to make the
memory image look like a core file that you can read with the debugger.
-Eric