My Kernel
v0.1.0
cpu.h
1
#ifndef KERNEL_CPU_H
2
#define KERNEL_CPU_H
3
4
#if ARCH == i686
5
#include <kernel/arch/i686/cpu.h>
6
#else
7
#error Unknown CPU architecture.
8
#endif
9
15
#define __RET_IP (vaddr_t) __builtin_return_address(0)
16
20
#define __THIS_IP \
21
({ \
22
__label__ __here; \
23
__here: \
24
(vaddr_t) && __here; \
25
})
26
27
#endif
/* KERNEL_CPU_H */
include
kernel
cpu.h
Generated by
1.9.5