31#include <l4/sys/consts.h>
32#include <l4/sys/ipc.h>
45 L4_KDEBUG_OUTCHAR = 1,
46 L4_KDEBUG_OUTNSTRING = 2,
47 L4_KDEBUG_OUTHEX32 = 3,
48 L4_KDEBUG_OUTHEX20 = 4,
49 L4_KDEBUG_OUTHEX16 = 5,
50 L4_KDEBUG_OUTHEX12 = 6,
51 L4_KDEBUG_OUTHEX8 = 7,
103 if (len > (
sizeof(store) - (2 *
sizeof(
l4_umword_t))))
106 __builtin_memcpy(&store, mr,
sizeof(store));
109 __builtin_memcpy(&mr->
mr[2], text, len);
114 __builtin_memcpy(mr, &store,
sizeof(*mr));
145 if (len > (
sizeof(store) - (5 *
sizeof(
l4_umword_t))))
148 __builtin_memcpy(&store, mr,
sizeof(store));
154 __builtin_memcpy(&mr->
mr[5], text, len);
159 __builtin_memcpy(mr, &store,
sizeof(*mr));
213 __kdebug_text(L4_KDEBUG_ENTER, text, __builtin_strlen(text));
L4 compiler related defines.
unsigned long l4_umword_t
Unsigned machine word.
signed long l4_mword_t
Signed machine word.
unsigned char l4_uint8_t
Unsigned 8bit value.
unsigned int l4_uint32_t
Unsigned 32bit value.
unsigned short int l4_uint16_t
Unsigned 16bit value.
unsigned long long l4_uint64_t
Unsigned 64bit value.
@ L4_BASE_DEBUGGER_CAP
Capability selector for the debugger cap.
l4_msgtag_t l4_ipc_call(l4_cap_idx_t object, l4_utcb_t *utcb, l4_msgtag_t tag, l4_timeout_t timeout) L4_NOTHROW
Object call (usual invocation).
unsigned l4_bytes_to_mwords(unsigned size) L4_NOTHROW
Determine how many machine words (l4_umword_t) are required to store a buffer of 'size' bytes.
l4_msgtag_t l4_msgtag(long label, unsigned words, unsigned items, unsigned flags) L4_NOTHROW
Create a message tag from the specified values.
@ L4_PROTO_DEBUGGER
Protocol ID for the debugger.
#define L4_IPC_NEVER
never timeout
struct l4_utcb_t l4_utcb_t
Opaque type for the UTCB.
l4_utcb_t * l4_utcb(void) L4_NOTHROW L4_PURE
Get the UTCB address.
#define L4_NOTHROW
Mark a function declaration and definition as never throwing an exception.
#define L4_INLINE
L4 Inline function attribute.
l4_msgtag_t __kdebug_3_text(unsigned op, char const *text, unsigned len, l4_umword_t v1, l4_umword_t v2, l4_umword_t v3) L4_NOTHROW
Invoke a text output operation with 3 additional machine word arguments on the base debugger capabili...
void outhex32(l4_uint32_t number)
Output a 32-bit unsigned hexadecimal number via the kernel debugger.
void outhex8(l4_uint8_t number)
Output an 8-bit unsigned hexadecimal number via the kernel debugger.
void outstring(char const *text)
Output a string via the kernel debugger.
void outchar(char c)
Output a single character via the kernel debugger.
void enter_kdebug(char const *text) L4_NOTHROW
Enter the kernel debugger.
void outhex20(l4_uint32_t number)
Output a 20-bit unsigned hexadecimal number via the kernel debugger.
void outhex64(l4_uint64_t number)
Output a 64-bit unsigned hexadecimal number via the kernel debugger.
void outhex16(l4_uint16_t number)
Output a 16-bit unsigned hexadecimal number via the kernel debugger.
l4_kdebug_ops_t
Op-codes for operations that can be invoked on the base debugger capability.
void outdec(l4_mword_t number)
Output a decimal unsigned machine word via the kernel debugger.
void outhex12(l4_uint16_t number)
Output a 12-bit unsigned hexadecimal number via the kernel debugger.
void outumword(l4_umword_t number)
Output a hexadecimal unsigned machine word via the kernel debugger.
l4_msgtag_t __kdebug_text(unsigned op, char const *text, unsigned len) L4_NOTHROW
Invoke a text output operation on the base debugger capability.
l4_msgtag_t __kdebug_op_1(unsigned op, l4_mword_t val) L4_NOTHROW
Invoke an unary operation on the base debugger capability.
void outnstring(char const *text, unsigned len)
Output a fixed-length string via the kernel debugger.
l4_msgtag_t __kdebug_op(unsigned op) L4_NOTHROW
Invoke a nullary operation on the base debugger capability.
Message tag data structure.
Encapsulation of the message-register block in the UTCB.
l4_umword_t mr[L4_UTCB_GENERIC_DATA_SIZE]
Message registers.