📄 os_core.lis
字号:
.module OS_CORE.C
.area lit(rom, con, rel)
0000 _OSMapTbl::
0000 0102 .byte 1,2
0002 0408 .byte 4,8
0004 1020 .byte 16,32
0006 4080 .byte 64,128
0008 .dbfile E:\study\ucos_ii\ucos2_iccavr\iccavr\ucos2_without_cpu\OS_CORE.C
0008 .dbsym e OSMapTbl _OSMapTbl A[8:8]kc
0008 _OSUnMapTbl::
0008 0000 .byte 0,0
000A 0100 .byte 1,0
000C 0200 .byte 2,0
000E 0100 .byte 1,0
0010 0300 .byte 3,0
0012 0100 .byte 1,0
0014 0200 .byte 2,0
0016 0100 .byte 1,0
0018 0400 .byte 4,0
001A 0100 .byte 1,0
001C 0200 .byte 2,0
001E 0100 .byte 1,0
0020 0300 .byte 3,0
0022 0100 .byte 1,0
0024 0200 .byte 2,0
0026 0100 .byte 1,0
0028 0500 .byte 5,0
002A 0100 .byte 1,0
002C 0200 .byte 2,0
002E 0100 .byte 1,0
0030 0300 .byte 3,0
0032 0100 .byte 1,0
0034 0200 .byte 2,0
0036 0100 .byte 1,0
0038 0400 .byte 4,0
003A 0100 .byte 1,0
003C 0200 .byte 2,0
003E 0100 .byte 1,0
0040 0300 .byte 3,0
0042 0100 .byte 1,0
0044 0200 .byte 2,0
0046 0100 .byte 1,0
0048 0600 .byte 6,0
004A 0100 .byte 1,0
004C 0200 .byte 2,0
004E 0100 .byte 1,0
0050 0300 .byte 3,0
0052 0100 .byte 1,0
0054 0200 .byte 2,0
0056 0100 .byte 1,0
0058 0400 .byte 4,0
005A 0100 .byte 1,0
005C 0200 .byte 2,0
005E 0100 .byte 1,0
0060 0300 .byte 3,0
0062 0100 .byte 1,0
0064 0200 .byte 2,0
0066 0100 .byte 1,0
0068 0500 .byte 5,0
006A 0100 .byte 1,0
006C 0200 .byte 2,0
006E 0100 .byte 1,0
0070 0300 .byte 3,0
0072 0100 .byte 1,0
0074 0200 .byte 2,0
0076 0100 .byte 1,0
0078 0400 .byte 4,0
007A 0100 .byte 1,0
007C 0200 .byte 2,0
007E 0100 .byte 1,0
0080 0300 .byte 3,0
0082 0100 .byte 1,0
0084 0200 .byte 2,0
0086 0100 .byte 1,0
0088 0700 .byte 7,0
008A 0100 .byte 1,0
008C 0200 .byte 2,0
008E 0100 .byte 1,0
0090 0300 .byte 3,0
0092 0100 .byte 1,0
0094 0200 .byte 2,0
0096 0100 .byte 1,0
0098 0400 .byte 4,0
009A 0100 .byte 1,0
009C 0200 .byte 2,0
009E 0100 .byte 1,0
00A0 0300 .byte 3,0
00A2 0100 .byte 1,0
00A4 0200 .byte 2,0
00A6 0100 .byte 1,0
00A8 0500 .byte 5,0
00AA 0100 .byte 1,0
00AC 0200 .byte 2,0
00AE 0100 .byte 1,0
00B0 0300 .byte 3,0
00B2 0100 .byte 1,0
00B4 0200 .byte 2,0
00B6 0100 .byte 1,0
00B8 0400 .byte 4,0
00BA 0100 .byte 1,0
00BC 0200 .byte 2,0
00BE 0100 .byte 1,0
00C0 0300 .byte 3,0
00C2 0100 .byte 1,0
00C4 0200 .byte 2,0
00C6 0100 .byte 1,0
00C8 0600 .byte 6,0
00CA 0100 .byte 1,0
00CC 0200 .byte 2,0
00CE 0100 .byte 1,0
00D0 0300 .byte 3,0
00D2 0100 .byte 1,0
00D4 0200 .byte 2,0
00D6 0100 .byte 1,0
00D8 0400 .byte 4,0
00DA 0100 .byte 1,0
00DC 0200 .byte 2,0
00DE 0100 .byte 1,0
00E0 0300 .byte 3,0
00E2 0100 .byte 1,0
00E4 0200 .byte 2,0
00E6 0100 .byte 1,0
00E8 0500 .byte 5,0
00EA 0100 .byte 1,0
00EC 0200 .byte 2,0
00EE 0100 .byte 1,0
00F0 0300 .byte 3,0
00F2 0100 .byte 1,0
00F4 0200 .byte 2,0
00F6 0100 .byte 1,0
00F8 0400 .byte 4,0
00FA 0100 .byte 1,0
00FC 0200 .byte 2,0
00FE 0100 .byte 1,0
0100 0300 .byte 3,0
0102 0100 .byte 1,0
0104 0200 .byte 2,0
0106 0100 .byte 1,0
0108 .dbsym e OSUnMapTbl _OSUnMapTbl A[256:256]kc
.area text(rom, con, rel)
0000 .dbfile E:\study\ucos_ii\ucos2_iccavr\iccavr\ucos2_without_cpu\OS_CORE.C
0000 .dbfunc e OSInit _OSInit fV
.even
0000 _OSInit::
0000 .dbline -1
0000 .dbline 86
0000 ; /*
0000 ; *********************************************************************************************************
0000 ; * uC/OS-II
0000 ; * The Real-Time Kernel
0000 ; * CORE FUNCTIONS
0000 ; *
0000 ; * (c) Copyright 1992-2002, Jean J. Labrosse, Weston, FL
0000 ; * All Rights Reserved
0000 ; *
0000 ; * File : OS_CORE.C
0000 ; * By : Jean J. Labrosse
0000 ; *********************************************************************************************************
0000 ; */
0000 ;
0000 ; #ifndef OS_MASTER_FILE
0000 ; #define OS_GLOBALS
0000 ; #include "..\ucos2_application\includes.h"
0000 ; #endif
0000 ;
0000 ; /*
0000 ; *********************************************************************************************************
0000 ; * MAPPING TABLE TO MAP BIT POSITION TO BIT MASK
0000 ; *
0000 ; * Note: Index into table is desired bit position, 0..7
0000 ; * Indexed value corresponds to bit mask
0000 ; *********************************************************************************************************
0000 ; */
0000 ;
0000 ; INT8U const OSMapTbl[] = {0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80};
0000 ;
0000 ; /*
0000 ; *********************************************************************************************************
0000 ; * PRIORITY RESOLUTION TABLE
0000 ; *
0000 ; * Note: Index into table is bit pattern to resolve highest priority
0000 ; * Indexed value corresponds to highest priority bit position (i.e. 0..7)
0000 ; *********************************************************************************************************
0000 ; */
0000 ;
0000 ; INT8U const OSUnMapTbl[] = {
0000 ; 0, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, /* 0x00 to 0x0F */
0000 ; 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, /* 0x10 to 0x1F */
0000 ; 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, /* 0x20 to 0x2F */
0000 ; 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, /* 0x30 to 0x3F */
0000 ; 6, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, /* 0x40 to 0x4F */
0000 ; 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, /* 0x50 to 0x5F */
0000 ; 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, /* 0x60 to 0x6F */
0000 ; 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, /* 0x70 to 0x7F */
0000 ; 7, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, /* 0x80 to 0x8F */
0000 ; 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, /* 0x90 to 0x9F */
0000 ; 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, /* 0xA0 to 0xAF */
0000 ; 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, /* 0xB0 to 0xBF */
0000 ; 6, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, /* 0xC0 to 0xCF */
0000 ; 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, /* 0xD0 to 0xDF */
0000 ; 5, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, /* 0xE0 to 0xEF */
0000 ; 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0 /* 0xF0 to 0xFF */
0000 ; };
0000 ;
0000 ; /*
0000 ; *********************************************************************************************************
0000 ; * FUNCTION PROTOTYPES
0000 ; *********************************************************************************************************
0000 ; */
0000 ; static void OS_InitEventList(void);
0000 ; static void OS_InitMisc(void);
0000 ; static void OS_InitRdyList(void);
0000 ; static void OS_InitTaskIdle(void);
0000 ; static void OS_InitTaskStat(void);
0000 ; static void OS_InitTCBList(void);
0000 ;
0000 ;
0000 ; /*
0000 ; *********************************************************************************************************
0000 ; * INITIALIZATION
0000 ; *
0000 ; * Description: This function is used to initialize the internals of uC/OS-II and MUST be called prior to
0000 ; * creating any uC/OS-II object and, prior to calling OSStart().
0000 ; *
0000 ; * Arguments : none
0000 ; *
0000 ; * Returns : none
0000 ; *********************************************************************************************************
0000 ; */
0000 ;
0000 ; void OSInit (void)
0000 ; {
0000 .dbline 88
0000 ; #if OS_VERSION >= 204
0000 ; OSInitHookBegin(); /* Call port specific initialization code */
0000 0E940000 xcall _OSInitHookBegin
0004 .dbline 91
0004 ; #endif
0004 ;
0004 ; OS_InitMisc(); /* Initialize miscellaneous(杂项) variables */
0004 28D1 xcall _OS_InitMisc
0006 .dbline 93
0006 ;
0006 ; OS_InitRdyList(); /* Initialize the Ready List */
0006 4DD1 xcall _OS_InitRdyList
0008 .dbline 94
0008 ; OS_InitTCBList(); /* Initialize the free list of OS_TCBs */
0008 7CD1 xcall _OS_InitTCBList
000A .dbline 95
000A ; OS_InitEventList(); /* Initialize the free list of OS_EVENTs */
000A 24D1 xcall _OS_InitEventList
000C .dbline 98
000C ;
000C ; #if (OS_VERSION >= 251) && (OS_FLAG_EN > 0) && (OS_MAX_FLAGS > 0)
000C ; OS_FlagInit(); /* Initialize the event flag structures */
000C 0E940000 xcall _OS_FlagInit
0010 .dbline 109
0010 ; #endif
0010 ;
0010 ; #if (OS_MEM_EN > 0) && (OS_MAX_MEM_PART > 0)
0010 ; OS_MemInit(); /* Initialize the memory manager */
0010 ; #endif
0010 ;
0010 ; #if (OS_Q_EN > 0) && (OS_MAX_QS > 0)
0010 ; OS_QInit(); /* Initialize the message queue structures */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -