Changeset c6d130c in mainline


Ignore:
Timestamp:
2010-01-02T18:50:48Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3c01906, e405228
Parents:
c83d2b4
Message:

Create the initial stack frame in task and thread entry points.

Location:
uspace/lib/libc/arch/ppc32/src
Files:
2 edited

Legend:

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

    rc83d2b4 rc6d130c  
    3838#
    3939__entry:
     40        #
     41        # Create the first stack frame.
     42        #
     43        li %r3, 0
     44        stw %r3, 0(%r1)
     45        stwu %r1, -16(%r1)
     46
    4047        # Pass the PCB pointer to __main() as the first argument.
    4148        # The first argument is passed in r3.
  • uspace/lib/libc/arch/ppc32/src/thread_entry.s

    rc83d2b4 rc6d130c  
    3535#
    3636__thread_entry:
     37        #
     38        # Create the first stack frame.
     39        #
     40        li %r4, 0
     41        stw %r4, 0(%r1)
     42        stwu %r1, -16(%r1)
     43
    3744        b __thread_main
    3845
Note: See TracChangeset for help on using the changeset viewer.