-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added more kernel files related to #36
- Loading branch information
1 parent
10a3162
commit 28e773b
Showing
4 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#ifndef __ASM_SH_TYPES_H | ||
#define __ASM_SH_TYPES_H | ||
|
||
#include <asm-generic/int-ll64.h> | ||
#include <heisen/typing.h> | ||
|
||
/* | ||
* These aren't exported outside the kernel to avoid name space clashes | ||
*/ | ||
#ifndef __ASSEMBLY__ | ||
|
||
typedef uint16_t insn_size_t; | ||
typedef uint32_t reg_size_t; | ||
|
||
#endif /* __ASSEMBLY__ */ | ||
#endif /* __ASM_SH_TYPES_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#ifndef HEISEN_BITOPS_H | ||
#define HEISEN_BITOPS_H | ||
|
||
|
||
#include <asm/types.h> | ||
|
||
|
||
|
||
#endif // HEISEN_BITOPS_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#ifndef _UAPI_HEISEN_CONST_H | ||
#define _UAPI_HEISEN_CONST_H | ||
|
||
|
||
#ifdef __ASSEMBLY__ | ||
#define _AC(X,Y) X | ||
#define _AT(T,X) X | ||
#else | ||
#define __AC(X,Y) (X##Y) | ||
#define _AC(X,Y) __AC(X,Y) | ||
#define _AT(T,X) ((T)(X)) | ||
#endif | ||
|
||
#define _UL(x) (_AC(x, UL)) | ||
#define _ULL(x) (_AC(x, ULL)) | ||
|
||
#define _BITUL(x) (_UL(1) << (x)) | ||
#define _BITULL(x) (_ULL(1) << (x)) | ||
|
||
#define __ALIGN_KERNEL(x, a) __ALIGN_KERNEL_MASK(x, (__typeof__(x))(a) - 1) | ||
#define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) | ||
|
||
#define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) | ||
|
||
|
||
#endif // _UAPI_HEISEN_CONST_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#ifndef __VDSO_CONST_H | ||
#define __VDSO_CONST_H | ||
|
||
#include <uapi/heisen/const.h> | ||
|
||
|
||
#define UL(x) (_UL(x)) | ||
#define ULL(x) (_ULL(x)) | ||
|
||
|
||
|
||
|
||
#endif // __VDSO_CONST_H |