| 1 | /* |
|---|
| 2 | * kern/kmagics.h - magic numbers used to identify kernel objects |
|---|
| 3 | * |
|---|
| 4 | * Copyright (c) 2008,2009,2010,2011,2012 Ghassan Almaless |
|---|
| 5 | * Copyright (c) 2011,2012 UPMC Sorbonne Universites |
|---|
| 6 | * |
|---|
| 7 | * This file is part of ALMOS-kernel. |
|---|
| 8 | * |
|---|
| 9 | * ALMOS-kernel is free software; you can redistribute it and/or modify it |
|---|
| 10 | * under the terms of the GNU General Public License as published by |
|---|
| 11 | * the Free Software Foundation; version 2.0 of the License. |
|---|
| 12 | * |
|---|
| 13 | * ALMOS-kernel is distributed in the hope that it will be useful, but |
|---|
| 14 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 16 | * General Public License for more details. |
|---|
| 17 | * |
|---|
| 18 | * You should have received a copy of the GNU General Public License |
|---|
| 19 | * along with ALMOS-kernel; if not, write to the Free Software Foundation, |
|---|
| 20 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
|---|
| 21 | */ |
|---|
| 22 | |
|---|
| 23 | #ifndef _KMAGICS_H_ |
|---|
| 24 | #define _KMAGICS_H_ |
|---|
| 25 | |
|---|
| 26 | #define MEM_CHECK_VAL 0xA5A5A5A5 |
|---|
| 27 | #define SCHED_CHECK_VAL 0xDEADBEEF |
|---|
| 28 | #define LIST_NEXT_DEAD 0x0000b0C1 |
|---|
| 29 | #define LIST_PRED_DEAD 0x0000c0b1 |
|---|
| 30 | #define LIST_SNEXT_DEAD 0x0000A0A1 |
|---|
| 31 | #define POBJECT_CREATED 0x0000A5B5 |
|---|
| 32 | #define SEMAPHORE_ID 0xA0B1C0B3 |
|---|
| 33 | #define COND_VAR_ID 0xB1CA0BA5 |
|---|
| 34 | #define KCOND_VAR_ID 0xB3B0A3A3 |
|---|
| 35 | #define BARRIER_ID 0xCFA5B1A3 |
|---|
| 36 | #define RWLOCK_ID 0xD1A5B1EF |
|---|
| 37 | #define THREAD_ID 0xDEEFBAAD |
|---|
| 38 | #define PPM_ID 0xF0F0A5A5 |
|---|
| 39 | #define ALRM_INFO_ID 0xAF5FABE5 |
|---|
| 40 | |
|---|
| 41 | #endif /* _KMAGICS_H_ */ |
|---|