Changeset 8eca719 in rtems
- Timestamp:
- 02/11/09 02:58:27 (15 years ago)
- Branches:
- 4.10, 4.11, 5, master
- Children:
- fb1ff66
- Parents:
- 5d49762
- Location:
- cpukit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/ChangeLog
r5d49762 r8eca719 1 2009-02-11 Ralf Corsépius <ralf.corsepius@rtems.org> 2 3 * libnetworking/sys/kernel.h: Remove execsw_set, 4 si_elem_t (Unused, not in FreeBSD). 5 #include <sys/linker_set.h>. 6 Add #ifdef _KERNEL guards (From FreeBSD). 7 1 8 2009-02-11 Ralf Corsépius <ralf.corsepius@rtems.org> 2 9 -
cpukit/libnetworking/sys/kernel.h
r5d49762 r8eca719 46 46 #define _SYS_KERNEL_H_ 47 47 48 #include <sys/linker_set.h> 49 50 #ifdef _KERNEL 51 48 52 /* Global variables for the kernel. */ 49 53 … … 68 72 extern int ticks; 69 73 70 #if FREEBSD_RELENG_2_2_2_BASE 71 /* 72 * The following macros are used to declare global sets of objects, which 73 * are collected by the linker into a `struct linker_set' as defined below. 74 * 75 * NB: the constants defined below must match those defined in 76 * ld/ld.h. Since their calculation requires arithmetic, we 77 * can't name them symbolically (e.g., 23 is N_SETT | N_EXT). 78 */ 79 #define MAKE_SET(set, sym, type) 80 #define TEXT_SET(set, sym) MAKE_SET(set, sym, 23) 81 #define DATA_SET(set, sym) MAKE_SET(set, sym, 25) 82 #define BSS_SET(set, sym) MAKE_SET(set, sym, 27) 83 #define ABS_SET(set, sym) MAKE_SET(set, sym, 21) 84 85 #else 86 87 /* 88 * RTEMS specific port using the updated sys/linker_set.h 89 * from the lastest FreeBSD (2002-Nov-15). This is a better 90 * way. 91 * 92 * Chris Johns (ccj@acm.org> 18 Nov 2002. 93 */ 94 #include <sys/linker_set.h> 95 96 #endif 74 #endif /* _KERNEL */ 97 75 98 76 /* … … 172 150 173 151 /* 174 * System initialization call types; currently two are supported... one175 * to do a simple function call and one to cause a process to be started176 * by the kernel on the callers behalf.177 */178 typedef enum sysinit_elem_type {179 SI_TYPE_DEFAULT = 0x00000000, /* No special processing*/180 SI_TYPE_KTHREAD = 0x00000001 /* start kernel thread*/181 } si_elem_t;182 183 184 /*185 152 * A system initialization call instance 186 153 * … … 192 159 void (*func)(void *); /* init function*/ 193 160 void *udata; /* multiplexer/argument */ 194 si_elem_t type; /* sysinit_elem_type*/195 161 }; 196 162 … … 255 221 }; 256 222 257 extern struct linker_set execsw_set;258 259 223 #endif /* !_SYS_KERNEL_H_*/
Note: See TracChangeset
for help on using the changeset viewer.