2012-10-23 15:12:09 +00:00
|
|
|
/*
|
2013-11-14 16:29:34 +00:00
|
|
|
* \brief Interface between kernel and userland
|
2012-10-23 15:12:09 +00:00
|
|
|
* \author Martin Stein
|
|
|
|
* \date 2011-11-30
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2013-01-10 20:44:47 +00:00
|
|
|
* Copyright (C) 2011-2013 Genode Labs GmbH
|
2012-10-23 15:12:09 +00:00
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
|
|
* under the terms of the GNU General Public License version 2.
|
|
|
|
*/
|
|
|
|
|
2013-11-14 16:29:34 +00:00
|
|
|
#ifndef _KERNEL__INTERFACE_SUPPORT_H_
|
|
|
|
#define _KERNEL__INTERFACE_SUPPORT_H_
|
2012-10-23 15:12:09 +00:00
|
|
|
|
|
|
|
/* Genode includes */
|
|
|
|
#include <base/stdint.h>
|
|
|
|
|
|
|
|
namespace Kernel
|
|
|
|
{
|
2013-11-14 16:29:34 +00:00
|
|
|
typedef Genode::uint32_t Call_arg;
|
|
|
|
typedef Genode::uint32_t Call_ret;
|
2013-11-11 12:03:07 +00:00
|
|
|
|
|
|
|
/**
|
2013-11-14 12:29:47 +00:00
|
|
|
* Registers that are provided by a kernel thread-object for user access
|
2013-11-11 12:03:07 +00:00
|
|
|
*/
|
2013-11-14 12:29:47 +00:00
|
|
|
struct Thread_reg_id
|
2013-11-11 12:03:07 +00:00
|
|
|
{
|
|
|
|
enum {
|
2013-11-14 12:29:47 +00:00
|
|
|
R0 = 0,
|
|
|
|
R1 = 1,
|
|
|
|
R2 = 2,
|
|
|
|
R3 = 3,
|
|
|
|
R4 = 4,
|
|
|
|
R5 = 5,
|
|
|
|
R6 = 6,
|
|
|
|
R7 = 7,
|
|
|
|
R8 = 8,
|
|
|
|
R9 = 9,
|
|
|
|
R10 = 10,
|
|
|
|
R11 = 11,
|
|
|
|
R12 = 12,
|
|
|
|
SP = 13,
|
|
|
|
LR = 14,
|
|
|
|
IP = 15,
|
|
|
|
CPSR = 16,
|
|
|
|
CPU_EXCEPTION = 17,
|
|
|
|
FAULT_TLB = 18,
|
|
|
|
FAULT_ADDR = 19,
|
|
|
|
FAULT_WRITES = 20,
|
|
|
|
FAULT_SIGNAL = 21,
|
2013-11-11 12:03:07 +00:00
|
|
|
};
|
|
|
|
};
|
2013-11-14 12:29:47 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Events that are provided by a kernel thread-object for user handling
|
|
|
|
*/
|
|
|
|
struct Thread_event_id
|
|
|
|
{
|
|
|
|
enum { FAULT = 0 };
|
|
|
|
};
|
2012-10-23 15:12:09 +00:00
|
|
|
}
|
|
|
|
|
2013-11-14 16:29:34 +00:00
|
|
|
#endif /* _KERNEL__INTERFACE_SUPPORT_H_ */
|
2012-10-23 15:12:09 +00:00
|
|
|
|