Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: uCOS-II, SAM7 port V. 1.84 oddity.
PostPosted: Mon Dec 15, 2008 5:46 pm 
Offline

Joined: Mon Mar 05, 2007 10:28 pm
Posts: 18
Hello,

I just "updated" to the latest V. 1.84 port of uCOS-II.

The application note states that in the new version, all exceptions are eventually processed in
supervisor (SVC) mode and that the stack sizes for the other exception stacks (FIQ/IRQ/Abort/etc) only need to be 16 bytes large to hold R0-R3.

However, all OS_CPU_ARM_ExceptXXXXHndlr functions except for
OS_CPU_ARM_ExceptIrqHndlr start with pushing R0-R12, LR to the stack
(STMFD SP!, {R0-R12, LR} ) without switching the processor mode.

Am I missing something here, or will this behavior cause a stack overflow if the
exception stacks are only 16 bytes large as stated in the application note?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: