kernel_optimize_test/include/asm-arm
Mike Westerhof 033b8ffe3f [ARM] 4599/1: Preserve ATAG list for use with kexec (2.6.23)
This patch resolves a kexec boot failure that can occur because
no ATAGs are passed in to the kexec'd kernel. Currently the
newly-kexec'd kernel may fail if it requires specific ATAGs, or
it may fail because the fixed memory location at which it expects
to find the ATAGs may contain random data instead of ATAGs.

The patch ensures that any ATAGs passed to the current kernel
at boot time are copied to a static buffer, and are copied back
when kexec copies the new kernel into place. Thus the new
kernel sees the same ATAGs from kexec and the boot loader.

The boot parameters are copied without regard to type, content,
or length -- this patch's scope is limited soley to saving and
restoring a fixed-size block of memory containing the kernel's
boot parameters. Additional functionality to examine, alter, or
replace the ATAGs (using kexec, for example) can be implemented
by manipulating the static buffer containing the preserved ATAGs.

Note: the size of the buffer (1.5KB) is selected to comfortably
hold one of each ATAG type, including a maximum-length command
line and the maximum number of ATAG_MEM structures currently
supported by the kernel. Should an ATAG list exceed that limit,
the list will be silently truncated to that limit (to do other-
wise at that point in the boot process would make a simple
problem exceedingly complicated).

[Note: this is the same patch as 4579, modified to accomodate
the ATAG changes introduced in 2.6.23]

