entry-header.S (f163f0302ab69722c052519f4014814bf10026a9) | entry-header.S (24a9c54182b3758801b8ca6c8c237cc2ff654732) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2#include <linux/init.h> 3#include <linux/linkage.h> 4 5#include <asm/assembler.h> 6#include <asm/asm-offsets.h> 7#include <asm/errno.h> 8#include <asm/thread_info.h> --- 352 unchanged lines hidden (view full) --- 361#endif /* !CONFIG_THUMB2_KERNEL */ 362 .endm 363 364/* 365 * Context tracking subsystem. Used to instrument transitions 366 * between user and kernel mode. 367 */ 368 .macro ct_user_exit, save = 1 | 1/* SPDX-License-Identifier: GPL-2.0 */ 2#include <linux/init.h> 3#include <linux/linkage.h> 4 5#include <asm/assembler.h> 6#include <asm/asm-offsets.h> 7#include <asm/errno.h> 8#include <asm/thread_info.h> --- 352 unchanged lines hidden (view full) --- 361#endif /* !CONFIG_THUMB2_KERNEL */ 362 .endm 363 364/* 365 * Context tracking subsystem. Used to instrument transitions 366 * between user and kernel mode. 367 */ 368 .macro ct_user_exit, save = 1 |
369#ifdef CONFIG_CONTEXT_TRACKING | 369#ifdef CONFIG_CONTEXT_TRACKING_USER |
370 .if \save 371 stmdb sp!, {r0-r3, ip, lr} 372 bl user_exit_callable 373 ldmia sp!, {r0-r3, ip, lr} 374 .else 375 bl user_exit_callable 376 .endif 377#endif 378 .endm 379 380 .macro ct_user_enter, save = 1 | 370 .if \save 371 stmdb sp!, {r0-r3, ip, lr} 372 bl user_exit_callable 373 ldmia sp!, {r0-r3, ip, lr} 374 .else 375 bl user_exit_callable 376 .endif 377#endif 378 .endm 379 380 .macro ct_user_enter, save = 1 |
381#ifdef CONFIG_CONTEXT_TRACKING | 381#ifdef CONFIG_CONTEXT_TRACKING_USER |
382 .if \save 383 stmdb sp!, {r0-r3, ip, lr} 384 bl user_enter_callable 385 ldmia sp!, {r0-r3, ip, lr} 386 .else 387 bl user_enter_callable 388 .endif 389#endif --- 78 unchanged lines hidden --- | 382 .if \save 383 stmdb sp!, {r0-r3, ip, lr} 384 bl user_enter_callable 385 ldmia sp!, {r0-r3, ip, lr} 386 .else 387 bl user_enter_callable 388 .endif 389#endif --- 78 unchanged lines hidden --- |