Changeset 9cbd27b in mainline


Ignore:
Timestamp:
2006-03-24T00:50:00Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
11cb08ca
Parents:
e1be3b6
Message:

Set up T9 to entry point on entry to userspace to facilitate better
PIC running.

Location:
arch/mips32
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • arch/mips32/include/asm.h

    re1be3b6 r9cbd27b  
    5858extern void cpu_halt(void);
    5959extern void asm_delay_loop(__u32 t);
    60 extern void userspace_asm(__address ustack, __address uspace_uarg);
     60extern void userspace_asm(__address ustack, __address uspace_uarg,
     61                          __address entry);
    6162
    6263#endif
  • arch/mips32/src/mips32.c

    re1be3b6 r9cbd27b  
    130130                                              cp0_status_ie_enabled_bit));
    131131        cp0_epc_write((__address) kernel_uarg->uspace_entry);
    132         userspace_asm(((__address) kernel_uarg->uspace_stack+PAGE_SIZE), (__address) kernel_uarg->uspace_uarg);
     132        userspace_asm(((__address) kernel_uarg->uspace_stack+PAGE_SIZE),
     133                      (__address) kernel_uarg->uspace_uarg,
     134                      (__address) kernel_uarg->uspace_entry);
    133135        while (1)
    134136                ;
  • arch/mips32/src/start.S

    re1be3b6 r9cbd27b  
    304304userspace_asm:
    305305        add $sp, $a0, 0
    306         add $v0, $a1, 0
    307         eret
    308 
     306        add $v0, $a1, 0
     307        add $t9, $a2, 0   # Set up correct entry into PIC code
     308        eret
     309
Note: See TracChangeset for help on using the changeset viewer.