xref: /haiku/src/system/kernel/arch/x86/arch_commpage_compat.cpp (revision 9f739dd2e868114ce19ae73afcff07caf2ddb8b6)
1 /*
2  * Copyright 2018, Jérôme Duval, jerome.duval@gmail.com.
3  * Copyright 2008-2011, Ingo Weinhold, ingo_weinhold@gmx.de.
4  * Copyright 2007, Travis Geiselbrecht. All rights reserved.
5  * Distributed under the terms of the MIT License.
6  */
7 
8 
9 #include <commpage_compat.h>
10 
11 #include "x86_signals.h"
12 #include "x86_syscalls.h"
13 
14 
15 void x86_compat_initialize_commpage_signal_handler();
16 
17 
18 status_t
19 arch_commpage_compat_init(void)
20 {
21 	return B_OK;
22 }
23 
24 
25 status_t
26 arch_commpage_compat_init_post_cpus(void)
27 {
28 	// select the optimum syscall mechanism and patch the commpage
29 	x86_compat_initialize_syscall();
30 
31 	// initialize the signal handler code in the commpage
32 	x86_compat_initialize_commpage_signal_handler();
33 
34 	return B_OK;
35 }
36