better usage of .sys section

This commit is contained in:
NIIBE Yutaka
2012-05-28 11:46:49 +09:00
parent cb1dc21b61
commit f072de436b
2 changed files with 7 additions and 4 deletions

View File

@@ -1,5 +1,8 @@
2012-05-28 Niibe Yutaka <gniibe@fsij.org>
* polarssl-0.14.0/library/aes.c (FT0, FT1, FT2): Specify the
section ".sys", so that we will have more room for flash ROM.
* tool/gnuk_upgrade.py (main): First 4096-byte of Gnuk is system
block. Don't send it to reGNUal.
@@ -22,7 +25,7 @@
* boards/OLIMEX_STM32_H103/board.c (USB_Cable_Config, set_led):
Remove.
* boards/STM32_PRIMER2/board.h (SET_USB_CONDITION)
* boards/STM32_PRIMER2/board.h (SET_USB_CONDITION)
(SET_LED_CONDITION, GPIO_LED, IOPORT_LED, FLASH_PAGE_SIZE): New.
* boards/STM32_PRIMER2/board.c (USB_Cable_Config, set_led):
Remove.

View File

@@ -172,15 +172,15 @@ static const unsigned char FSb[256] =
V(CB,B0,B0,7B), V(FC,54,54,A8), V(D6,BB,BB,6D), V(3A,16,16,2C)
#define V(a,b,c,d) 0x##a##b##c##d
static const unsigned long FT0[256] = { FT };
static const unsigned long FT0[256] __attribute__((section(".sys"))) = { FT };
#undef V
#define V(a,b,c,d) 0x##b##c##d##a
static const unsigned long FT1[256] = { FT };
static const unsigned long FT1[256] __attribute__((section(".sys"))) = { FT };
#undef V
#define V(a,b,c,d) 0x##c##d##a##b
static const unsigned long FT2[256] = { FT };
static const unsigned long FT2[256] __attribute__((section(".sys"))) = { FT };
#undef V
#define V(a,b,c,d) 0x##d##a##b##c