lkml.org 
[lkml]   [2009]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH RFC] x86: add brk allocation for very, very early allocations
Jeremy Fitzhardinge wrote:
>
> unsigned int boot_cpu_id __read_mostly;
> +__initdata unsigned long _brk_start, _brk_end;
>

Better yet, initialize _brk_start and _brk_end statically:

extern const char _end[];
__initdata unsigned long _brk_start = (unsigned long)&_end;
__initdata unsigned long _brk_end = (unsigned long)&_end;

That way it's available from the first instruction, and we can fully
remove the x86-32 init_pg_tables_end and replace it with _brk_end (thus
putting the initial page tables in the brk.)

-hpa

--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.



\
 
 \ /
  Last update: 2009-02-27 20:23    [W:1.414 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site