e439ab9afe
For 32-bit SDRAM systems, enable D16 to D31 in the PIO controller. Otherwise they read back as 0xffff. Shave 8 bytes from the object size by using AT91C_BASE_PIOA directly and by not assigning PIO_BSR to 0 in the DBGU init. That's a nop in two ways (everything defaults to peripheral A, and writing 0 changes nothing).
This is a bootstrap bootloader. It is intended to be used when the AT91RM9200 is running xmodem over DBGU. It will download the next stage of the booting process (or the recovery program) and jump to it. It loads the program at a 1MB offset into SDRAM. Programs are expected to be smaller than this and copy themselves to the right location. $FreeBSD$