Changeset 7f1c620 in mainline for arch/mips32/src/mips32.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
  • arch/mips32/src/mips32.c

    r991779c5 r7f1c620  
    7272 * when not in .text section ????????
    7373 */
    74 __address supervisor_sp __attribute__ ((section (".text")));
     74uintptr_t supervisor_sp __attribute__ ((section (".text")));
    7575/* Stack pointer saved when entering user mode */
    7676/* TODO: How do we do it on SMP system???? */
     
    8282        init.cnt = bootinfo.cnt;
    8383       
    84         __u32 i;
     84        uint32_t i;
    8585       
    8686        for (i = 0; i < bootinfo.cnt; i++) {
     
    147147                                              cp0_status_um_bit |
    148148                                              cp0_status_ie_enabled_bit));
    149         cp0_epc_write((__address) kernel_uarg->uspace_entry);
    150         userspace_asm(((__address) kernel_uarg->uspace_stack+PAGE_SIZE),
    151                       (__address) kernel_uarg->uspace_uarg,
    152                       (__address) kernel_uarg->uspace_entry);
     149        cp0_epc_write((uintptr_t) kernel_uarg->uspace_entry);
     150        userspace_asm(((uintptr_t) kernel_uarg->uspace_stack+PAGE_SIZE),
     151                      (uintptr_t) kernel_uarg->uspace_uarg,
     152                      (uintptr_t) kernel_uarg->uspace_entry);
    153153        while (1)
    154154                ;
     
    163163void before_thread_runs_arch(void)
    164164{
    165         supervisor_sp = (__address) &THREAD->kstack[THREAD_STACK_SIZE-SP_DELTA];
     165        supervisor_sp = (uintptr_t) &THREAD->kstack[THREAD_STACK_SIZE-SP_DELTA];
    166166}
    167167
     
    175175 * possible to have it separately in the future.
    176176 */
    177 __native sys_tls_set(__native addr)
     177unative_t sys_tls_set(unative_t addr)
    178178{
    179179        return 0;
Note: See TracChangeset for help on using the changeset viewer.