x86, mm: Move reserving low memory later in initialization
authorH. Peter Anvin <hpa@zytor.com>
Thu, 14 Feb 2013 22:02:52 +0000 (14:02 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 14 Feb 2013 23:21:25 +0000 (15:21 -0800)
commit95c9608478d639dcffc14ea47b31bff021a99ed1
tree3e9d8ced416416150946605ffd7fe8cfb1ad6d64
parentff52c3b02b3f73178bfe0c219cd22abdcb0e46c3
x86, mm: Move reserving low memory later in initialization

Move the reservation of low memory, except for the 4K which actually
does belong to the BIOS, later in the initialization; in particular,
after we have already reserved the trampoline.

The current code locates the trampoline as high as possible, so by
deferring the allocation we will still be able to reserve as much
memory as is possible.  This allows us to run with reservelow=640k
without getting a crash on system startup.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Link: http://lkml.kernel.org/n/tip-0y9dqmmsousf69wutxwl3kkf@git.kernel.org
arch/x86/kernel/setup.c