initterm-r0drv-linux.c revision a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fc
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync/* $Id$ */
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync/** @file
c97989161fbe75bc14cea477a5443bbf474dd3advboxsync * innotek Portable Runtime - Initialization & Termination, R0 Driver, Linux.
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync */
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync/*
c97989161fbe75bc14cea477a5443bbf474dd3advboxsync * Copyright (C) 2006-2007 innotek GmbH
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync *
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync * available from http://www.virtualbox.org. This file is free software;
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync * you can redistribute it and/or modify it under the terms of the GNU
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * General Public License (GPL) as published by the Free Software
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync *
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * The contents of this file may alternatively be used under the terms
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * of the Common Development and Distribution License Version 1.0
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * VirtualBox OSE distribution, in which case the provisions of the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * CDDL are applicable instead of those of the GPL.
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync *
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * You may elect to license modified versions of this file under the
a16eb14ad7a4b5ef91ddc22d3e8e92d930f736fcvboxsync * terms and conditions of either the GPL or the CDDL or both.
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync */
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync/*******************************************************************************
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync* Header Files *
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync*******************************************************************************/
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync#include "the-linux-kernel.h"
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync#include <iprt/err.h>
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync#include <iprt/assert.h>
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync#include "internal/initterm.h"
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync/*******************************************************************************
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync* Internal Functions *
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync*******************************************************************************/
a4d7fc6f54717c342281099fe14f5666be9b7921vboxsync#ifdef RT_ARCH_AMD64
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync/* in alloc-r0drv0-linux.c */
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsyncextern void rtR0MemExecCleanup(void);
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync#endif
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsyncint rtR0InitNative(void)
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync{
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync return VINF_SUCCESS;
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync}
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsyncvoid rtR0TermNative(void)
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync{
a4d7fc6f54717c342281099fe14f5666be9b7921vboxsync#ifdef RT_ARCH_AMD64
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync rtR0MemExecCleanup();
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync#endif
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync}
2b80aa00cbee106b9ec709660eadb6f59f4ca121vboxsync