Changeset 1a1a151 in rtems


Ignore:
Timestamp:
Jul 28, 2011, 7:50:28 PM (9 years ago)
Author:
Till Straumann <strauman@…>
Branches:
4.11, master
Children:
57fb39a
Parents:
6963b2e7
Message:

2011-27-28 Till Straumann <strauman@…>

  • start/start.S: Align stack and tag TOS with a NULL pointer (help terminate when walking the stack).
Location:
c/src/lib/libbsp/powerpc/qemuppc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/qemuppc/ChangeLog

    r6963b2e7 r1a1a151  
     12011-27-28      Till Straumann <strauman@slac.stanford.edu>
     2
     3        * start/start.S: Align stack and tag TOS with a NULL
     4        pointer (help terminate when walking the stack).
     5
    162011-06-18      Ralf Corsépius <ralf.corsepius@rtems.org>
    27
  • c/src/lib/libbsp/powerpc/qemuppc/start/start.S

    r6963b2e7 r1a1a151  
     1#include <rtems/score/cpu.h>
     2#include <rtems/powerpc/powerpc.h>
     3
     4#include <bspopts.h>
     5
    16        #.section ".text"
    27        .section .entry_point_section,"awx",@progbits
     
    49
    510_start:
    6         lis   %r1,_stack@h
    7         ori   %r1,%r1,_stack@l
    8         li     %r3,8192
    9         mtmsr   %r3
     11        lis   %r1,_stack@h
     12        ori   %r1,%r1,_stack@l
     13        /* Make sure stack is properly aligned */
     14        li    %r3, CPU_STACK_ALIGNMENT - 1
     15        andc  %r1, %r1, %r3
     16        /* NULL ptr to back chain */
     17        li    %r3, 0
     18        stw   %r3, 0(%r1)
     19
     20        li    %r3,8192
     21        mtmsr %r3
    1022
    1123        /* Read-only small data */
Note: See TracChangeset for help on using the changeset viewer.