Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the asm/types.h header file, which defines the size of the data types. Signed-off-by: Dmitry Voytik <dmitry.voytik@huawei.com>
- Loading branch information
1 parent
781299a
commit be298a8
Showing
1 changed file
with
46 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,46 @@ | ||
/* | ||
* Jailhouse AArch64 support | ||
* | ||
* Copyright (C) 2015 Huawei Technologies Duesseldorf GmbH | ||
* | ||
* Authors: | ||
* Dmitry Voytik <dmitry.voytik@huawei.com> | ||
* | ||
* This work is licensed under the terms of the GNU GPL, version 2. See | ||
* the COPYING file in the top-level directory. | ||
*/ | ||
|
||
#ifndef _JAILHOUSE_ASM_TYPES_H | ||
#define _JAILHOUSE_ASM_TYPES_H | ||
|
||
#define BITS_PER_LONG 64 | ||
|
||
#ifndef __ASSEMBLY__ | ||
|
||
typedef signed char s8; | ||
typedef unsigned char u8; | ||
|
||
typedef signed short s16; | ||
typedef unsigned short u16; | ||
|
||
typedef signed int s32; | ||
typedef unsigned int u32; | ||
|
||
typedef signed long long s64; | ||
typedef unsigned long long u64; | ||
|
||
typedef s8 __s8; | ||
typedef u8 __u8; | ||
|
||
typedef s16 __s16; | ||
typedef u16 __u16; | ||
|
||
typedef s32 __s32; | ||
typedef u32 __u32; | ||
|
||
typedef s64 __s64; | ||
typedef u64 __u64; | ||
|
||
#endif /* !__ASSEMBLY__ */ | ||
|
||
#endif /* !_JAILHOUSE_ASM_TYPES_H */ |