change log for rtems (2011-07-27)
rtems-vc at rtems.org
rtems-vc at rtems.org
Thu Jul 28 02:10:59 UTC 2011
*strauman*:
2011-07-27 Till Straumann <strauman at slac.stanford.edu>
* shared/start/start.S, shared/start/preload.S:
Make sure stack is 16-byte aligned and the TOS
is tagged with a NULL pointer (used as a terminator
when printing stack traces).
M 1.266 c/src/lib/libbsp/powerpc/ChangeLog
M 1.3 c/src/lib/libbsp/powerpc/shared/start/preload.S
M 1.29 c/src/lib/libbsp/powerpc/shared/start/start.S
diff -u rtems/c/src/lib/libbsp/powerpc/ChangeLog:1.265 rtems/c/src/lib/libbsp/powerpc/ChangeLog:1.266
--- rtems/c/src/lib/libbsp/powerpc/ChangeLog:1.265 Tue Jul 26 23:21:25 2011
+++ rtems/c/src/lib/libbsp/powerpc/ChangeLog Wed Jul 27 20:13:19 2011
@@ -1,3 +1,10 @@
+2011-07-27 Till Straumann <strauman at slac.stanford.edu>
+
+ * shared/start/start.S, shared/start/preload.S:
+ Make sure stack is 16-byte aligned and the TOS
+ is tagged with a NULL pointer (used as a terminator
+ when printing stack traces).
+
2011-07-26 Till Straumann <strauman at slac.stanford.edu>
* shared/irq/openpic_i8259_irq.c: silenced compiler warnings.
diff -u rtems/c/src/lib/libbsp/powerpc/shared/start/preload.S:1.2 rtems/c/src/lib/libbsp/powerpc/shared/start/preload.S:1.3
--- rtems/c/src/lib/libbsp/powerpc/shared/start/preload.S:1.2 Sun Nov 29 22:32:24 2009
+++ rtems/c/src/lib/libbsp/powerpc/shared/start/preload.S Wed Jul 27 20:13:20 2011
@@ -84,7 +84,7 @@
* if DESTINATION_ADDR is not 0
*/
#define KERNELBASE 0x0
-#define INITIAL_STACK 0x78 /* 8-byte aligned */
+#define INITIAL_STACK 0x70 /* 16-byte aligned */
#define CACHE_LINE_SIZE PPC_CACHE_ALIGNMENT /* autodetect doesn't work, see below */
#define ASSUME_RTEMS_INSTALLS_VECTORS /* assume we need not load vectors */
#define DONT_USE_R5_ENTRY /* always dynamically determine the address we're running from */
@@ -211,6 +211,9 @@
/* setup initial stack for rtems early boot */
li r1,INITIAL_STACK
+ /* tag TOS with a NULL pointer (for stack trace) */
+ li r0, 0
+ stw r0, 0(r1)
/* disable the MMU and fire up rtems */
mfmsr r0
ori r0,r0,MSR_IR|MSR_DR|MSR_IP|MSR_ME
diff -u rtems/c/src/lib/libbsp/powerpc/shared/start/start.S:1.28 rtems/c/src/lib/libbsp/powerpc/shared/start/start.S:1.29
--- rtems/c/src/lib/libbsp/powerpc/shared/start/start.S:1.28 Fri Jan 28 14:29:53 2011
+++ rtems/c/src/lib/libbsp/powerpc/shared/start/start.S Wed Jul 27 20:13:20 2011
@@ -130,6 +130,12 @@
li r0, (CPU_STACK_ALIGNMENT-1)
andc r1, r9, r0
/*
+ * Tag TOS with a NULL (terminator for stack dump)
+ */
+ li r0, 0
+ stw r0, 0(r1)
+
+ /*
* We are now in a environment that is totally independent from
* bootloader setup.
*/
--
Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20110727/5834ff4c/attachment.html>
More information about the vc
mailing list