Changeset 457 for trunk/kernel/libk/elf.h
- Timestamp:
- Aug 2, 2018, 11:47:13 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/elf.h
r273 r457 22 22 #define _ELF_H_ 1 23 23 24 #include <hal_ types.h>24 #include <hal_kernel_types.h> 25 25 26 26 /* … … 204 204 #define PF_MASKPROC 0xf0000000 /* Processor-specific */ 205 205 206 #if defined(HAL_ 32BIT)206 #if defined(HAL_ELF_32_BITS) 207 207 #define Elf_Half Elf32_Half 208 208 #define Elf_Word Elf32_Word … … 213 213 #define Elf_Phdr Elf32_Phdr 214 214 #define ELFCLASS ELFCLASS32 215 #elif defined (HAL_ 64BIT)215 #elif defined (HAL_ELF_64_BITS) 216 216 #define Elf_Half Elf64_Half 217 217 #define Elf_Word Elf64_Word … … 224 224 #define ELFCLASS ELFCLASS64 225 225 #else 226 #error "Must define HAL_ 64BIT/HAL_32BIT"226 #error "Must define HAL_ELF_64_BITS / HAL_ELF_32_BITS" 227 227 #endif 228 228 229 229 /**************************************************************************************** 230 * This function registers in VMM the CODE and DATA vsegs defined in the .elf file. 230 * This function registers in VMM of the process identified by the <process> argument 231 * the CODE and DATA vsegs defined in the .elf open file descriptor <file_xp>. 231 232 * The segments are not loaded in memory. 232 233 * It also registers the process entry point in VMM. 233 234 **************************************************************************************** 234 * @ pathname : local pointer on .elf file pathname (in kernel space).235 * @ file_xp : extended pointer on .elf file descriptor. 235 236 * @ process : local pointer on target process descriptor. 236 237 ***************************************************************************************/ 237 error_t elf_load_process( char * pathname,238 error_t elf_load_process( xptr_t file_xp, 238 239 process_t * process); 239 240
Note: See TracChangeset
for help on using the changeset viewer.