Changeset 4872160 in mainline for kernel/arch/ia64
- Timestamp:
- 2010-05-04T10:44:55Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 568db0f
- Parents:
- bb252ca
- Location:
- kernel/arch/ia64
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia64/include/bootinfo.h
rbb252ca r4872160 32 32 #define BOOTINFO_ADDRESS 0x4401000 33 33 34 #define CONFIG_INIT_TASKS3234 #define TASKMAP_MAX_RECORDS 32 35 35 36 36 #define MEMMAP_ITEMS 128 … … 44 44 45 45 typedef struct { 46 void *addr; 47 unsigned longsize;46 void *addr; 47 size_t size; 48 48 char name[BOOTINFO_TASK_NAME_BUFLEN]; 49 49 } binit_task_t; 50 50 51 51 typedef struct { 52 unsigned long count;53 binit_task_t tasks[ CONFIG_INIT_TASKS];52 size_t cnt; 53 binit_task_t tasks[TASKMAP_MAX_RECORDS]; 54 54 } binit_t; 55 55 … … 58 58 unsigned long base; 59 59 unsigned long size; 60 }efi_memmap_item_t; 61 60 } efi_memmap_item_t; 62 61 63 62 typedef struct { 64 63 binit_t taskmap; 65 64 66 65 efi_memmap_item_t memmap[MEMMAP_ITEMS]; 67 66 unsigned int memmap_items; 68 67 69 68 unative_t *sapic; 70 69 unsigned long sys_freq; -
kernel/arch/ia64/src/ia64.c
rbb252ca r4872160 47 47 #include <mm/as.h> 48 48 #include <config.h> 49 #include <macros.h> 49 50 #include <userspace.h> 50 51 #include <console/console.h> … … 78 79 void arch_pre_main(void) 79 80 { 80 /* Setup usermode init tasks. */ 81 82 unsigned int i; 83 84 init.cnt = bootinfo->taskmap.count; 85 81 init.cnt = min3(bootinfo->taskmap.cnt, TASKMAP_MAX_RECORDS, CONFIG_INIT_TASKS); 82 size_t i; 86 83 for (i = 0; i < init.cnt; i++) { 87 84 init.tasks[i].addr =
Note:
See TracChangeset
for help on using the changeset viewer.