Port-arm archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CURRENT broken on Raspberry Pi 2?
On Thu, 14 Feb 2019 20:26:15 +0100, "Herbert J. Skuhra" wrote:
>
> On Sun, 10 Feb 2019 16:44:33 +0100, Nick Hudson wrote:
>
> > RapsberryPI 2 is earmv7hf
>
> The following happens when I boot an earmv7hf image on my Raspberry Pi 2:
>
> Starting syslogd.
> [ 33.4972146] Fatal kernel mode prefetch abort at 0x00000000
> [ 33.5120546] trapframe: 0xba9cdef0, spsr=a0090013
> [ 33.5120546] r0 =5dde7d88, r1 =f2a00e00, r2 =ba9cdfb0, r3 =00000010
> [ 33.5228162] r4 =807dfd1c, r5 =00000000, r6 =ba9cdfb0, r7 =5dde7d88
> [ 33.5228162] r8 =00000010, r9 =f2a00e00, r10=baaa79a0, r11=ba9cdfac
> [ 33.5351457] r12=ba9cdf40, ssp=ba9cdf40, slr=80024114, pc =00000000
>
> Stopped in pid 316.1 (syslogd) at 0: address 0x0 is invalid
> andeq r0, r0, r0
> db{0}> bt
> 0xba9cdfac: netbsd:undefinedinstruction+0xc
netbsd-8 earmv7hf works fine on my Raspberry Pi 2. But without the
changes below the build fails on FreeBSD 12.0-STABLE:
Index: external/gpl3/gcc/dist/gcc/defaults.h
===================================================================
RCS file: /cvsroot/src/external/gpl3/gcc/dist/gcc/defaults.h,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 defaults.h
--- external/gpl3/gcc/dist/gcc/defaults.h 24 Jan 2016 06:06:10 -0000 1.1.1.3
+++ external/gpl3/gcc/dist/gcc/defaults.h 16 Feb 2019 09:07:53 -0000
@@ -123,7 +123,7 @@
{ \
fprintf ((FILE), "\t%s\t", TLS_COMMON_ASM_OP); \
assemble_name ((FILE), (NAME)); \
- fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", \
+ fprintf ((FILE), "," HOST_WIDE_INT_PRINT_UNSIGNED ",%u\n", \
(SIZE), DECL_ALIGN (DECL) / BITS_PER_UNIT); \
} \
while (0)
Index: external/gpl3/gcc/dist/gcc/config/elfos.h
===================================================================
RCS file: /cvsroot/src/external/gpl3/gcc/dist/gcc/config/elfos.h,v
retrieving revision 1.1.1.4
diff -u -r1.1.1.4 elfos.h
--- external/gpl3/gcc/dist/gcc/config/elfos.h 24 Jan 2016 06:06:23 -0000 1.1.1.4
+++ external/gpl3/gcc/dist/gcc/config/elfos.h 16 Feb 2019 09:07:54 -0000
@@ -99,7 +99,7 @@
#undef ASM_OUTPUT_SKIP
#define ASM_OUTPUT_SKIP(FILE, SIZE) \
- fprintf ((FILE), "%s"HOST_WIDE_INT_PRINT_UNSIGNED"\n",\
+ fprintf ((FILE), "%s" HOST_WIDE_INT_PRINT_UNSIGNED "\n",\
SKIP_ASM_OP, (SIZE))
/* This is how to store into the string LABEL
@@ -167,7 +167,7 @@
{ \
fprintf ((FILE), "%s", COMMON_ASM_OP); \
assemble_name ((FILE), (NAME)); \
- fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", \
+ fprintf ((FILE), "," HOST_WIDE_INT_PRINT_UNSIGNED ",%u\n", \
(SIZE), (ALIGN) / BITS_PER_UNIT); \
} \
while (0)
--
Herbert
Home |
Main Index |
Thread Index |
Old Index