Changeset 47246f4 in mainline for uspace/lib/libc/arch/ia32/src


Ignore:
Timestamp:
2009-12-30T18:34:15Z (16 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.

Location:
uspace/lib/libc/arch/ia32/src
Files:
3 edited

Legend:

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

    ree2f1aae r47246f4  
    56560:
    5757        #
    58         # Stop stack traces in this function.
     58        # Create the first stack frame.
    5959        #
    60         xorl %ebp, %ebp
     60        pushl $0
     61        movl %esp, %ebp
    6162
    6263        # Pass the PCB pointer to __main as the first argument
  • uspace/lib/libc/arch/ia32/src/stacktrace.S

    ree2f1aae r47246f4  
    3333.global frame_pointer_validate
    3434.global return_address_get
     35.global program_counter_get
    3536
    3637frame_pointer_get:
     
    5152        movl 4(%eax), %eax
    5253        ret
     54
     55program_counter_get:
     56        movl (%esp), %eax
     57        ret
  • uspace/lib/libc/arch/ia32/src/thread_entry.s

    ree2f1aae r47246f4  
    4242
    4343        #
    44         # Stop stack traces in this function.
     44        # Create the first stack frame.
    4545        #
    46         xorl %ebp, %ebp
     46        pushl $0
     47        mov %esp, %ebp
    4748
    4849        #
Note: See TracChangeset for help on using the changeset viewer.