xref: /haiku/headers/private/system/commpage_defs.h (revision f2b4344867e97c3f4e742a1b4a15e6879644601a)
1 /*
2  * Copyright 2007, Travis Geiselbrecht. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _SYSTEM_COMMPAGE_DEFS_H
6 #define _SYSTEM_COMMPAGE_DEFS_H
7 
8 /*! Some systemwide commpage constants, used in the kernel and libroot */
9 
10 /* be careful what you put here, this file is included from assembly */
11 #define COMMPAGE_ENTRY_MAGIC				0
12 #define COMMPAGE_ENTRY_VERSION				1
13 #define COMMPAGE_ENTRY_REAL_TIME_DATA		2
14 #define COMMPAGE_ENTRY_FIRST_ARCH_SPECIFIC	3
15 
16 #define COMMPAGE_SIZE (0x8000)
17 #define COMMPAGE_TABLE_ENTRIES 64
18 
19 #define COMMPAGE_SIGNATURE 'COMM'
20 #define COMMPAGE_VERSION 1
21 
22 #define USER_COMMPAGE_ADDR	ARCH_USER_COMMPAGE_ADDR
23 	// set by the architecture specific implementation
24 
25 #define USER_COMMPAGE_TABLE	((void**)(USER_COMMPAGE_ADDR))
26 
27 #include <arch_commpage_defs.h>
28 
29 #endif	/* _SYSTEM_COMMPAGE_DEFS_H */
30