/* * 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. */ }
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)); /* */ }