More acorn32 breakage (was Re: Issues with new i2c framework)
Mike Pumford <[email protected]> Wed, 8 Oct 2003 21:34:04 +0100
| Newsgroups | gmane.os.netbsd.ports.arm26,gmane.os.netbsd.ports.arm,gmane.os.netbsd.ports.acorn32 |
|---|---|
| Organization | None |
| Message-ID | <[email protected]> |
On Mon, 6 Oct 2003 09:12:35 -0700 Jason Thorpe <[email protected]> wrote: > Ok, I have fixed the acorn32 and acorn26 problems: > > - acorn26: I forgot to "cvs add" a file. > - acorn32: I forgot to include the arch/arm/iomd directory > on my "cvs ci" command. > Thanks this looks good. However I have found another couple of problems. Problem 1: Syntax error in GENERIC for new ATA bus attachments. GENERIC line 233 has: wd* at atabus? ? drive ? which should be: wd* at atabus? drive ? and at line 296: atabus* at dtide? channel which should be atabus* at dtide? channel ? I've attached a patch for this to this message. I have not checked if the other kernel configs have been updated correctly. Fixing these leads to: Problem 2: /usr/tools//bin/arm--netbsdelf-gcc -ffreestanding -O2 -march=armv3m -mtune=strongarm -Wcomment -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare -Wno-uninitialized -Darm32 -I. -I/work/src/sys/arch -I/work/src/sys -nostdinc -DNMBCLUSTERS="0x800" -DNBUF="0x800" -DLKM -DARM32_PMAP_NEW -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -c /work/src/sys/arch/arm/arm32/fault.c/var/tmp//ccKPl5KD.s: Assembler messages:/var/tmp//ccKPl5KD.s:184: Error: selected processor does not support `ldrh r1,[r5]' *** Failed target: fault.o fault.c contains an ARMV4 specific instruction ldrh. Which is not available on ARM6/7 and even StrongARM on acorn32 due to limitations of the CPU bus. I'm not sure what the correct fix for this is. Looking at CVS this has been in the code since revision 1.3 of this file but the new tools are being more strict and complaining about the problem. Suggestions? Mike
GENERIC.patch
(application/octet-stream, 710 B)
Index: GENERIC =================================================================== RCS file: /cvsroot/src/sys/arch/acorn32/conf/GENERIC,v retrieving revision 1.29 diff -u -r1.29 GENERIC --- GENERIC 2003/10/08 11:00:38 1.29 +++ GENERIC 2003/10/08 20:25:02 @@ -230,7 +230,7 @@ #wdc* at pioc? offset 0x0170 irq -1 atabus* at wdc? channel ? -wd* at atabus? ? drive ? +wd* at atabus? drive ? atapibus* at atabus? cd* at atapibus? drive ? sd* at atapibus? drive ? @@ -293,7 +293,7 @@ ss* at scsibus? target ? lun ? # SCSI scanner dtide* at podulebus? # D.T. Software IDE card -atabus* at dtide? channel +atabus* at dtide? channel ? hcide* at podulebus? # HCCS IDE card atabus* at hcide? channel ?