Changeset 7f1c620 in mainline for generic/src/main/main.c
- Timestamp:
- 2006-07-04T17:17:56Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0ffa3ef5
- Parents:
- 991779c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/main/main.c
r991779c5 r7f1c620 102 102 * appropriate sizes and addresses. 103 103 */ 104 __addresshardcoded_load_address = 0; /**< Virtual address of where the kernel is loaded. */104 uintptr_t hardcoded_load_address = 0; /**< Virtual address of where the kernel is loaded. */ 105 105 size_t hardcoded_ktext_size = 0; /**< Size of the kernel code in bytes. */ 106 106 size_t hardcoded_kdata_size = 0; /**< Size of the kernel data in bytes. */ … … 133 133 void main_bsp(void) 134 134 { 135 __addressstackaddr;135 uintptr_t stackaddr; 136 136 137 137 config.cpu_count = 1; … … 203 203 204 204 version_print(); 205 printf("%.*p: hardcoded_ktext_size=%zdK, hardcoded_kdata_size=%zdK\n", sizeof( __address) * 2, config.base, hardcoded_ktext_size >> 10, hardcoded_kdata_size >> 10);205 printf("%.*p: hardcoded_ktext_size=%zdK, hardcoded_kdata_size=%zdK\n", sizeof(uintptr_t) * 2, config.base, hardcoded_ktext_size >> 10, hardcoded_kdata_size >> 10); 206 206 207 207 arch_pre_smp_init(); … … 224 224 225 225 for (i = 0; i < init.cnt; i++) 226 printf("init[%zd].addr=%.*p, init[%zd].size=%zd\n", i, sizeof( __address) * 2, init.tasks[i].addr, i, init.tasks[i].size);226 printf("init[%zd].addr=%.*p, init[%zd].size=%zd\n", i, sizeof(uintptr_t) * 2, init.tasks[i].addr, i, init.tasks[i].size); 227 227 228 228 ipc_init(); … … 298 298 * switch to this cpu's private stack prior to waking kmp up. 299 299 */ 300 context_set(&CPU->saved_context, FADDR(main_ap_separated_stack), ( __address) CPU->stack, CPU_STACK_SIZE);300 context_set(&CPU->saved_context, FADDR(main_ap_separated_stack), (uintptr_t) CPU->stack, CPU_STACK_SIZE); 301 301 context_restore(&CPU->saved_context); 302 302 /* not reached */
Note:
See TracChangeset
for help on using the changeset viewer.