⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 common.lst

📁 au1200下的boot代码
💻 LST
📖 第 1 页 / 共 3 页
字号:
GAS LISTING /tmp/ccUstWcp.s 			page 1   1              		.section .mdebug.abi32   2              		.previous   3              		.section	.debug_abbrev,"",@progbits   4              	$Ldebug_abbrev0:   5              		.section	.debug_info,"",@progbits   6              	$Ldebug_info0:   7              		.section	.debug_line,"",@progbits   8              	$Ldebug_line0:   9 0000 95000000 		.text   9      02006E00    9      00000101    9      FB0E0A00    9      01010101   10              	$Ltext0:  11              		.align	2  12              		.globl	commonInit  13              		.ent	commonInit  14              		.type	commonInit, @function  15              	commonInit:  16              	$LFB2:  17              		.file 1 "/mnt/hgfs/boot/booter/source/common.c"   1:/mnt/hgfs/boot/booter/source/common.c **** /*   2:/mnt/hgfs/boot/booter/source/common.c ****  * File:		src/common.c   3:/mnt/hgfs/boot/booter/source/common.c ****  *   4:/mnt/hgfs/boot/booter/source/common.c ****  * Purpose:		Common platform run-time glue code   5:/mnt/hgfs/boot/booter/source/common.c ****  *   6:/mnt/hgfs/boot/booter/source/common.c ****  * Notes:   7:/mnt/hgfs/boot/booter/source/common.c ****  *   8:/mnt/hgfs/boot/booter/source/common.c ****  * Author:		Eric DeVolder   9:/mnt/hgfs/boot/booter/source/common.c ****  * Date:		Apr-24-2002  10:/mnt/hgfs/boot/booter/source/common.c ****  *  11:/mnt/hgfs/boot/booter/source/common.c ****  * Modifications:  12:/mnt/hgfs/boot/booter/source/common.c ****  *  13:/mnt/hgfs/boot/booter/source/common.c ****  */  14:/mnt/hgfs/boot/booter/source/common.c ****   15:/mnt/hgfs/boot/booter/source/common.c **** #include "example.h"  16:/mnt/hgfs/boot/booter/source/common.c ****   17:/mnt/hgfs/boot/booter/source/common.c **** #ifndef CONSOLE  18:/mnt/hgfs/boot/booter/source/common.c **** #define CONSOLE 0  19:/mnt/hgfs/boot/booter/source/common.c **** #endif  20:/mnt/hgfs/boot/booter/source/common.c ****   21:/mnt/hgfs/boot/booter/source/common.c **** #ifndef BAUDRATE  22:/mnt/hgfs/boot/booter/source/common.c **** #define BAUDRATE 115200  23:/mnt/hgfs/boot/booter/source/common.c **** #endif  24:/mnt/hgfs/boot/booter/source/common.c ****   25:/mnt/hgfs/boot/booter/source/common.c **** /* used in crt0.S for exitToYamon() */  26:/mnt/hgfs/boot/booter/source/common.c **** void *startupStackFrame;  27:/mnt/hgfs/boot/booter/source/common.c ****   28:/mnt/hgfs/boot/booter/source/common.c **** /********************************************************************/  29:/mnt/hgfs/boot/booter/source/common.c ****   30:/mnt/hgfs/boot/booter/source/common.c **** void  31:/mnt/hgfs/boot/booter/source/common.c **** commonInit (void)  32:/mnt/hgfs/boot/booter/source/common.c **** {  18              		.loc 1 32 0  19              		.frame	$sp,24,$31		# vars= 0, regs= 1/0, args= 16, gp= 0  20              		.mask	0x80000000,-8  21              		.fmask	0x00000000,0GAS LISTING /tmp/ccUstWcp.s 			page 2  22              		.set	noreorder  23              		.set	nomacro  24              		  25 0000 E8FFBD27 		addiu	$sp,$sp,-24  26              	$LCFI0:  27 0004 1000BFAF 		sw	$31,16($sp)  28              	$LCFI1:  33:/mnt/hgfs/boot/booter/source/common.c **** 	DPRINTF("\n");  34:/mnt/hgfs/boot/booter/source/common.c **** 	dcacheFlush();  29              		.loc 1 34 0  30 0008 0000000C 		jal	dcacheFlush  31 000c 00000000 		nop  32              	  35:/mnt/hgfs/boot/booter/source/common.c **** 	icacheFlush();  33              		.loc 1 35 0  34 0010 0000000C 		jal	icacheFlush  35 0014 00000000 		nop  36              	  36:/mnt/hgfs/boot/booter/source/common.c **** 	tlbInit();  37              		.loc 1 36 0  38 0018 0000000C 		jal	tlbInit  39 001c 00000000 		nop  40              	  37:/mnt/hgfs/boot/booter/source/common.c ****   38:/mnt/hgfs/boot/booter/source/common.c **** 	cpuIrqInit();  41              		.loc 1 38 0  42 0020 0000000C 		jal	cpuIrqInit  43 0024 00000000 		nop  44              	  39:/mnt/hgfs/boot/booter/source/common.c ****   40:/mnt/hgfs/boot/booter/source/common.c **** 	gpioinit();  45              		.loc 1 40 0  46 0028 0000000C 		jal	gpioinit  47 002c 00000000 		nop  48              	  41:/mnt/hgfs/boot/booter/source/common.c ****   42:/mnt/hgfs/boot/booter/source/common.c **** #if defined(AU1000) || defined(AU1500) || defined(AU1100)  43:/mnt/hgfs/boot/booter/source/common.c **** 	dmaInit();  44:/mnt/hgfs/boot/booter/source/common.c **** #endif  45:/mnt/hgfs/boot/booter/source/common.c ****   46:/mnt/hgfs/boot/booter/source/common.c **** #if defined(AU1550) || defined(AU1200)  47:/mnt/hgfs/boot/booter/source/common.c **** //	ddma_init(0);			// Need to add some meaningful config value here  48:/mnt/hgfs/boot/booter/source/common.c **** 	//ddma2_init();  49:/mnt/hgfs/boot/booter/source/common.c **** #endif  50:/mnt/hgfs/boot/booter/source/common.c ****   51:/mnt/hgfs/boot/booter/source/common.c **** #if defined(AU1500) || defined(AU1550)  52:/mnt/hgfs/boot/booter/source/common.c **** 	//pciInit();  53:/mnt/hgfs/boot/booter/source/common.c **** #endif  54:/mnt/hgfs/boot/booter/source/common.c ****   55:/mnt/hgfs/boot/booter/source/common.c **** 	msdelay(10);  49              		.loc 1 55 0  50 0030 0000000C 		jal	msdelay  51 0034 0A000424 		li	$4,10			# 0xa  52              	  56:/mnt/hgfs/boot/booter/source/common.c **** 	uartInit(CONSOLE, BAUDRATE);  53              		.loc 1 56 0  54 0038 0100053C 		li	$5,65536			# 0x10000GAS LISTING /tmp/ccUstWcp.s 			page 3  55 003c 00C2A534 		ori	$5,$5,0xc200  56 0040 0000000C 		jal	uartInit  57 0044 21200000 		move	$4,$0  58              	  57:/mnt/hgfs/boot/booter/source/common.c **** 	msdelay(10);  59              		.loc 1 57 0  60 0048 0000000C 		jal	msdelay  61 004c 0A000424 		li	$4,10			# 0xa  62              	  58:/mnt/hgfs/boot/booter/source/common.c ****   59:/mnt/hgfs/boot/booter/source/common.c **** 	/* Allow interrupts to occur (though all masked) */  60:/mnt/hgfs/boot/booter/source/common.c **** 	cpuEnableIrqs(STATUS_IE);  63              		.loc 1 60 0  64 0050 1000BF8F 		lw	$31,16($sp)  65 0054 01000424 		li	$4,1			# 0x1  66 0058 00000008 		j	cpuEnableIrqs  67 005c 1800BD27 		addiu	$sp,$sp,24  68              	  69              		.set	macro  70              		.set	reorder  71              	$LFE2:  72              		.end	commonInit  73              		.align	2  74              		.globl	platformPutChar  75              		.ent	platformPutChar  76              		.type	platformPutChar, @function  77              	platformPutChar:  78              	$LFB3:  61:/mnt/hgfs/boot/booter/source/common.c **** }  62:/mnt/hgfs/boot/booter/source/common.c ****   63:/mnt/hgfs/boot/booter/source/common.c **** /********************************************************************/  64:/mnt/hgfs/boot/booter/source/common.c ****   65:/mnt/hgfs/boot/booter/source/common.c **** void  66:/mnt/hgfs/boot/booter/source/common.c **** platformPutChar (int ch)  67:/mnt/hgfs/boot/booter/source/common.c **** {  79              		.loc 1 67 0  80              		.frame	$sp,0,$31		# vars= 0, regs= 0/0, args= 0, gp= 0  81              		.mask	0x00000000,0  82              		.fmask	0x00000000,0  83              		.set	noreorder  84              		.set	nomacro  85              		  68:/mnt/hgfs/boot/booter/source/common.c **** 	uartPutChar(CONSOLE, ch);  86              		.loc 1 68 0  87 0060 21288000 		move	$5,$4  88 0064 00000008 		j	uartPutChar  89 0068 21200000 		move	$4,$0  90              	  91              		.set	macro  92              		.set	reorder  93              	$LFE3:  94              		.end	platformPutChar  95              		.align	2  96              		.globl	platformGetChar  97              		.ent	platformGetChar  98              		.type	platformGetChar, @function  99              	platformGetChar:GAS LISTING /tmp/ccUstWcp.s 			page 4 100              	$LFB4:  69:/mnt/hgfs/boot/booter/source/common.c **** }  70:/mnt/hgfs/boot/booter/source/common.c ****   71:/mnt/hgfs/boot/booter/source/common.c **** int  72:/mnt/hgfs/boot/booter/source/common.c **** platformGetChar (void)  73:/mnt/hgfs/boot/booter/source/common.c **** { 101              		.loc 1 73 0 102              		.frame	$sp,32,$31		# vars= 8, regs= 1/0, args= 16, gp= 0 103              		.mask	0x80000000,-8 104              		.fmask	0x00000000,0 105              		.set	noreorder 106              		.set	nomacro 107              		 108 006c E0FFBD27 		addiu	$sp,$sp,-32 109              	$LCFI2:  74:/mnt/hgfs/boot/booter/source/common.c **** 	int ch;  75:/mnt/hgfs/boot/booter/source/common.c **** 	uartGetChar(CONSOLE, &ch); 110              		.loc 1 75 0 111 0070 1000A527 		addiu	$5,$sp,16 112              		.loc 1 73 0 113 0074 1800BFAF 		sw	$31,24($sp) 114              	$LCFI3: 115              		.loc 1 75 0 116 0078 0000000C 		jal	uartGetChar 117 007c 21200000 		move	$4,$0 118              	  76:/mnt/hgfs/boot/booter/source/common.c **** 	return ch;  77:/mnt/hgfs/boot/booter/source/common.c **** } 119              		.loc 1 77 0 120 0080 1000A28F 		lw	$2,16($sp) 121 0084 1800BF8F 		lw	$31,24($sp) 122 0088 0800E003 		j	$31 123 008c 2000BD27 		addiu	$sp,$sp,32 124              	 125              		.set	macro 126              		.set	reorder 127              	$LFE4: 128              		.end	platformGetChar 129              		.align	2 130              		.globl	platformCheckChar 131              		.ent	platformCheckChar 132              		.type	platformCheckChar, @function 133              	platformCheckChar: 134              	$LFB5:  78:/mnt/hgfs/boot/booter/source/common.c ****   79:/mnt/hgfs/boot/booter/source/common.c **** int  80:/mnt/hgfs/boot/booter/source/common.c **** platformCheckChar (void)  81:/mnt/hgfs/boot/booter/source/common.c **** { 135              		.loc 1 81 0 136              		.frame	$sp,0,$31		# vars= 0, regs= 0/0, args= 0, gp= 0 137              		.mask	0x00000000,0 138              		.fmask	0x00000000,0 139              		.set	noreorder 140              		.set	nomacro 141              		  82:/mnt/hgfs/boot/booter/source/common.c **** 	return uartCheckChar(CONSOLE); 142              		.loc 1 82 0GAS LISTING /tmp/ccUstWcp.s 			page 5 143 0090 00000008 		j	uartCheckChar 144 0094 21200000 		move	$4,$0 145              	 146              		.set	macro 147              		.set	reorder 148              	$LFE5: 149              		.end	platformCheckChar 150              	 151              		.comm	startupStackFrame,4,4 152              		.section	.debug_frame,"",@progbits 153              	$Lframe0: 154 0000 0C000000 		.4byte	$LECIE0-$LSCIE0 155              	$LSCIE0: 156 0004 FFFFFFFF 		.4byte	0xffffffff 157 0008 01       		.byte	0x1 158 0009 00       		.ascii	"\000" 159 000a 01       		.uleb128 0x1 160 000b 04       		.sleb128 4 161 000c 1F       		.byte	0x1f 162 000d 0C       		.byte	0xc 163 000e 1D       		.uleb128 0x1d 164 000f 00       		.uleb128 0x0 165              		.align	2 166              	$LECIE0: 167              	$LSFDE0: 168 0010 14000000 		.4byte	$LEFDE0-$LASFDE0 169              	$LASFDE0: 170 0014 00000000 		.4byte	$Lframe0 171 0018 00000000 		.4byte	$LFB2 172 001c 60000000 		.4byte	$LFE2-$LFB2 173 0020 44       		.byte	0x4 174              		.4byte	$LCFI0-$LFB2 175 0021 0E       		.byte	0xe 176 0022 18       		.uleb128 0x18 177 0023 44       		.byte	0x4 178              		.4byte	$LCFI1-$LCFI0 179 0024 11       		.byte	0x11 180 0025 1F       		.uleb128 0x1f 181 0026 7E       		.sleb128 -2 182 0027 00       		.align	2 183              	$LEFDE0: 184              	$LSFDE2: 185 0028 0C000000 		.4byte	$LEFDE2-$LASFDE2 186              	$LASFDE2: 187 002c 00000000 		.4byte	$Lframe0 188 0030 60000000 		.4byte	$LFB3 189 0034 0C000000 		.4byte	$LFE3-$LFB3 190              		.align	2 191              	$LEFDE2: 192              	$LSFDE4: 193 0038 14000000 		.4byte	$LEFDE4-$LASFDE4 194              	$LASFDE4: 195 003c 00000000 		.4byte	$Lframe0 196 0040 6C000000 		.4byte	$LFB4 197 0044 24000000 		.4byte	$LFE4-$LFB4 198 0048 44       		.byte	0x4 199              		.4byte	$LCFI2-$LFB4GAS LISTING /tmp/ccUstWcp.s 			page 6 200 0049 0E       		.byte	0xe 201 004a 20       		.uleb128 0x20 202 004b 48       		.byte	0x4 203              		.4byte	$LCFI3-$LCFI2 204 004c 11       		.byte	0x11 205 004d 1F       		.uleb128 0x1f 206 004e 7E       		.sleb128 -2

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -