--- /dev/null
+#
+# Sorted using sort_set.pl in releasetools.
+# to add an entry simply add it at the end of the
+# file and run
+# ../../../../releasetools/sort_set.pl < mi > out
+# mv out mi
+#
+./usr/tests/minix-posix/test_arm_segfault minix-tests
+./usr/tests/minix-posix/test_arm_unaligned minix-tests
OBJS.${o} += common.o
.endfor
+.include "./arch/${MACHINE_ARCH}/Makefile.inc"
+
# LSC Make sure there is not leftover after a failed testrun
clean: .PHONY .MAKE
@rm -rf DIR*
--- /dev/null
+PROGS+= test_arm_segfault
+PROGS+= test_arm_unaligned
+
+.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}
+
+test_arm_segfault.o : test_arm_segfault.S
+test_arm_unaligned.o : test_arm_unaligned.S
--- /dev/null
+.text
+.global main
+main:
+ push {lr}
+ ldr r0, =0xDEADBEE0 /* Hopefully this is not mapped... */
+ ldr r1, [r0]
+ ldr r0, =0x01010100 /* In case we survived, try something else */
+ ldr r1, [r0]
+
+ ldr r0, =msg
+ bl puts
+
+ mov r0, #0 /* test should check for non-zero exit code / signal */
+ pop {pc}
+msg:
+ .ascii "ERROR - caused no segfault\n"
--- /dev/null
+.text
+.global main
+main:
+ push {lr}
+ mov r0, sp
+
+ /* This should work */
+ ldr r0, [sp]
+
+ /* Unalign it */
+ add r0, #2
+
+ /* Try a non-word aligned word-load, this may work if SCTRL.A == 0 */
+ ldr r1, [r0]
+
+ /* Load non-word aligned dword, should die even with SCTRL.A == 0 */
+ ldrd r2, r3, [r0]
+
+
+ ldr r0, =msg
+ bl puts
+
+ mov r0, #0 /* test should check for non-zero exit code / signal */
+ pop {pc}
+msg:
+ .ascii "ERROR - caused no sigbus\n"