📄 list.s43
字号:
//////////////////////////////////////////////////////////////////////////////
// /
// IAR MSP430 C/C++ Compiler V3.41A/W32 22/Apr/2006 00:25:15 /
// Copyright 1996-2006 IAR Systems. All rights reserved. /
// /
// __rt_version = 2 /
// __double_size = 32 /
// __reg_r4 = free /
// __reg_r5 = free /
// __pic = no /
// __core = 64kb /
// Source file = C:\MSP430F169_Eval_Port\FreeRTOSv401\Source\list.c /
// Command line = C:\MSP430F169_Eval_Port\FreeRTOSv401\Source\list.c /
// -D ROWLEY_MSP430 -D IAR_MSP430 -lC /
// C:\MSP430F169_Eval_Port\FreeRTOSv401\Debug\List\ -lA /
// C:\MSP430F169_Eval_Port\FreeRTOSv401\Debug\List\ /
// --remarks -o C:\MSP430F169_Eval_Port\FreeRTOSv401\Deb /
// ug\Obj\ -s2 --no_cse --no_unroll --no_inline /
// --no_code_motion --no_tbaa --debug -e /
// --migration_preprocessor_extensions --double=32 -I /
// C:\MSP430F169_Eval_Port\FreeRTOSv401\Demo\Common\Incl /
// ude\ -I C:\MSP430F169_Eval_Port\FreeRTOSv401\Source\I /
// nclude\ -I C:\MSP430F169_Eval_Port\FreeRTOSv401\Demo\ /
// MSP430_IAR\ -I C:\MSP430F169_Eval_Port\FreeRTOSv401\S /
// ource\portable\msp430f1611\ -I "C:\Program Files\IAR /
// Systems\Embedded Workbench 4.0\430\INC\" -I /
// "C:\Program Files\IAR Systems\Embedded Workbench /
// 4.0\430\INC\CLIB\" /
// List file = C:\MSP430F169_Eval_Port\FreeRTOSv401\Debug\List\list. /
// s43 /
// /
// /
//////////////////////////////////////////////////////////////////////////////
NAME list
RTMODEL "__core", "64kb"
RTMODEL "__double_size", "32"
RTMODEL "__pic", "no"
RTMODEL "__reg_r4", "free"
RTMODEL "__reg_r5", "free"
RTMODEL "__rt_version", "2"
RSEG CSTACK:DATA:SORT:NOROOT(1)
EXTERN ?longjmp_r4
EXTERN ?longjmp_r5
EXTERN ?setjmp_r4
EXTERN ?setjmp_r5
PUBWEAK ?setjmp_save_r4
PUBWEAK ?setjmp_save_r5
PUBLIC vListInitialise
FUNCTION vListInitialise,0203H
LOCFRAME CSTACK, 2, STACK
PUBLIC vListInitialiseItem
FUNCTION vListInitialiseItem,0203H
LOCFRAME CSTACK, 2, STACK
PUBLIC vListInsert
FUNCTION vListInsert,0203H
LOCFRAME CSTACK, 4, STACK
PUBLIC vListInsertEnd
FUNCTION vListInsertEnd,0203H
LOCFRAME CSTACK, 2, STACK
PUBLIC vListRemove
FUNCTION vListRemove,0203H
LOCFRAME CSTACK, 2, STACK
CFI Names cfiNames0
CFI StackFrame CFA SP DATA
CFI Resource PC:16, SP:16, SR:16, R4:16, R5:16, R6:16, R7:16, R8:16
CFI Resource R9:16, R10:16, R11:16, R12:16, R13:16, R14:16, R15:16
CFI EndNames cfiNames0
CFI Common cfiCommon0 Using cfiNames0
CFI CodeAlign 2
CFI DataAlign 2
CFI ReturnAddress PC CODE
CFI CFA SP+2
CFI PC Frame(CFA, -2)
CFI SR Undefined
CFI R4 SameValue
CFI R5 SameValue
CFI R6 SameValue
CFI R7 SameValue
CFI R8 SameValue
CFI R9 SameValue
CFI R10 SameValue
CFI R11 SameValue
CFI R12 Undefined
CFI R13 Undefined
CFI R14 Undefined
CFI R15 Undefined
CFI EndCommon cfiCommon0
// C:\MSP430F169_Eval_Port\FreeRTOSv401\Source\list.c
// 1 /*
// 2 FreeRTOS V4.0.1 - Copyright (C) 2003-2006 Richard Barry.
// 3
// 4 This file is part of the FreeRTOS distribution.
// 5
// 6 FreeRTOS is free software; you can redistribute it and/or modify
// 7 it under the terms of the GNU General Public License as published by
// 8 the Free Software Foundation; either version 2 of the License, or
// 9 (at your option) any later version.
// 10
// 11 FreeRTOS is distributed in the hope that it will be useful,
// 12 but WITHOUT ANY WARRANTY; without even the implied warranty of
// 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// 14 GNU General Public License for more details.
// 15
// 16 You should have received a copy of the GNU General Public License
// 17 along with FreeRTOS; if not, write to the Free Software
// 18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
// 19
// 20 A special exception to the GPL can be applied should you wish to distribute
// 21 a combined work that includes FreeRTOS, without being obliged to provide
// 22 the source code for any proprietary components. See the licensing section
// 23 of http://www.FreeRTOS.org for full details of how and when the exception
// 24 can be applied.
// 25
// 26 ***************************************************************************
// 27 See http://www.FreeRTOS.org for documentation, latest information, license
// 28 and contact details. Please ensure to read the configuration and relevant
// 29 port sections of the online documentation.
// 30 ***************************************************************************
// 31 */
// 32
// 33 /*
// 34 Changes from V1.2.0
// 35
// 36 + Removed the volatile modifier from the function parameters. This was
// 37 only ever included to prevent compiler warnings. Now warnings are
// 38 removed by casting parameters where the calls are made.
// 39
// 40 + prvListGetOwnerOfNextEntry() and prvListGetOwnerOfHeadEntry() have been
// 41 removed from the c file and added as macros to the h file.
// 42
// 43 + uxNumberOfItems has been added to the list structure. This removes the
// 44 need for a pointer comparison when checking if a list is empty, and so
// 45 is slightly faster.
// 46
// 47 + Removed the NULL check in vListRemove(). This makes the call faster but
// 48 necessitates any application code utilising the list implementation to
// 49 ensure NULL pointers are not passed.
// 50
// 51 Changes from V2.0.0
// 52
// 53 + Double linked the lists to allow faster removal item removal.
// 54
// 55 Changes from V2.6.1
// 56
// 57 + Make use of the new portBASE_TYPE definition where ever appropriate.
// 58
// 59 Changes from V3.0.0
// 60
// 61 + API changes as described on the FreeRTOS.org WEB site.
// 62
// 63 Changes from V3.2.4
// 64
// 65 + Removed the pxHead member of the xList structure. This always pointed
// 66 to the same place so has been removed to free a few bytes of RAM.
// 67
// 68 + Introduced the xMiniListItem structure that does not include the
// 69 xListItem members that are not required by the xListEnd member of a list.
// 70 Again this was done to reduce RAM usage.
// 71
// 72 + Changed the volatile definitions of some structure members to clean up
// 73 the code where the list structures are used.
// 74 */
// 75
// 76 #include <stdlib.h>
// 77 #include "FreeRTOS.h"
// 78 #include "list.h"
// 79
// 80 /*-----------------------------------------------------------
// 81 * PUBLIC LIST API documented in list.h
// 82 *----------------------------------------------------------*/
// 83
RSEG CODE:CODE:REORDER:NOROOT(1)
// 84 void vListInitialise( xList *pxList )
vListInitialise:
CFI Block cfiBlock0 Using cfiCommon0
CFI Function vListInitialise
// 85 {
// 86 /* The list structure contains a list item which is used to mark the
// 87 end of the list. To initialise the list the list end is inserted
// 88 as the only list entry. */
// 89 pxList->pxIndex = ( xListItem * ) &( pxList->xListEnd );
MOV.W R12, R15
ADD.W #0x4, R15
MOV.W R15, 0x2(R12)
// 90
// 91 /* The list end value is the highest possible value in the list to
// 92 ensure it remains at the end of the list. */
// 93 pxList->xListEnd.xItemValue = portMAX_DELAY;
MOV.W #0xffff, 0x4(R12)
// 94
// 95 /* The list end next and previous pointers point to itself so we know
// 96 when the list is empty. */
// 97 pxList->xListEnd.pxNext = ( xListItem * ) &( pxList->xListEnd );
MOV.W R12, R15
ADD.W #0x4, R15
MOV.W R15, 0x6(R12)
// 98 pxList->xListEnd.pxPrevious = ( xListItem * ) &( pxList->xListEnd );
MOV.W R12, R15
ADD.W #0x4, R15
MOV.W R15, 0x8(R12)
// 99
// 100 pxList->uxNumberOfItems = 0;
MOV.W #0x0, 0(R12)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -