PERFORCE change 96498 for review

Warner Losh imp at FreeBSD.org
Mon May 1 17:34:59 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=96498

Change 96498 by imp at imp_hammer on 2006/05/01 17:34:07

	For interrupt vector 6, use the format needed by the boot
	loader in the AT91RM9200 when booting off of DataFlash parts.
	
	# NOTE: This needs to be tweaked for each part that might have
	# on the SPI bus, as we have to encode page size and number of
	# pages into this vector...  On the other hand, we'll have this
	# data once the boot loader is in memory and can pass it to the
	# kernel in some manner...

Affected files ...

.. //depot/projects/arm/src/sys/boot/arm/at91/bootspi/arm_init.S#2 edit

Differences ...

==== //depot/projects/arm/src/sys/boot/arm/at91/bootspi/arm_init.S#2 (text+ko) ====

@@ -23,7 +23,6 @@
  * $FreeBSD: src/sys/boot/arm/at91/bootspi/arm_init.s,v 1.1 2006/04/19 17:16:48 imp Exp $
  ******************************************************************************/
 
-	.equ	TWI_EEPROM_SIZE,	0x2000
 	.equ	ARM_MODE_USER,	0x10
 	.equ	ARM_MODE_FIQ,	0x11
 	.equ	ARM_MODE_IRQ,	0x12
@@ -60,7 +59,7 @@
 dabtvec:
                 B           dabtvec         	@; Data Abort
 rsvdvec:
-		.long	(TWI_EEPROM_SIZE >> 9)
+		.long	((1056 << 17) | (13 << 13) | (12 * 1024))
 irqvec:
                 ldr         pc, [pc,#-0xF20]    @; IRQ : read the AIC
 fiqvec:


More information about the p4-projects mailing list