WSL2-Linux-Kernel/arch/ia64/mm
Tony Luck 10617bbe84 [IA64] Ensure cpu0 can access per-cpu variables in early boot code
ia64 handles per-cpu variables a litle differently from other architectures
in that it maps the physical memory allocated for each cpu at a constant
virtual address (0xffffffffffff0000). This mapping is not enabled until
the architecture specific cpu_init() function is run, which causes problems
since some generic code is run before this point. In particular when
CONFIG_PRINTK_TIME is enabled, the boot cpu will trap on the access to
per-cpu memory at the first printk() call so the boot will fail without
the kernel printing anything to the console.

Fix this by allocating percpu memory for cpu0 in the kernel data section
and doing all initialization to enable percpu access in head.S before
calling any generic code.

Other cpus must take care not to access per-cpu variables too early, but
their code path from start_secondary() to cpu_init() is all in arch/ia64

Signed-off-by: Tony Luck <tony.luck@intel.com>
2008-08-12 10:34:20 -07:00
..
Makefile [PATCH] ia64: ioremap: check EFI for valid memory attributes 2006-03-26 08:56:54 -08:00
contig.c [IA64] Ensure cpu0 can access per-cpu variables in early boot code 2008-08-12 10:34:20 -07:00
discontig.c [IA64] Ensure cpu0 can access per-cpu variables in early boot code 2008-08-12 10:34:20 -07:00
extable.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
fault.c [IA64] kprobes arch consolidation build fix 2008-03-06 09:49:01 -08:00
hugetlbpage.c GRU Driver: hardware data structures 2008-07-30 09:41:47 -07:00
init.c [IA64] fix personality(PER_LINUX32) performance issue 2008-05-15 09:54:19 -07:00
ioremap.c [IA64] make ioremap avoid unsupported attributes 2007-03-30 09:37:41 -07:00
numa.c [IA64] Minimize per_cpu reservations. 2008-04-08 13:51:35 -07:00
tlb.c [IA64] bugfix: nptcg breaks cpu-hotadd 2008-04-29 13:47:45 -07:00