Signed-off-by: Mike Westerhof <mwester at dls.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2007-10-12 23:43:48 +01:00
..
arch-aaec2000
arch-at91 [ARM] 4553/1: ARM at91: define FIQ_START 2007-08-23 12:34:42 +01:00
arch-cl7500 [ARM] Use new get_irqnr_preamble 2007-05-12 15:25:50 +01:00
arch-clps711x
arch-davinci [ARM] 4432/5: davinci: pin mux support 2007-07-12 09:57:09 +01:00
arch-ebsa110 [ARM] Use new get_irqnr_preamble 2007-05-12 15:25:50 +01:00
arch-ebsa285 [ARM] Use new get_irqnr_preamble 2007-05-12 15:25:50 +01:00
arch-ep93xx
arch-h720x
arch-imx arm: i.MX/MX1 SDHC implements SD cards read-only switch read-back 2007-09-24 19:33:14 +02:00
arch-integrator [ARM] Remove Integrator/CP SMP platform support 2007-05-16 15:35:26 +01:00
arch-iop13xx [ARM] 4495/1: iop: combined watchdog timer driver for iop3xx and iop13xx 2007-07-20 09:35:42 +01:00
arch-iop32x [ARM] 4476/1: EM7210/SS4000E support 2007-07-20 09:35:35 +01:00
arch-iop33x iop3xx: surface the iop3xx DMA and AAU units to the iop-adma driver 2007-07-13 08:06:19 -07:00
arch-ixp4xx USB: pxa2xx_udc: use generic gpio layer 2007-07-12 16:34:42 -07:00
arch-ixp23xx [ARM] "extern inline" -> "static inline" 2007-10-12 23:43:17 +01:00
arch-ixp2000
arch-ks8695 [ARM] 4377/1: KS8695: GPIO driver 2007-07-12 11:12:34 +01:00
arch-l7200
arch-lh7a40x
arch-mxc [ARM] 4530/1: MXC: fix elf_hwcap compile breakage as in iop13xx 2007-07-28 20:52:55 +01:00
arch-netx [ARM] 4329/1: fix position of NETX_SYSTEM_REG 2007-05-03 20:22:49 +01:00
arch-ns9xxx [ARM] 4595/1: ns9xxx: define registers as void __iomem * instead of volatile u32 2007-10-12 23:43:41 +01:00
arch-omap ARM: OMAP: H3 workqueue fixes 2007-08-22 00:42:51 -07:00
arch-pnx4008
arch-pxa backlight: Convert corgi backlight driver into a more generic driver 2007-10-11 22:24:13 +01:00
arch-realview [ARM] Use new get_irqnr_preamble 2007-05-12 15:25:50 +01:00
arch-rpc [ARM] 4564/1: Add tagged list support for Acorn RiscPC's uncompress code 2007-10-12 23:43:11 +01:00
arch-s3c2400 [ARM] 4522/1: S3C: split include/asm-arm/arch/memory.h 2007-07-22 17:06:04 +01:00
arch-s3c2410 [ARM] 4596/1: S3C2412: Correct IRQs for SDI+CF and add decoding support 2007-10-12 23:43:42 +01:00
arch-sa1100 [ARM] unbalanced parenthesis fix 2007-10-12 23:43:21 +01:00
arch-shark
arch-versatile [ARM] Use new get_irqnr_preamble 2007-05-12 15:25:50 +01:00
hardware [ARM] 4495/1: iop: combined watchdog timer driver for iop3xx and iop13xx 2007-07-20 09:35:42 +01:00
mach [ARM] use __used attribute 2007-05-30 13:15:06 +01:00
plat-s3c [ARM] 4551/1: s3c24xx: fix wrong virtual address offsets 2007-08-23 12:36:40 +01:00
plat-s3c24xx [ARM] 4524/1: S3C: Move register out of include/asm-arm/arch-s3c2410 2007-07-22 17:06:30 +01:00
.gitignore
a.out.h arch: personality independent stack top 2007-07-19 10:04:45 -07:00
assembler.h
atomic.h atomic.h: atomic_add_unless as inline. Remove system.h atomic.h circular dependency 2007-05-08 11:15:20 -07:00
auxvec.h
bitops.h
bug.h
bugs.h
byteorder.h
cache.h
cacheflush.h [ARM] 4554/1: replace consistent_sync() with flush_ioremap_region() 2007-08-23 12:31:31 +01:00
checksum.h
cnt32_to_63.h
cpu-multi32.h
cpu-single.h
cpu.h
cputime.h
current.h
delay.h
device.h
div64.h
dma-mapping.h [ARM] Rename consistent_sync() as dma_cache_maint() 2007-10-12 23:43:45 +01:00
dma.h
domain.h
dyntick.h
ecard.h [ARM] ecard: add ecardm_iomap() / ecardm_iounmap() 2007-05-11 17:19:02 +01:00
elf.h [ARM] 4496/1: elf_hwcap: fix up #include misplacement 2007-07-20 21:29:18 +01:00
emergency-restart.h
errno.h
fb.h fbdev: detect primary display device 2007-07-17 10:23:11 -07:00
fcntl.h
fiq.h
flat.h
floppy.h [ARM] avoid floppy warnings by using fd_dma_setup() 2007-07-20 09:39:57 +01:00
fpstate.h
futex.h
glue.h [ARM] armv7: add support for ARMv7 cores. 2007-05-08 22:55:53 +01:00
gpio.h
hardirq.h
hardware.h
hw_irq.h
hwcap.h [ARM] 4473/2: Take the HWCAP definitions out of the elf.h file 2007-07-12 16:20:15 +01:00
ide.h
io.h [ARM] 4388/1: no need for arm/mm mmap range checks for non-mmu 2007-05-20 19:36:14 +01:00
ioctl.h
ioctls.h [ARM] enable arbitary speed tty ioctls and split input/output speed 2007-05-28 23:07:34 +01:00
ipc.h
ipcbuf.h
irq_regs.h
irq.h
irqflags.h
Kbuild [ARM] 4473/2: Take the HWCAP definitions out of the elf.h file 2007-07-12 16:20:15 +01:00
kdebug.h move die notifier handling to common code 2007-05-08 11:15:04 -07:00
kexec.h [ARM] 4599/1: Preserve ATAG list for use with kexec (2.6.23) 2007-10-12 23:43:48 +01:00
kmap_types.h
leds.h
limits.h
linkage.h [ARM] VFP: fix section mismatch error 2007-06-10 12:22:20 +01:00
local.h
locks.h
mc146818rtc.h
memory.h
mman.h
mmu_context.h [ARM] ARMv6: add CPU_HAS_ASID configuration 2007-05-17 10:19:23 +01:00
mmu.h [ARM] ARMv6: add CPU_HAS_ASID configuration 2007-05-17 10:19:23 +01:00
mmzone.h
module.h
msgbuf.h
mtd-xip.h
mutex.h
namei.h
nwflash.h
page-nommu.h
page.h
param.h
parport.h
pci.h PCI: remove pci_dac_dma_... APIs 2007-07-11 16:02:11 -07:00
percpu.h
pgalloc.h
pgtable-hwdef.h
pgtable-nommu.h [ARM] 4531/1: remove is_in_rom() protptype 2007-08-04 22:13:43 +01:00
pgtable.h mm: remove ptep_establish() 2007-07-17 10:22:59 -07:00
poll.h Consolidate asm/poll.h 2007-05-11 08:29:34 -07:00
posix_types.h
proc-fns.h [ARM] armv7: add support for ARMv7 cores. 2007-05-08 22:55:53 +01:00
processor.h
procinfo.h
ptrace.h [ARM] 4474/1: Do not check the PSR_F_BIT in valid_user_regs 2007-07-12 16:20:52 +01:00
resource.h
rtc.h
scatterlist.h
sections.h
segment.h
semaphore-helper.h
semaphore.h
sembuf.h
serial.h
setup.h [ARM] use __used attribute 2007-05-30 13:15:06 +01:00
shmbuf.h
shmparam.h
sigcontext.h
siginfo.h
signal.h
sizes.h [ARM] 4372/1: Define byte sizes in asm-arm/sizes.h 2007-05-11 21:07:58 +01:00
smp.h
socket.h
sockios.h
spinlock_types.h
spinlock.h
stat.h
statfs.h
string.h
suspend.h
system.h [PATCH] sched: sched_cacheflush is now unused 2007-07-19 21:28:35 +02:00
termbits.h [ARM] enable arbitary speed tty ioctls and split input/output speed 2007-05-28 23:07:34 +01:00
termios.h [ARM] enable arbitary speed tty ioctls and split input/output speed 2007-05-28 23:07:34 +01:00
therm.h
thread_info.h remove unused TIF_NOTIFY_RESUME flag 2007-07-31 15:39:38 -07:00
thread_notify.h
timex.h
tlb.h
tlbflush.h [ARM] 4394/1: ARMv7: Add the TLB range operations 2007-05-30 14:32:07 +01:00
topology.h
traps.h
types.h
uaccess.h
ucontext.h
unaligned.h arm unaligned.h annotations 2007-07-26 11:11:57 -07:00
unistd.h [ARM] Add fallocate syscall entry 2007-10-12 23:43:31 +01:00
user.h
vfp.h [ARM] vfp: make fpexc bit names less verbose 2007-07-20 09:39:57 +01:00
vfpmacros.h
vga.h
xor.h