root/src/system/kernel/arch/x86/arch_commpage_compat.cpp
/*
 * Copyright 2018, Jérôme Duval, jerome.duval@gmail.com.
 * Copyright 2008-2011, Ingo Weinhold, ingo_weinhold@gmx.de.
 * Copyright 2007, Travis Geiselbrecht. All rights reserved.
 * Distributed under the terms of the MIT License.
 */


#include <commpage_compat.h>

#include "x86_signals.h"
#include "x86_syscalls.h"


void x86_compat_initialize_commpage_signal_handler();


status_t
arch_commpage_compat_init(void)
{
        return B_OK;
}


status_t
arch_commpage_compat_init_post_cpus(void)
{
        // select the optimum syscall mechanism and patch the commpage
        x86_compat_initialize_syscall();

        // initialize the signal handler code in the commpage
        x86_compat_initialize_commpage_signal_handler();

        return B_OK;
}