[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [bug #21805] boot.h: Use out instead of sts
From: |
Shaun Jackman |
Subject: |
[avr-libc-dev] [bug #21805] boot.h: Use out instead of sts |
Date: |
Fri, 14 Dec 2007 23:51:54 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.10) Gecko/20071115 Iceweasel/2.0.0.10 (Debian-2.0.0.10-0etch1) |
URL:
<http://savannah.nongnu.org/bugs/?21805>
Summary: boot.h: Use out instead of sts
Project: AVR C Runtime Library
Submitted by: sjackman
Submitted on: Friday 12/14/2007 at 23:51
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Header files
Status: None
Percent Complete: 0%
Assigned to: None
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
>From boot.h:
\todo From email with Marek: On smaller devices (all except
ATmega64/128),
__SPM_REG is in the I/O space, accessible with the shorter "in" and
"out"
instructions - since the boot loader has a limited size, this could be
an
important optimization.
I'm writing a boot-loader that has to fit into the 256 byte boot-loader space
of the 8 kB parts. Here is my proposed solution to fix this matter. I've only
fixed the __boot_xxx_normal variants, but the same logic could easily be
extended to the __boot_xxx_alternate and __boot_xxx_extended variants.
Cheers,
Shaun
2007-12-14 Shaun Jackman <address@hidden>
* include/avr/boot.h (__boot_page_fill_normal,
__boot_page_erase_normal, __boot_page_write_normal,
__boot_rww_enable): Use an out instruction rather than an sts
instruction when possible.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Friday 12/14/2007 at 23:51 Name: boot.diff Size: 5kB By: sjackman
<http://savannah.nongnu.org/bugs/download.php?file_id=14628>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?21805>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [avr-libc-dev] [bug #21805] boot.h: Use out instead of sts,
Shaun Jackman <=