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

📄 uart.lst

📁 au1200下的boot代码
💻 LST
📖 第 1 页 / 共 5 页
字号:
 286 01e8 1C00628C 		lw	$2,28($3) 528:/mnt/hgfs/boot/booter/source/uart.c **** 		return TRUE; 287              		.loc 1 528 0 529:/mnt/hgfs/boot/booter/source/uart.c **** 	else 530:/mnt/hgfs/boot/booter/source/uart.c **** 		return FALSE; 531:/mnt/hgfs/boot/booter/source/uart.c **** } 288              		.loc 1 531 0 289 01ec 0800E003 		j	$31 290 01f0 01004230 		andi	$2,$2,0x1 291              	 292              		.set	macro 293              		.set	reorder 294              	$LFE5: 295              		.end	uartCheckChar 296              		.align	2 297              		.globl	uartSetClkDivisor 298              		.ent	uartSetClkDivisor 299              		.type	uartSetClkDivisor, @function 300              	uartSetClkDivisor: 301              	$LFB6: 532:/mnt/hgfs/boot/booter/source/uart.c ****  533:/mnt/hgfs/boot/booter/source/uart.c **** int		uartSetClkDivisor(int uartNumber, int cpu_speed, int bus_mult, int baudrate) 534:/mnt/hgfs/boot/booter/source/uart.c **** { 302              		.loc 1 534 0 303              		.frame	$sp,24,$31		# vars= 0, regs= 2/0, args= 16, gp= 0 304              		.mask	0x80010000,-4 305              		.fmask	0x00000000,0 306              		.set	noreorder 307              		.set	nomacro 308              		 309 01f4 E8FFBD27 		addiu	$sp,$sp,-24 310              	$LCFI6: 311 01f8 1400BFAF 		sw	$31,20($sp) 312              	$LCFI7: 313 01fc 1000B0AF 		sw	$16,16($sp) 314              	$LCFI8: 535:/mnt/hgfs/boot/booter/source/uart.c **** 	AU1000_UART *uart; 536:/mnt/hgfs/boot/booter/source/uart.c **** 	int		clkdiv; 537:/mnt/hgfs/boot/booter/source/uart.c **** GAS LISTING /tmp/cc4XVykA.s 			page 16 538:/mnt/hgfs/boot/booter/source/uart.c **** 	switch (uartNumber) 539:/mnt/hgfs/boot/booter/source/uart.c **** 	{ 540:/mnt/hgfs/boot/booter/source/uart.c **** #ifdef UART0_PHYS_ADDR 541:/mnt/hgfs/boot/booter/source/uart.c **** 		case 0: uart = (AU1000_UART *)KSEG1(UART0_PHYS_ADDR); break; 315              		.loc 1 541 0 316              		.loc 1 538 0 317 0200 08008010 		beq	$4,$0,$L35 318 0204 10B1033C 		li	$3,-1324351488			# 0xffffffffb1100000 319              	 320 0208 01000224 		li	$2,1			# 0x1 542:/mnt/hgfs/boot/booter/source/uart.c **** #endif 543:/mnt/hgfs/boot/booter/source/uart.c **** #ifdef UART1_PHYS_ADDR 544:/mnt/hgfs/boot/booter/source/uart.c **** 		case 1: uart = (AU1000_UART *)KSEG1(UART1_PHYS_ADDR); break; 321              		.loc 1 544 0 322              		.loc 1 538 0 323 020c 05008210 		beq	$4,$2,$L35 324 0210 20B1033C 		li	$3,-1323302912			# 0xffffffffb1200000 325              	 545:/mnt/hgfs/boot/booter/source/uart.c **** #endif 546:/mnt/hgfs/boot/booter/source/uart.c **** #ifdef UART2_PHYS_ADDR 547:/mnt/hgfs/boot/booter/source/uart.c **** 		case 2: uart = (AU1000_UART *)KSEG1(UART2_PHYS_ADDR); break; 548:/mnt/hgfs/boot/booter/source/uart.c **** #endif 549:/mnt/hgfs/boot/booter/source/uart.c **** #ifdef UART3_PHYS_ADDR 550:/mnt/hgfs/boot/booter/source/uart.c **** 		case 3: uart = (AU1000_UART *)KSEG1(UART3_PHYS_ADDR); break; 551:/mnt/hgfs/boot/booter/source/uart.c **** #endif 552:/mnt/hgfs/boot/booter/source/uart.c **** 		default: 553:/mnt/hgfs/boot/booter/source/uart.c **** 			return; 554:/mnt/hgfs/boot/booter/source/uart.c **** 	} 555:/mnt/hgfs/boot/booter/source/uart.c ****  556:/mnt/hgfs/boot/booter/source/uart.c **** 	clkdiv = (cpu_speed / (bus_mult * baudrate * 4 * 8)); 557:/mnt/hgfs/boot/booter/source/uart.c **** 	uart->clkdiv  = clkdiv; 558:/mnt/hgfs/boot/booter/source/uart.c **** 	msdelay(10); 559:/mnt/hgfs/boot/booter/source/uart.c **** 	return clkdiv; 560:/mnt/hgfs/boot/booter/source/uart.c **** } 326              		.loc 1 560 0 327 0214 1400BF8F 		lw	$31,20($sp) 328 0218 1000B08F 		lw	$16,16($sp) 329 021c 0800E003 		j	$31 330 0220 1800BD27 		addiu	$sp,$sp,24 331              	 332              	$L35: 333              		.loc 1 556 0 334 0224 0280C770 		mul	$16,$6,$7 335              		.loc 1 558 0 336 0228 0A000424 		li	$4,10			# 0xa 337              		.loc 1 556 0 338 022c 40811000 		sll	$16,$16,5 339 0230 1A00B000 		div	$0,$5,$16 340 0234 02000016 		bne	$16,$0,1f 341 0238 00000000 		nop 342 023c 0D000700 		break	7 343              	1: 344 0240 12800000 		mflo	$16 345              		.loc 1 557 0 346 0244 280070AC 		sw	$16,40($3) 347              		.loc 1 558 0 348 0248 0000000C 		jal	msdelayGAS LISTING /tmp/cc4XVykA.s 			page 17 349 024c 00000000 		nop 350              	 351              		.loc 1 559 0 352 0250 21100002 		move	$2,$16 353              		.loc 1 560 0 354 0254 1400BF8F 		lw	$31,20($sp) 355 0258 1000B08F 		lw	$16,16($sp) 356 025c 0800E003 		j	$31 357 0260 1800BD27 		addiu	$sp,$sp,24 358              	 359              		.set	macro 360              		.set	reorder 361              	$LFE6: 362              		.end	uartSetClkDivisor 363              		.section	.debug_frame,"",@progbits 364              	$Lframe0: 365 0000 0C000000 		.4byte	$LECIE0-$LSCIE0 366              	$LSCIE0: 367 0004 FFFFFFFF 		.4byte	0xffffffff 368 0008 01       		.byte	0x1 369 0009 00       		.ascii	"\000" 370 000a 01       		.uleb128 0x1 371 000b 04       		.sleb128 4 372 000c 1F       		.byte	0x1f 373 000d 0C       		.byte	0xc 374 000e 1D       		.uleb128 0x1d 375 000f 00       		.uleb128 0x0 376              		.align	2 377              	$LECIE0: 378              	$LSFDE0: 379 0010 20000000 		.4byte	$LEFDE0-$LASFDE0 380              	$LASFDE0: 381 0014 00000000 		.4byte	$Lframe0 382 0018 00000000 		.4byte	$LFB2 383 001c 4C010000 		.4byte	$LFE2-$LFB2 384 0020 44       		.byte	0x4 385              		.4byte	$LCFI0-$LFB2 386 0021 0E       		.byte	0xe 387 0022 28       		.uleb128 0x28 388 0023 48       		.byte	0x4 389              		.4byte	$LCFI2-$LCFI0 390 0024 11       		.byte	0x11 391 0025 10       		.uleb128 0x10 392 0026 7A       		.sleb128 -6 393 0027 11       		.byte	0x11 394 0028 13       		.uleb128 0x13 395 0029 7D       		.sleb128 -3 396 002a 64       		.byte	0x4 397              		.4byte	$LCFI5-$LCFI2 398 002b 11       		.byte	0x11 399 002c 1F       		.uleb128 0x1f 400 002d 7E       		.sleb128 -2 401 002e 11       		.byte	0x11 402 002f 11       		.uleb128 0x11 403 0030 7B       		.sleb128 -5 404 0031 11       		.byte	0x11 405 0032 12       		.uleb128 0x12GAS LISTING /tmp/cc4XVykA.s 			page 18 406 0033 7C       		.sleb128 -4 407              		.align	2 408              	$LEFDE0: 409              	$LSFDE2: 410 0034 0C000000 		.4byte	$LEFDE2-$LASFDE2 411              	$LASFDE2: 412 0038 00000000 		.4byte	$Lframe0 413 003c 4C010000 		.4byte	$LFB3 414 0040 3C000000 		.4byte	$LFE3-$LFB3 415              		.align	2 416              	$LEFDE2: 417              	$LSFDE4: 418 0044 0C000000 		.4byte	$LEFDE4-$LASFDE4 419              	$LASFDE4: 420 0048 00000000 		.4byte	$Lframe0 421 004c 88010000 		.4byte	$LFB4 422 0050 44000000 		.4byte	$LFE4-$LFB4 423              		.align	2 424              	$LEFDE4: 425              	$LSFDE6: 426 0054 0C000000 		.4byte	$LEFDE6-$LASFDE6 427              	$LASFDE6: 428 0058 00000000 		.4byte	$Lframe0 429 005c CC010000 		.4byte	$LFB5 430 0060 28000000 		.4byte	$LFE5-$LFB5 431              		.align	2 432              	$LEFDE6: 433              	$LSFDE8: 434 0064 18000000 		.4byte	$LEFDE8-$LASFDE8 435              	$LASFDE8: 436 0068 00000000 		.4byte	$Lframe0 437 006c F4010000 		.4byte	$LFB6 438 0070 70000000 		.4byte	$LFE6-$LFB6 439 0074 44       		.byte	0x4 440              		.4byte	$LCFI6-$LFB6 441 0075 0E       		.byte	0xe 442 0076 18       		.uleb128 0x18 443 0077 48       		.byte	0x4 444              		.4byte	$LCFI8-$LCFI6 445 0078 11       		.byte	0x11 446 0079 10       		.uleb128 0x10 447 007a 7E       		.sleb128 -2 448 007b 11       		.byte	0x11 449 007c 1F       		.uleb128 0x1f 450 007d 7F       		.sleb128 -1 451 007e 0000     		.align	2 452              	$LEFDE8: 453              		.align	0 454              		.file 2 "/mnt/hgfs/boot/booter/include/example.h" 455              		.file 3 "/mnt/hgfs/boot/booter/platforms/DB1200/platform.h" 456              		.file 4 "/mnt/hgfs/boot/booter/include/au1x00.h" 457              		.text 458              	$Letext0: 459 0264 00000000 		.section	.debug_info 459      00000000  459      00000000  460 0000 84050000 		.4byte	0x584GAS LISTING /tmp/cc4XVykA.s 			page 19 461 0004 0200     		.2byte	0x2 462 0006 00000000 		.4byte	$Ldebug_abbrev0 463 000a 04       		.byte	0x4 464 000b 01       		.uleb128 0x1 465 000c 00000000 		.4byte	$Ldebug_line0 466 0010 64020000 		.4byte	$Letext0 467 0014 00000000 		.4byte	$Ltext0 468 0018 F8010000 		.4byte	$LASF71 469 001c 01       		.byte	0x1 470 001d 7F000000 		.4byte	$LASF72 471 0021 02       		.uleb128 0x2 472 0022 A9020000 		.4byte	$LASF0 473 0026 01       		.byte	0x1 474 0027 06       		.byte	0x6 475 0028 02       		.uleb128 0x2 476 0029 0F020000 		.4byte	$LASF1 477 002d 02       		.byte	0x2 478 002e 05       		.byte	0x5 479 002f 03       		.uleb128 0x3 480 0030 696E7400 		.ascii	"int\000" 481 0034 04       		.byte	0x4 482 0035 05       		.byte	0x5 483 0036 02       		.uleb128 0x2 484 0037 80020000 		.4byte	$LASF2 485 003b 01       		.byte	0x1 486 003c 08       		.byte	0x8 487 003d 02       		.uleb128 0x2 488 003e B5020000 		.4byte	$LASF3 489 0042 02       		.byte	0x2 490 0043 07       		.byte	0x7 491 0044 04       		.uleb128 0x4 492 0045 CC010000 		.4byte	$LASF73 493 0049 02       		.byte	0x2 494 004a 37       		.byte	0x37 495 004b 4F000000 		.4byte	0x4f 496 004f 02       		.uleb128 0x2 497 0050 0E000000 		.4byte	$LASF4 498 0054 04       		.byte	0x4 499 0055 07       		.byte	0x7 500 0056 02       		.uleb128 0x2 501 0057 C4000000 		.4byte	$LASF5 502 005b 08       		.byte	0x8 503 005c 07       		.byte	0x7 504 005d 02       		.uleb128 0x2 505 005e 0E000000 		.4byte	$LASF4 506 0062 04       		.byte	0x4 507 0063 07       		.byte	0x7 508 0064 05       		.uleb128 0x5 509 0065 AF020000 		.4byte	0x2af 510 0069 1401     		.2byte	0x114 511 006b 04       		.byte	0x4 512 006c 2806     		.2byte	0x628 513 006e 06       		.uleb128 0x6 514 006f 17010000 		.4byte	$LASF6 515 0073 04       		.byte	0x4 516 0074 FE05     		.2byte	0x5fe 517 0076 44000000 		.4byte	0x44GAS LISTING /tmp/cc4XVykA.s 			page 20 518 007a 02       		.byte	0x2 519 007b 10       		.byte	0x10 520 007c 00       		.uleb128 0x0 521 007d 06       		.uleb128 0x6 522 007e 46010000 		.4byte	$LASF7

⌨️ 快捷键说明

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