android_kernel_motorola_sm6225/arch/x86/boot
Paul Jackson c3965bd151 x86 boot: proper use of ARRAY_SIZE instead of repeated E820MAX constant
This patch is motivated by a subsequent patch which will allow for more
memory map entries on EFI supported systems than can be passed via the x86
legacy BIOS E820 interface.  The legacy interface is limited to E820MAX ==
128 memory entries, and that "E820MAX" manifest constant was used as the
size for several arrays and loops over those arrays.

The primary change in this patch is to change code loop sizes over those
arrays from using the constant E820MAX, to using the ARRAY_SIZE() macro
evaluated for the array being looped.  That way, a subsequent patch can
change the size of some of these arrays, without breaking this code.

This patch also adds a parameter to the sanitize_e820_map() routine,
which had an implicit size for the array passed it of E820MAX entries.
This new parameter explicitly passes the size of said array.  Once again,
this will allow a subsequent patch to change that array size for some
calls to sanitize_e820_map() without breaking the code.

As part of enhancing the sanitize_e820_map() interface this way, I further
combined the unnecessarily distinct x86_32 and x86_64 declarations for
this routine into a single, commonly used, declaration.

This patch in itself should make no difference to the resulting kernel
binary.

[ mingo@elte.hu: merged to -tip ]

Signed-off-by: Paul Jackson <pj@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-05-25 10:55:11 +02:00
..
compressed x86: relocs ELF handling - use SELFMAG instead of numeric constant 2008-05-04 20:04:45 +02:00
tools x86: add a crc32 checksum to the kernel image. 2008-04-17 17:40:46 +02:00
.gitignore Update .gitignore files 2008-04-25 12:27:32 -07:00
a20.c x86: remove pointless comments 2008-04-19 19:19:54 +02:00
apm.c x86: remove pointless comments 2008-04-19 19:19:54 +02:00
bitops.h x86: remove pointless comments 2008-04-19 19:19:54 +02:00
boot.h x86: remove pointless comments 2008-04-19 19:19:54 +02:00
cmdline.c x86: remove pointless comments 2008-04-19 19:19:54 +02:00
code16gcc.h i386: move boot 2007-10-11 11:16:45 +02:00
copy.S x86: remove pointless comments 2008-04-19 19:19:54 +02:00
cpu.c x86 setup: print missing CPU features in cleartext 2008-02-04 16:48:00 +01:00
cpucheck.c x86: remove pointless comments 2008-04-19 19:19:54 +02:00
edd.c edd: add default mode CONFIG_EDD_OFF=n, override with edd={on,off} 2008-04-29 08:06:23 -07:00
header.S x86, boot: add linked list of struct setup_data 2008-04-26 21:34:42 +02:00
install.sh x86: remove pointless comments 2008-04-19 19:19:54 +02:00
main.c x86: remove pointless comments 2008-04-19 19:19:54 +02:00
Makefile x86: move suspend wakeup code to C 2008-04-17 17:41:37 +02:00
mca.c x86: remove pointless comments 2008-04-19 19:19:54 +02:00
memory.c x86 boot: proper use of ARRAY_SIZE instead of repeated E820MAX constant 2008-05-25 10:55:11 +02:00
mkcpustr.c x86 setup: print missing CPU features in cleartext 2008-02-04 16:48:00 +01:00
mtools.conf.in i386: move boot 2007-10-11 11:16:45 +02:00
pm.c x86: remove pointless comments 2008-04-19 19:19:54 +02:00
pmjump.S x86: remove pointless comments 2008-04-19 19:19:54 +02:00
printf.c x86: remove pointless comments 2008-04-19 19:19:54 +02:00
setup.ld i386: move boot 2007-10-11 11:16:45 +02:00
string.c x86: remove pointless comments 2008-04-19 19:19:54 +02:00
tty.c x86: remove pointless comments 2008-04-19 19:19:54 +02:00
version.c x86: remove pointless comments 2008-04-19 19:19:54 +02:00
vesa.h x86-boot: don't request VBE2 information 2008-03-07 16:39:14 +01:00
video-bios.c x86: remove pointless comments 2008-04-19 19:19:54 +02:00
video-mode.c x86: move suspend wakeup code to C 2008-04-17 17:41:37 +02:00
video-vesa.c x86: remove pointless comments 2008-04-19 19:19:54 +02:00
video-vga.c x86: remove pointless comments 2008-04-19 19:19:54 +02:00
video.c x86: remove pointless comments 2008-04-19 19:19:54 +02:00
video.h x86: remove pointless comments 2008-04-19 19:19:54 +02:00
voyager.c x86: remove pointless comments 2008-04-19 19:19:54 +02:00