Skip to content

Commit

Permalink
arm64: add types.h
Browse files Browse the repository at this point in the history
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
dvoytik authored and jan-kiszka committed Jun 27, 2016
1 parent 781299a commit be298a8
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions hypervisor/arch/arm64/include/asm/types.h
@@ -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 */

0 comments on commit be298a8

Please sign in to comment.