|
0
|
1 #ifndef CYGONCE_KERNEL_ERRORS_H |
|
|
2 #define CYGONCE_KERNEL_ERRORS_H |
|
|
3 |
|
|
4 //========================================================================== |
|
|
5 // |
|
2
|
6 // errors.h |
|
0
|
7 // |
|
2
|
8 // Error values from kernel |
|
0
|
9 // |
|
|
10 //========================================================================== |
|
|
11 //####COPYRIGHTBEGIN#### |
|
|
12 // |
|
|
13 // ------------------------------------------- |
|
|
14 // The contents of this file are subject to the Cygnus eCos Public License |
|
|
15 // Version 1.0 (the "License"); you may not use this file except in |
|
|
16 // compliance with the License. You may obtain a copy of the License at |
|
|
17 // http://sourceware.cygnus.com/ecos |
|
|
18 // |
|
|
19 // Software distributed under the License is distributed on an "AS IS" |
|
|
20 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the |
|
|
21 // License for the specific language governing rights and limitations under |
|
|
22 // the License. |
|
|
23 // |
|
|
24 // The Original Code is eCos - Embedded Cygnus Operating System, released |
|
|
25 // September 30, 1998. |
|
|
26 // |
|
|
27 // The Initial Developer of the Original Code is Cygnus. Portions created |
|
2
|
28 // by Cygnus are Copyright (C) 1998,1999 Cygnus Solutions. All Rights Reserved. |
|
0
|
29 // ------------------------------------------- |
|
|
30 // |
|
|
31 //####COPYRIGHTEND#### |
|
|
32 //========================================================================== |
|
|
33 //#####DESCRIPTIONBEGIN#### |
|
|
34 // |
|
2
|
35 // Author(s): nickg |
|
|
36 // Contributors: nickg |
|
|
37 // Date: 1997-10-07 |
|
|
38 // Purpose: Define error codes |
|
|
39 // Description: Error codes returned by various bits of the kernel. |
|
0
|
40 // Usage: #include <cyg/kernel/errors.h> |
|
|
41 // |
|
|
42 //####DESCRIPTIONEND#### |
|
|
43 // |
|
|
44 //========================================================================== |
|
|
45 |
|
|
46 // General successful result: |
|
|
47 |
|
|
48 #define CYGERR_OK 0 |
|
|
49 |
|
|
50 // ------------------------------------------------------------------------- |
|
|
51 // Define base of codes: |
|
|
52 |
|
|
53 #define CYGERR_KERNEL_BASE 0xEE000000 |
|
|
54 |
|
|
55 // ------------------------------------------------------------------------- |
|
|
56 // Thread related errors |
|
|
57 |
|
|
58 #define CYGERR_KERNEL_THREAD_BASE (CYGERR_KERNEL_BASE+0x00010000) |
|
|
59 |
|
|
60 #define CYGERR_KERNEL_THREAD_PRIORITY_INVALID (CYGERR_KERNEL_THREAD_BASE+1) |
|
|
61 #define CYGERR_KERNEL_THREAD_PRIORITY_DUPLICATE (CYGERR_KERNEL_THREAD_BASE+2) |
|
|
62 |
|
|
63 // ------------------------------------------------------------------------- |
|
|
64 // Interrupt related errors |
|
|
65 |
|
|
66 #define CYGERR_KERNEL_INTR_BASE (CYGERR_KERNEL_BASE+0x00020000) |
|
|
67 |
|
|
68 #define CYGERR_KERNEL_INTR_VECTOR_INVALID (CYGERR_KERNEL_INTR_BASE+1) |
|
|
69 |
|
|
70 // ------------------------------------------------------------------------- |
|
|
71 #endif // ifndef CYGONCE_KERNEL_ERRORS_H |
|
|
72 // EOF errors.h |