mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 10:31:33 -04:00
Merge branches 'fixes' and 'misc' into for-linus
This commit is contained in:
@@ -557,9 +557,16 @@ ENTRY(__switch_to)
|
||||
ldmia r4, {r4 - sl, fp, ip, lr} @ Load all regs saved previously
|
||||
#ifdef CONFIG_VMAP_STACK
|
||||
@
|
||||
@ Do a dummy read from the new stack while running from the old one so
|
||||
@ that we can rely on do_translation_fault() to fix up any stale PMD
|
||||
@ entries covering the vmalloc region.
|
||||
@ For a non-lazy mm switch, check_vmalloc_seq() has ensured that
|
||||
@ that the active mm's page tables have mappings for the prev
|
||||
@ task's stack and the next task's stack.
|
||||
@
|
||||
@ For a lazy mm switch the active mm's page tables have mappings
|
||||
@ for the prev task's stack but might not have mappings for the
|
||||
@ new task's stack. Do a dummy read from the new stack while
|
||||
@ running from the old stack so that we can rely on
|
||||
@ do_translation_fault() to populate missing PMD entries covering the
|
||||
@ new task's stack in the old task's page tables.
|
||||
@
|
||||
ldr r2, [ip]
|
||||
#ifdef CONFIG_KASAN_VMALLOC
|
||||
|
||||
@@ -8,8 +8,6 @@
|
||||
*
|
||||
* These are the low level assembler for performing cache and TLB
|
||||
* functions on the arm920.
|
||||
*
|
||||
* CONFIG_CPU_ARM920_CPU_IDLE -> nohlt
|
||||
*/
|
||||
#include <linux/linkage.h>
|
||||
#include <linux/init.h>
|
||||
|
||||
@@ -9,8 +9,6 @@
|
||||
*
|
||||
* These are the low level assembler for performing cache and TLB
|
||||
* functions on the arm922.
|
||||
*
|
||||
* CONFIG_CPU_ARM922_CPU_IDLE -> nohlt
|
||||
*/
|
||||
#include <linux/linkage.h>
|
||||
#include <linux/init.h>
|
||||
|
||||
@@ -15,8 +15,6 @@
|
||||
* These are the low level assembler for performing cache and TLB
|
||||
* functions on the arm925.
|
||||
*
|
||||
* CONFIG_CPU_ARM925_CPU_IDLE -> nohlt
|
||||
*
|
||||
* Some additional notes based on deciphering the TI TRM on OMAP-5910:
|
||||
*
|
||||
* NOTE1: The TI925T Configuration Register bit "D-cache clean and flush
|
||||
|
||||
@@ -8,8 +8,6 @@
|
||||
*
|
||||
* These are the low level assembler for performing cache and TLB
|
||||
* functions on the arm926.
|
||||
*
|
||||
* CONFIG_CPU_ARM926_CPU_IDLE -> nohlt
|
||||
*/
|
||||
#include <linux/linkage.h>
|
||||
#include <linux/init.h>
|
||||
|
||||
@@ -1649,24 +1649,16 @@ static int __init run_all_tests(void)
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
late_initcall(run_all_tests);
|
||||
|
||||
/*
|
||||
* Module setup
|
||||
*/
|
||||
|
||||
#ifdef MODULE
|
||||
|
||||
static void __exit kprobe_test_exit(void)
|
||||
{
|
||||
}
|
||||
|
||||
module_init(run_all_tests)
|
||||
module_exit(kprobe_test_exit)
|
||||
|
||||
MODULE_DESCRIPTION("Test code for ARM kprobes");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
#else /* !MODULE */
|
||||
|
||||
late_initcall(run_all_tests);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user