Prv8 Shell
Server : Apache
System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64
User : matalashes ( 1004)
PHP Version : 8.1.29
Disable Function : NONE
Directory :  /usr/lib/modules/3.10.0-1160.90.1.el7.x86_64/build/arch/x86/include/asm/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib/modules/3.10.0-1160.90.1.el7.x86_64/build/arch/x86/include/asm/sync_core.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_X86_SYNC_CORE_H
#define _ASM_X86_SYNC_CORE_H

#include <linux/preempt.h>
#include <asm/processor.h>
#include <asm/cpufeature.h>
#include <asm/kaiser.h>

/*
 * Ensure that a core serializing instruction is issued before returning
 * to user-mode. x86 implements return to user-space through sysexit,
 * sysrel, and sysretq, which are not core serializing.
 */
static inline void sync_core_before_usermode(void)
{
	/* With PTI, we unconditionally serialize before running user code. */
	if (kaiser_active())
		return;
	/*
	 * Return from interrupt and NMI is done through iret, which is core
	 * serializing.
	 */
	if (in_irq() || in_nmi())
		return;
	sync_core();
}

#endif /* _ASM_X86_SYNC_CORE_H */

haha - 2025