lkml.org 
[lkml]   [1997]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: /proc/kcore

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



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