예제 #1
0
파일: signal.c 프로젝트: hyphenlee/linux
/*
 * Copy signal return handlers into the vector page, and
 * set sigreturn to be a pointer to these.
 */
void __init early_signal_init(void)
{
    memcpy((void *)kuser_vecpage_to_vectors(KERN_SIGRETURN_CODE),
           sigreturn_codes, sizeof(sigreturn_codes));
    memcpy((void *)kuser_vecpage_to_vectors(KERN_RESTART_CODE),
           syscall_restart_code, sizeof(syscall_restart_code));
    /* Need not to flush icache, since early_trap_init will do it last. */
}
예제 #2
0
void __init early_signal_init(void)
{
	memcpy((void *)kuser_vecpage_to_vectors(KERN_SIGRETURN_CODE),
			sigreturn_codes, sizeof(sigreturn_codes));
	memcpy((void *)kuser_vecpage_to_vectors(KERN_RESTART_CODE),
			syscall_restart_code, sizeof(syscall_restart_code));
	/*                                                                  */
}