2013-11-04 17:04:27 +01:00
|
|
|
/*
|
|
|
|
* \brief Standard implementation of pager object
|
|
|
|
* \author Martin Stein
|
|
|
|
* \date 2013-11-04
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2013 Genode Labs GmbH
|
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
|
|
* under the terms of the GNU General Public License version 2.
|
|
|
|
*/
|
|
|
|
|
2015-06-19 14:58:18 +02:00
|
|
|
/* core includes */
|
|
|
|
#include <pager.h>
|
2013-11-04 17:04:27 +01:00
|
|
|
|
|
|
|
using namespace Genode;
|
|
|
|
|
|
|
|
|
|
|
|
void Pager_object::wake_up()
|
|
|
|
{
|
|
|
|
/* notify pager to wake up faulter */
|
|
|
|
Msgbuf<16> snd, rcv;
|
|
|
|
Native_capability pager = cap();
|
|
|
|
Ipc_client ipc_client(pager, &snd, &rcv);
|
|
|
|
ipc_client << this << IPC_CALL;
|
|
|
|
}
|
2014-07-15 19:05:26 +02:00
|
|
|
|
|
|
|
|
|
|
|
void Pager_object::unresolved_page_fault_occurred()
|
|
|
|
{
|
|
|
|
state.unresolved_page_fault = true;
|
|
|
|
}
|