From 4175b8ec8f1910ef04fffbc8514b55705f4e54d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Sun, 8 Dec 2013 07:50:28 +0000 Subject: [PATCH] moved uninitialized variables to .bss (was .data) --- sources/exceptions.S | 3 --- sources/interrupts.c | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/sources/exceptions.S b/sources/exceptions.S index 0dbd383..f9bd3e9 100644 --- a/sources/exceptions.S +++ b/sources/exceptions.S @@ -465,13 +465,10 @@ noprint: move.l (a7)+,d0 // restore d0 rts // jump to exception routine - .data exception_text: .ascii "EXCEPTION %d caught at %p" .byte 13, 10, 0 - .text - #ifdef MACHINE_FIREBEE stv_protect: move.l usp,a5 // usp holen diff --git a/sources/interrupts.c b/sources/interrupts.c index a529149..5753d14 100644 --- a/sources/interrupts.c +++ b/sources/interrupts.c @@ -69,7 +69,7 @@ int register_interrupt_handler(uint8_t priority, uint8_t source, void (*func)()) "move.w sr,d0\n\t" "move.w d0,srsave \n\t" "move.w #0x2700,sr\n\t" - " .data\n\t" + " .bss\n\t" "srsave: ds.w 1\n\t" " .text\n\t" :