Changeset 7f1c620 in mainline for generic/src/main/main.c


Ignore:
Timestamp:
2006-07-04T17:17:56Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0ffa3ef5
Parents:
991779c5
Message:

Replace old u?? types with respective C99 variants (e.g. uint32_t, int64_t, uintptr_t etc.).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/main/main.c

    r991779c5 r7f1c620  
    102102 * appropriate sizes and addresses.
    103103 */
    104 __address hardcoded_load_address = 0;   /**< Virtual address of where the kernel is loaded. */
     104uintptr_t hardcoded_load_address = 0;   /**< Virtual address of where the kernel is loaded. */
    105105size_t hardcoded_ktext_size = 0;        /**< Size of the kernel code in bytes. */
    106106size_t hardcoded_kdata_size = 0;        /**< Size of the kernel data in bytes. */
     
    133133void main_bsp(void)
    134134{
    135         __address stackaddr;
     135        uintptr_t stackaddr;
    136136
    137137        config.cpu_count = 1;
     
    203203
    204204        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);
    206206
    207207        arch_pre_smp_init();
     
    224224       
    225225        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);
    227227       
    228228        ipc_init();
     
    298298         * switch to this cpu's private stack prior to waking kmp up.
    299299         */
    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);
    301301        context_restore(&CPU->saved_context);
    302302        /* not reached */
Note: See TracChangeset for help on using the changeset viewer.