Changeset 86ffa27f in mainline for kernel/generic/include
- Timestamp:
- 2011-08-07T11:21:44Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cc574511
- Parents:
- 15f3c3f (diff), e8067c0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- kernel/generic/include
- Files:
-
- 1 added
- 7 edited
-
console/chardev.h (modified) (1 diff)
-
console/console.h (modified) (1 diff)
-
ddi/ddi.h (modified) (1 diff)
-
lib/elf.h (modified) (8 diffs)
-
lib/elf_load.h (added)
-
mm/as.h (modified) (2 diffs)
-
panic.h (modified) (1 diff)
-
syscall/syscall.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/console/chardev.h
r15f3c3f r86ffa27f 73 73 typedef struct { 74 74 /** Write character to output. */ 75 void (* write)(struct outdev *, wchar_t , bool);75 void (* write)(struct outdev *, wchar_t); 76 76 77 77 /** Redraw any previously cached characters. */ -
kernel/generic/include/console/console.h
r15f3c3f r86ffa27f 72 72 extern void release_console(void); 73 73 74 extern sysarg_t sys_debug_enable_console(void); 75 extern sysarg_t sys_debug_disable_console(void); 74 extern sysarg_t sys_debug_activate_console(void); 76 75 77 76 #endif /* KERN_CONSOLE_H_ */ -
kernel/generic/include/ddi/ddi.h
r15f3c3f r86ffa27f 48 48 pfn_t frames; /**< Number of frames in the area. */ 49 49 bool unpriv; /**< Allow mapping by unprivileged tasks. */ 50 bool mapped; /**< Indicate whether the area is actually 51 mapped. */ 50 52 } parea_t; 51 53 -
kernel/generic/include/lib/elf.h
r15f3c3f r86ffa27f 106 106 #define ELFDATA2LSB 1 /* Least significant byte first (little endian) */ 107 107 #define ELFDATA2MSB 2 /* Most signigicant byte first (big endian) */ 108 109 /**110 * ELF error return codes111 */112 #define EE_OK 0 /* No error */113 #define EE_INVALID 1 /* Invalid ELF image */114 #define EE_MEMORY 2 /* Cannot allocate address space */115 #define EE_INCOMPATIBLE 3 /* ELF image is not compatible with current architecture */116 #define EE_UNSUPPORTED 4 /* Non-supported ELF (e.g. dynamic ELFs) */117 #define EE_LOADER 5 /* The image is actually a program loader */118 #define EE_IRRECOVERABLE 6119 108 120 109 /** … … 149 138 #define SHF_MASKPROC 0xf0000000 150 139 140 /** Macros for decomposing elf_symbol.st_info into binging and type */ 141 #define ELF_ST_BIND(i) ((i) >> 4) 142 #define ELF_ST_TYPE(i) ((i) & 0x0f) 143 #define ELF_ST_INFO(b, t) (((b) << 4) + ((t) & 0x0f)) 144 151 145 /** 152 146 * Symbol binding … … 195 189 * ELF object file specifications. They are the only types used 196 190 * in ELF header. 197 *198 191 */ 199 192 typedef uint64_t elf_xword; … … 207 200 * 208 201 * These types are specific for 32-bit format. 209 *210 202 */ 211 203 typedef uint32_t elf32_addr; … … 216 208 * 217 209 * These types are specific for 64-bit format. 218 *219 210 */ 220 211 typedef uint64_t elf64_addr; … … 332 323 }; 333 324 325 /* 326 * ELF note segment entry 327 */ 328 struct elf32_note { 329 elf_word namesz; 330 elf_word descsz; 331 elf_word type; 332 }; 333 334 /* 335 * NOTE: namesz, descsz and type should be 64-bits wide (elf_xword) 336 * per the 64-bit ELF spec. The Linux kernel however screws up and 337 * defines them as Elf64_Word, which is 32-bits wide(!). We are trying 338 * to make our core files compatible with Linux GDB target so we copy 339 * the blunder here. 340 */ 341 struct elf64_note { 342 elf_word namesz; 343 elf_word descsz; 344 elf_word type; 345 }; 346 334 347 #ifdef __32_BITS__ 335 348 typedef struct elf32_header elf_header_t; … … 337 350 typedef struct elf32_section_header elf_section_header_t; 338 351 typedef struct elf32_symbol elf_symbol_t; 352 typedef struct elf32_note elf_note_t; 339 353 #endif 340 354 … … 344 358 typedef struct elf64_section_header elf_section_header_t; 345 359 typedef struct elf64_symbol elf_symbol_t; 360 typedef struct elf64_note elf_note_t; 346 361 #endif 347 348 extern const char *elf_error(unsigned int rc);349 362 350 363 /** Interpreter string used to recognize the program loader */ -
kernel/generic/include/mm/as.h
r15f3c3f r86ffa27f 65 65 #include <arch/mm/as.h> 66 66 #include <arch/mm/asid.h> 67 #include <arch/istate.h> 67 68 #include <typedefs.h> 68 69 #include <synch/spinlock.h> … … 306 307 extern mem_backend_t phys_backend; 307 308 308 /**309 * This flags is passed when running the loader, otherwise elf_load()310 * would return with a EE_LOADER error code.311 *312 */313 #define ELD_F_NONE 0314 #define ELD_F_LOADER 1315 316 extern unsigned int elf_load(elf_header_t *, as_t *, unsigned int);317 318 309 /* Address space area related syscalls. */ 319 310 extern sysarg_t sys_as_area_create(uintptr_t, size_t, unsigned int); -
kernel/generic/include/panic.h
r15f3c3f r86ffa27f 60 60 struct istate; 61 61 62 extern bool silent;62 extern bool console_override; 63 63 64 64 extern void panic_common(panic_category_t, struct istate *, int, -
kernel/generic/include/syscall/syscall.h
r15f3c3f r86ffa27f 94 94 SYS_SYSINFO_GET_DATA, 95 95 96 SYS_DEBUG_ENABLE_CONSOLE, 97 SYS_DEBUG_DISABLE_CONSOLE, 96 SYS_DEBUG_ACTIVATE_CONSOLE, 98 97 99 98 SYSCALL_END
Note:
See TracChangeset
for help on using the changeset viewer.
