1 /*---------------------------------------------------------------------------*
2   Project:  Horizon
3   File:     os_SvcTypes.autogen.h
4 
5   Copyright (C)2009 Nintendo Co., Ltd.  All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain
8   proprietary information of Nintendo of America Inc. and/or Nintendo
9   Company Ltd., and are protected by Federal copyright law.  They may
10   not be disclosed to third parties or copied or duplicated in any form,
11   in whole or in part, without the prior written consent of Nintendo.
12 
13   $Rev: 18179 $
14  *---------------------------------------------------------------------------*/
15 
16 //
17 // このファイルを編集しないでください。
18 // このファイルは自動生成されます。
19 //
20 
21 #ifndef NN_OS_OS_SVCTYPES_AUTOGEN_H_
22 #define NN_OS_OS_SVCTYPES_AUTOGEN_H_
23 
24 #include <nn/types.h>
25 #include <nn/config.h>
26 #include <nn/os/os_MemoryTypes.h>
27 #include <nn/os/os_SvcTypes.autogen.h>
28 #include <nn/dbg.h>
29 
30 
31 
32 #ifdef __cplusplus
33 
34 namespace nn {
35 namespace os {
36 
37 typedef void (*ThreadFunc)(uptr param);
38 
39 struct MemoryInfo
40 {
41     uptr                 baseAddress;
42     size_t               size;
43     bit32                permission;
44     MemoryState          state;
45 };
46 
47 struct PageInfo
48 {
49     bit32                flags;
50 };
51 
52 struct ThreadContext
53 {
54     bit32                cpuRegisters[13];
55     bit32                sp;
56     bit32                lr;
57     bit32                pc;
58     bit32                cpsr;
59     bit32                fpuRegisters[32];
60     bit32                fpscr;
61     bit32                fpexc;
62 };
63 
64 struct StartupInfo
65 {
66     s32                  priority;
67     size_t               stackSize;
68     s32                  argc;
69     const char16*        argv;
70     const char16*        envp;
71 };
72 
73 
74 } // end of namespace os
75 } // end of namespace nn
76 
77 #endif  // ifdef __cplusplus
78 
79 
80 
81 
82 #endif  // ifndef NN_OS_OS_SVCTYPES_AUTOGEN_H_
83