From 0bfafe733a69a16088b51db911a8b37fe09e9396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Mon, 9 Dec 2013 07:24:53 +0000 Subject: [PATCH] put alignment requirements for chip_errata_135 in function attributes --- BaS_gcc/sources/pci.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/BaS_gcc/sources/pci.c b/BaS_gcc/sources/pci.c index 422aeaf..b362e8e 100644 --- a/BaS_gcc/sources/pci.c +++ b/BaS_gcc/sources/pci.c @@ -81,7 +81,7 @@ static int32_t handles[NUM_CARDS]; static struct pci_rd resource_descriptors[NUM_CARDS][NUM_RESOURCES]; -void chip_errata_135(void) +__attribute__((aligned(16))) void chip_errata_135(void) { /* * Errata type: Silicon @@ -105,9 +105,6 @@ void chip_errata_135(void) __asm__ __volatile( " .extern __MBAR\n\t" - " bra .errata\n\t" - " .align 16\n\t" /* force function start to 16-byte boundary */ - ".errata:\n\t" " clr.l d0\n\t" " move.l d0,__MBAR+0xF0C\n\t" /* Must use direct addressing. write to EPORT module */ /* xlbus -> slavebus -> eport, writing '0' to register */