source: mainline/kernel/arch/ia32/include/types.h@ 4e9aaf5

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 4e9aaf5 was 4e9aaf5, checked in by Martin Decky <martin@…>, 16 years ago

more autotooling: run actually the compiler in autotool.py and detect sizes of integers, generate common.h
more build system cleanup: remove redundancy, remove config.defs, merge kernel makefiles to a single file

  • Property mode set to 100644
File size: 2.7 KB
Line 
1/*
2 * Copyright (c) 2001-2004 Jakub Jermar
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * - Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * - Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * - The name of the author may not be used to endorse or promote products
15 * derived from this software without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29/** @addtogroup ia32
30 * @{
31 */
32/** @file
33 */
34
35#ifndef KERN_ia32_TYPES_H_
36#define KERN_ia32_TYPES_H_
37
38#include <arch/common.h>
39
40typedef uint32_t size_t;
41
42typedef uint32_t uintptr_t;
43typedef uint32_t pfn_t;
44
45typedef uint32_t ipl_t;
46
47typedef uint32_t unative_t;
48typedef int32_t native_t;
49typedef uint32_t atomic_count_t;
50
51typedef struct {
52} fncptr_t;
53
54#define PRIp "x" /**< Format for uintptr_t. */
55#define PRIs "u" /**< Format for size_t. */
56
57#define PRId8 "d" /**< Format for int8_t. */
58#define PRId16 "d" /**< Format for int16_t. */
59#define PRId32 "d" /**< Format for int32_t. */
60#define PRId64 "lld" /**< Format for int64_t. */
61#define PRIdn "d" /**< Format for native_t. */
62
63#define PRIu8 "u" /**< Format for uint8_t. */
64#define PRIu16 "u" /**< Format for uint16_t. */
65#define PRIu32 "u" /**< Format for uint32_t. */
66#define PRIu64 "llu" /**< Format for uint64_t. */
67#define PRIun "u" /**< Format for unative_t. */
68
69#define PRIx8 "x" /**< Format for hexadecimal (u)int8_t. */
70#define PRIx16 "x" /**< Format for hexadecimal (u)int16_t. */
71#define PRIx32 "x" /**< Format for hexadecimal (u)uint32_t. */
72#define PRIx64 "llx" /**< Format for hexadecimal (u)int64_t. */
73#define PRIxn "x" /**< Format for hexadecimal (u)native_t. */
74
75#endif
76
77/** @}
78 */
Note: See TracBrowser for help on using the repository browser.