Ignore:
Timestamp:
2009-12-30T18:34:15Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
01fda09
Parents:
ee2f1aae
Message:

Pair the stack frame address and the return address in a more meaningful way.
Also do the 'right' thing on sparc64 and recognize the end of the stack trace
by -0x7ff stored in %fp.

File:
1 edited

Legend:

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

    ree2f1aae r47246f4  
    4040__entry:
    4141        #
    42         # Stop stack traces in this function.
     42        # Create the first stack frame.
    4343        #
    44         clr %i7
     44        save %sp, -176, %sp
     45        flushw
     46        add %g0, -0x7ff, %fp
    4547
    4648        # Pass pcb_ptr as the first argument to __main()
    47         mov %o1, %o0
     49        mov %i1, %o0
    4850        sethi %hi(_gp), %l7
    4951        call __main
Note: See TracChangeset for help on using the changeset viewer.