genode/base-mb/src/core/include/map_local.h

50 lines
1.0 KiB
C
Raw Normal View History

2011-12-22 16:19:25 +01:00
/*
* \brief Core-local mapping
* \author Norman Feske
* \date 2010-02-15
*
* These functions are normally doing nothing because core's using 1-to-1 paging at kernel
*/
/*
2013-01-10 21:44:47 +01:00
* Copyright (C) 2010-2013 Genode Labs GmbH
2011-12-22 16:19:25 +01:00
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU General Public License version 2.
*/
#ifndef _SRC__CORE__INCLUDE__MAP_LOCAL_H_
#define _SRC__CORE__INCLUDE__MAP_LOCAL_H_
/* Genode includes */
#include <base/printf.h>
/* core includes */
#include <util.h>
namespace Genode {
/**
* Map physical pages to core-local virtual address range
*
* Always true because roottask pager handles all core page faults
*/
inline bool map_local(addr_t from_phys, addr_t to_virt, size_t num_pages)
{
return true;
}
/**
* Unmap virtual pages from core-local virtual address range
*
* Does nothing because roottask pager handles all core page faults
*/
inline bool unmap_local(addr_t virt_addr, size_t num_pages)
{
return true;
}
}
#endif /* _SRC__CORE__INCLUDE__MAP_LOCAL_H_ */