Changes in / [e405228:a7a0417] in mainline


Ignore:
Location:
uspace/lib/libc
Files:
4 edited

Legend:

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

    re405228 ra7a0417  
    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 
    4740        # Pass the PCB pointer to __main() as the first argument.
    4841        # The first argument is passed in r3.
  • uspace/lib/libc/arch/ppc32/src/stacktrace.S

    re405228 ra7a0417  
    3838
    3939frame_pointer_get:
    40         mr r3, sp
     40frame_pointer_prev:
     41frame_pointer_validate:
     42return_address_get:
     43program_counter_get:
     44        li r3, 0
    4145        blr
    42 
    43 frame_pointer_prev:
    44         lwz r3, 0(r3)
    45         blr
    46 
    47 frame_pointer_validate:
    48         blr
    49 
    50 return_address_get:
    51         lwz r3, 4(r3)
    52         blr
    53 
    54 program_counter_get:
    55         mflr r3
    56         blr
  • uspace/lib/libc/arch/ppc32/src/thread_entry.s

    re405228 ra7a0417  
    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 
    4437        b __thread_main
    4538
  • uspace/lib/libc/generic/stacktrace.c

    re405228 ra7a0417  
    5252{
    5353        stack_trace_fp_pc(frame_pointer_get(), program_counter_get());
    54         /*
    55          * Prevent the tail call optimization of the previous call by
    56          * making it a non-tail call.
    57          */
    58         (void) frame_pointer_get();
    5954}
    6055
Note: See TracChangeset for help on using the changeset viewer.