[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [bug #37104] ATtiny5/9/10/20/40 interrupt wrapper uses in
From: |
Jonathan Oakley |
Subject: |
[avr-libc-dev] [bug #37104] ATtiny5/9/10/20/40 interrupt wrapper uses invalid register |
Date: |
Wed, 15 Aug 2012 09:36:17 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.27) Gecko/20120216 Firefox/3.6.27 (.NET CLR 3.5.30729) |
URL:
<http://savannah.nongnu.org/bugs/?37104>
Summary: ATtiny5/9/10/20/40 interrupt wrapper uses invalid
register
Project: AVR C Runtime Library
Submitted by: jro_at_team
Submitted on: Wed 15 Aug 2012 09:36:16 GMT
Category: Library
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Unknown
Status: None
Percent Complete: 0%
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Release: 1.8.0
Fixed Release: None
_______________________________________________________
Details:
I'm not sure if this is the fault of the library or GCC, but the
wrapper/prologue+epilogue generated for interrupt service routines by
ISR(vect) uses r0 and r1, which don't exist on the ATtiny5/9/10/20/40 family
(they only implement r16-r31). The result is six "register not supported"
errors when the intermediate assembler file is compiled.
The only workaround I can see is to use the ISR_NAKED attribute and generate
the correct wrapper yourself, which is obviously pretty tedious!
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?37104>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [avr-libc-dev] [bug #37104] ATtiny5/9/10/20/40 interrupt wrapper uses invalid register,
Jonathan Oakley <=