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] [March 2008 Threads] vPortEnableInterruptsFromThumb usePosted by Bill Florac on March 3, 2008 Im confused as to use of the function vPortDisableInterruptsFromThumb()[see: portDISABLE_INTERRUPTS]. It does not appear to result in any different code then vPortEnterCritical()[see: portENTER_CRITICAL]. Both functions disable interrupts and both are contained in the portISR.c code. All the code here is defined as ARM and it seems the GCC compiler correct puts it in and out of THUMB mode when these are called. Bill---
RE: vPortEnableInterruptsFromThumb usePosted by Richard on March 3, 2008 When compiling your entire application in ARM mode it is more efficient to disable/enable interrupts using an inline macro, but this macro uses ARM instructions. When compiling your code in THUMB mode you cannot use the macro (as it contains ARM instructions) so instead a function call is used. When using ARM/THUMB interworking the compiler will ensure you switch to ARM mode on entry to the function, so the function is compiled to ARM mode. It is called "FromThumb", but compiled to ARM, with the compiler taking care of the switching.
Regards.
RE: vPortEnableInterruptsFromThumb usePosted by Bill Florac on March 4, 2008 It seems odd that the "FromThumb" version is only called once. Elsewhere, the other version is called. So if one compiles with Thumb/Interworking off but in THUMB mode, shouldn't the "FromThumb" always be called?
Bill
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|