Ignore:
Timestamp:
2008-07-08T16:05:45Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f93f168
Parents:
b7f9087
Message:

Merge program-loader related stuff from dynload branch to trunk. (huge)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/arch/mips32/src/entry.s

    rb7f9087 rc98e6ee  
    3636## User-space task entry point
    3737#
     38# $a0 ($4) contains the PCB pointer
    3839#
    3940.ent __entry
     
    4142        .frame $sp, 32, $31
    4243        .cpload $25
    43        
    44        
     44
    4545        # Mips o32 may store its arguments on stack, make space (16 bytes),
    4646        # so that it could work with -O0
     
    4949        addiu $sp, -32
    5050        .cprestore 16   # Allow PIC code
    51        
     51
     52        # Pass pcb_ptr to __main() as the first argument. pcb_ptr is already
     53        # in $a0. As the first argument is passed in $a0, no operation
     54        # is needed.
     55
    5256        jal __main
    53         nop
    54        
    55         jal main
    5657        nop
    5758       
Note: See TracChangeset for help on using the changeset viewer.