[rtems commit] bsp/t32mppc: Add primitive NULL pointer protection
Sebastian Huber
sebh at rtems.org
Mon Nov 30 10:02:47 UTC 2015
Module: rtems
Branch: master
Commit: 8d6ceb1a61f3420aec1b5cfec3ae37ddc3bc96f6
Changeset: http://git.rtems.org/rtems/commit/?id=8d6ceb1a61f3420aec1b5cfec3ae37ddc3bc96f6
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Nov 30 13:04:21 2015 +0100
bsp/t32mppc: Add primitive NULL pointer protection
---
c/src/lib/libbsp/powerpc/t32mppc/start/start.S | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/c/src/lib/libbsp/powerpc/t32mppc/start/start.S b/c/src/lib/libbsp/powerpc/t32mppc/start/start.S
index f74bc9c..380c019 100644
--- a/c/src/lib/libbsp/powerpc/t32mppc/start/start.S
+++ b/c/src/lib/libbsp/powerpc/t32mppc/start/start.S
@@ -1,8 +1,8 @@
/*
- * Copyright (c) 2012 embedded brains GmbH. All rights reserved.
+ * Copyright (c) 2012, 2015 embedded brains GmbH. All rights reserved.
*
* embedded brains GmbH
- * Obere Lagerstr. 30
+ * Dornierstr. 4
* 82178 Puchheim
* Germany
* <rtems at embedded-brains.de>
@@ -23,6 +23,11 @@
.section ".bsp_start_text", "ax"
+ /* Primitive NULL pointer protection */
+.rept 1024
+ sc
+.endr
+
_start:
/* Enable time base */
li r0, 0x4000
More information about the vc
mailing list