FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [November 2006 Threads] 8 byte alignmentPosted by Jokke on November 13, 2006 Working with real view compiler for ARM (used by Keil) I ran into a need for 8 byte alignment of the stack. (sprintf with float values did not work otherwise.)
To achive this I had to add the following lines in heap_1.c: #if portBYTE_ALIGNMENT == 8 #define heapBYTE_ALIGNMENT_MASK( ( size_t ) 0x0007 ) #endif
I also made some changes to my port of the OS. In port.c, pxPortInitialiseStack, first lines: /* Setup the initial stack of the task. The stack is set exactly as expected by the portRESTORE_CONTEXT() macro.
8 byte alignment: */ pxTopOfStack = (portSTACK_TYPE *)((long)pxTopOfStack & 0xfffffff8);
In portmacro.h: #define portBYTE_ALIGNMENT8
I'll send the changes to Richard.
Regards
Jokke
RE: 8 byte alignmentPosted by Nobody/Anonymous on November 13, 2006 Thought that was in there already or was that just 4 byte alilgnmebt?
RE: 8 byte alignmentPosted by Jokke on November 14, 2006 Correct, there was 1, 2 and 4 byte alignment already. No big change!
Jokke
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|