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

📄 makelo.c

📁 ARM入门的好帮手.包含了从简单到相对较复杂的程序.
💻 C
📖 第 1 页 / 共 2 页
字号:
    fprintf(outfile, "Angel_RegBlock_CPSRoffset\tEQU\t0x%08X\n", &(rbp->cpsr));    fprintf(outfile, "Angel_RegBlock_SPSRoffset\tEQU\t0x%08X\n", &(rbp->spsr));    fprintf(outfile, "Angel_RegBlockSize\t\tEQU\t0x%08X\n",            sizeof(angel_RegBlock));  }  fprintf(outfile, "TP_AngelInit\t\t\tEQU\t0x%08X\n", (int)TP_AngelInit);  fprintf(outfile, "TP_Application\t\t\tEQU\t0x%08X\n", (int)TP_Application);  fprintf(outfile, "TP_ApplCallBack\t\t\tEQU\t0x%08X\n", (int)TP_ApplCallBack);  fprintf(outfile, "TP_AngelCallBack\t\tEQU\t0x%08X\n", (int)TP_AngelCallBack);  fprintf(outfile, "TP_AngelWantLock\t\tEQU\t0x%08X\n", (int)TP_AngelWantLock);  fprintf(outfile, "arm_padding\t\t\tEQU\t0x%08X\n", arm_padding);  fprintf(outfile, "\nMMUCP\t\t\tCP\t%d\n", MMUCP);  fprintf(outfile, "MMUIDReg\t\tCN\t%d\n", MMUIDReg);  fprintf(outfile, "MMUControlReg\t\tCN\t%d\n", MMUControlReg);  fprintf(outfile, "MMUPageTableBaseReg\tCN\t%d\n", MMUPageTableBaseReg);  fprintf(outfile, "MMUDomainAccessReg\tCN\t%d\n", MMUDomainAccessReg);  fprintf(outfile, "MMUFlushTLBReg\t\tCN\t%d\n", MMUFlushTLBReg);  fprintf(outfile, "MMUPurgeTLBReg\t\tCN\t%d\n", MMUPurgeTLBReg);  fprintf(outfile, "MMUFlushIDCReg\t\tCN\t%d\n", MMUFlushIDCReg);  fprintf(outfile, "\nMMUOn\t\t\tEQU\t0x%08X\n", MMUOn);  fprintf(outfile, "AlignFaultOn\t\tEQU\t0x%08X\n", AlignFaultOn);  fprintf(outfile, "CacheOn\t\t\tEQU\t0x%08X\n", CacheOn);  fprintf(outfile, "WriteBufferOn\t\tEQU\t0x%08X\n", WriteBufferOn);  fprintf(outfile, "Config32\t\tEQU\t0x%08X\n", Config32);  fprintf(outfile, "ConfigBE\t\tEQU\t0x%08X\n", ConfigBE);  fprintf(outfile, "DefaultMMUConfig\tEQU\t0x%08X\n", DefaultMMUConfig);  fprintf(outfile, "\n\t; ARM identification manifests:\n");  fprintf(outfile, "ID_unknown\t\tEQU\t0x%08X\n", ID_unknown);  fprintf(outfile, "ID_ARM1\t\t\tEQU\t0x%08X\n", ID_ARM1);  fprintf(outfile, "ID_ARM2\t\t\tEQU\t0x%08X\n", ID_ARM2);  fprintf(outfile, "ID_ARM3\t\t\tEQU\t0x%08X\n", ID_ARM3);  fprintf(outfile, "ID_ARM6\t\t\tEQU\t0x%08X\n", ID_ARM6);  fprintf(outfile, "ID_TYPE_MASK\t\tEQU\t0x%08X\n", ID_TYPE_MASK);  fprintf(outfile, "ID_LE\t\t\tEQU\t0x%08X\n", ID_LE);  fprintf(outfile, "ID_BE\t\t\tEQU\t0x%08X\n", ID_BE);  fprintf(outfile, "ID_MUL\t\t\tEQU\t0x%08X\n", ID_MUL);  fprintf(outfile, "ID_SWP\t\t\tEQU\t0x%08X\n", ID_SWP);  fprintf(outfile, "ID_CACHE\t\tEQU\t0x%08X\n", ID_CACHE);  fprintf(outfile, "ID_MMU\t\t\tEQU\t0x%08X\n", ID_MMU);  fprintf(outfile, "ID_ENDIAN\t\tEQU\t0x%08X\n", ID_ENDIAN);  fprintf(outfile, "ID_CACHE_ON\t\tEQU\t0x%08X\n", ID_CACHE_ON);  fprintf(outfile, "ID_WB_ON\t\tEQU\t0x%08X\n", ID_WB_ON);  fprintf(outfile, "ID_HWCONFIG_MASK\tEQU\t0x%08X\n", ID_HWCONFIG_MASK);  /* Angel memory information: */  fprintf(outfile, "\n\t; Angel memory information:\n");  fprintf(outfile, "APCS_STACKGUARD\t\t\tEQU\t0x%08X\n", APCS_STACKGUARD);  /* ADP definitions needed by the assembler code: */  fprintf(outfile, "\n\t; ADP_Stopped reason codes:\n");  fprintf(outfile, "ADP_Stopped_BranchThroughZero\t\tEQU\t%d\n",          ADP_Stopped_BranchThroughZero);  fprintf(outfile, "ADP_Stopped_UndefinedInstr\t\tEQU\t%d\n",          ADP_Stopped_UndefinedInstr);  fprintf(outfile, "ADP_Stopped_SoftwareInterrupt\t\tEQU\t%d\n",          ADP_Stopped_SoftwareInterrupt);  fprintf(outfile, "ADP_Stopped_PrefetchAbort\t\tEQU\t%d\n",          ADP_Stopped_PrefetchAbort);  fprintf(outfile, "ADP_Stopped_DataAbort\t\t\tEQU\t%d\n",          ADP_Stopped_DataAbort);  fprintf(outfile, "ADP_Stopped_AddressException\t\tEQU\t%d\n",          ADP_Stopped_AddressException);  fprintf(outfile, "ADP_Stopped_IRQ\t\t\t\tEQU\t%d\n", ADP_Stopped_IRQ);  fprintf(outfile, "ADP_Stopped_FIQ\t\t\t\tEQU\t%d\n", ADP_Stopped_FIQ);  fprintf(outfile, "ADP_Stopped_BreakPoint\t\t\tEQU\t%d\n",          ADP_Stopped_BreakPoint);  fprintf(outfile, "ADP_Stopped_RunTimeErrorUnknown\t\tEQU\t%d\n",          ADP_Stopped_RunTimeErrorUnknown);  fprintf(outfile, "ADP_Stopped_InternalError\t\tEQU\t%d\n",          ADP_Stopped_InternalError);  fprintf(outfile, "ADP_Stopped_UserInterruption\t\tEQU\t%d\n",          ADP_Stopped_UserInterruption);  fprintf(outfile, "ADP_Stopped_ApplicationExit\t\tEQU\t%d\n",          ADP_Stopped_ApplicationExit);  fprintf(outfile, "ADP_Stopped_StackOverflow\t\tEQU\t%d\n",          ADP_Stopped_StackOverflow);  fprintf(outfile, "ADP_Stopped_DivisionByZero\t\tEQU\t%d\n",          ADP_Stopped_DivisionByZero);  /* Misc ADP things: */  fprintf(outfile, "\n\t; Misc ADP things:\n");  fprintf(outfile, "ADP_HandleUnknown\t\tEQU\t0x%08X\n", ADP_HandleUnknown);  fprintf(outfile, "ADP_CPUmode_Current\t\tEQU\t0x%08X\n",          ADP_CPUmode_Current);  fprintf(outfile, "ADP_CPUread_PCmode\t\tEQU\t0x%08X\n", ADP_CPUread_PCmode);  fprintf(outfile, "ADP_CPUread_CPSR\t\tEQU\t0x%08X\n", ADP_CPUread_CPSR);  fprintf(outfile, "ADP_CPUread_32bitIRQ\t\tEQU\t0x%08X\n",          ADP_CPUread_32bitIRQ);  fprintf(outfile, "ADP_CPUread_32bitUndef\t\tEQU\t0x%08X\n",          ADP_CPUread_32bitUndef);  fprintf(outfile, "ADP_CPUread_32bitSVC\t\tEQU\t0x%08X\n",          ADP_CPUread_32bitSVC);  fprintf(outfile, "ADP_CPU_LE\t\t\tEQU\t0x%08X\n", ADP_CPU_LE);  fprintf(outfile, "ADP_CPU_BE\t\t\tEQU\t0x%08X\n", ADP_CPU_BE);  fprintf(outfile, "ADP_CPU_BigEndian\t\tEQU\t0x%08X\n", ADP_CPU_BigEndian);  /* Target specific definitions: */  fprintf(outfile, "\n\t; Target specific definitions for PIE:\n");  fprintf(outfile, "ROMBase\t\t\tEQU\t0x%08X\n", ROMBase);#ifdef Angel_ApplHeap  fprintf(outfile, "Angel_ApplHeap\t\tEQU\t0x%08X\n", Angel_ApplHeap);#endif#ifdef Angel_ApplHeapLimit  fprintf(outfile, "Angel_ApplHeapLimit\tEQU\t0x%08X\n",          Angel_ApplHeapLimit);#endif  fprintf(outfile, "Angel_DefaultTopOfMemory\t\tEQU\t0x%08X\n",          Angel_DefaultTopOfMemory);  fprintf(outfile, "Angel_ApplStackOffset\t\tEQU\t0x%08X\n", Angel_ApplStackOffset);  fprintf(outfile, "Angel_ApplStackLimitOffset\tEQU\t0x%08X\n",          Angel_ApplStackLimitOffset);  fprintf(outfile, "Angel_SVCStackOffset\t\tEQU\t0x%08X\n",          Angel_SVCStackOffset);  fprintf(outfile, "Angel_SVCStackLimitOffset\t\tEQU\t0x%08X\n",          Angel_SVCStackLimitOffset);  fprintf(outfile, "Angel_IRQStackOffset\t\tEQU\t0x%08X\n",          Angel_IRQStackOffset);  fprintf(outfile, "Angel_IRQStackLimitOffset\t\tEQU\t0x%08X\n",          Angel_IRQStackLimitOffset);  fprintf(outfile, "Angel_FIQStackOffset\t\tEQU\t0x%08X\n",          Angel_FIQStackOffset);  fprintf(outfile, "Angel_FIQStackLimitOffset\t\tEQU\t0x%08X\n",          Angel_FIQStackLimitOffset);  fprintf(outfile, "Angel_UNDStackOffset\t\tEQU\t0x%08X\n",          Angel_UNDStackOffset);  fprintf(outfile, "Angel_UNDStackLimitOffset\t\tEQU\t0x%08X\n",          Angel_UNDStackLimitOffset);  fprintf(outfile, "Angel_AngelStackOffset\t\tEQU\t0x%08X\n",          Angel_AngelStackOffset);  fprintf(outfile, "Angel_AngelStackLimitOffset\t\tEQU\t0x%08X\n",          Angel_AngelStackLimitOffset);  fprintf(outfile, "Angel_SVCStackSize\t\tEQU\t0x%08X\n",          Angel_SVCStackSize);  /* Device driver variables, set at compile time */  fprintf(outfile, "\n\t; Definitions for device drivers.\n");  fprintf(outfile, "ETHERNET_SUPPORTED\tEQU\t%d\n", ETHERNET_SUPPORTED);  fprintf(outfile, "CACHE_SUPPORTED\tEQU\t%d\n", CACHE_SUPPORTED);  fprintf(outfile, "PARALLEL_SUPPORTED\tEQU\t%d\n\n", PARALLEL_SUPPORTED);  fprintf(outfile, "PROFILE_SUPPORTED\tEQU\t%d\n\n", PROFILE_SUPPORTED);  fprintf(outfile, "IH_SERIAL\tEQU\t%d\n", IH_SERIAL);#if PARALLEL_SUPPORTED  fprintf(outfile, "IH_PARALLEL\tEQU\t%d\n", IH_PARALLEL);#endif#if PROFILE_SUPPORTED  fprintf(outfile, "IH_TIMER\tEQU\t%d\n", IH_TIMER);#endif  fprintf(outfile, "DE_NUM_INT_HANDLERS\tEQU\t%d\n", DE_NUM_INT_HANDLERS);  fprintf(outfile, "DC_SET_LED\tEQU\t%d\n", DC_SET_LED);  fprintf(outfile, "DI_LED_DEVICE\tEQU\t%d\n", DI_LED_DEVICE);  fprintf(outfile, "HANDLE_INTERRUPTS_ON_IRQ\tEQU\t%d\n", HANDLE_INTERRUPTS_ON_IRQ);  fprintf(outfile, "HANDLE_INTERRUPTS_ON_FIQ\tEQU\t%d\n", HANDLE_INTERRUPTS_ON_FIQ);  fprintf(outfile, "\n\t; Definitions for SYS library handler functions.\n");  fprintf(outfile, "SYS_OPEN\t\tEQU\t%d\n", SYS_OPEN);  fprintf(outfile, "SYS_CLOSE\t\tEQU\t%d\n", SYS_CLOSE);  fprintf(outfile, "SYS_WRITE0\t\tEQU\t%d\n", SYS_WRITE0);  fprintf(outfile, "SYS_WRITEC\t\tEQU\t%d\n", SYS_WRITEC);  fprintf(outfile, "SYS_WRITE\t\tEQU\t%d\n", SYS_WRITE);  fprintf(outfile, "SYS_READ\t\tEQU\t%d\n", SYS_READ);  fprintf(outfile, "SYS_ISERROR\t\tEQU\t%d\n", SYS_ISERROR);  fprintf(outfile, "SYS_ISTTY\t\tEQU\t%d\n", SYS_ISTTY);  fprintf(outfile, "SYS_SEEK\t\tEQU\t%d\n", SYS_SEEK);  fprintf(outfile, "SYS_ENSURE\t\tEQU\t%d\n", SYS_ENSURE);  fprintf(outfile, "SYS_FLEN\t\tEQU\t%d\n", SYS_FLEN);  fprintf(outfile, "SYS_TMPNAM\t\tEQU\t%d\n", SYS_TMPNAM);  fprintf(outfile, "SYS_REMOVE\t\tEQU\t%d\n", SYS_REMOVE);  fprintf(outfile, "SYS_RENAME\t\tEQU\t%d\n", SYS_RENAME);  fprintf(outfile, "SYS_CLOCK\t\tEQU\t%d\n", SYS_CLOCK);  fprintf(outfile, "SYS_TIME\t\tEQU\t%d\n", SYS_TIME);  fprintf(outfile, "SYS_SYSTEM\t\tEQU\t%d\n", SYS_SYSTEM);  fprintf(outfile, "SYS_ERRNO\t\tEQU\t%d\n", SYS_ERRNO);  fprintf(outfile, "SYS_GET_CMDLINE\t\tEQU\t%d\n", SYS_GET_CMDLINE);  fprintf(outfile, "SYS_HEAPINFO\t\tEQU\t%d\n", SYS_HEAPINFO);  fprintf(outfile, "\n\t; Definitions for AT91 board Specifically.\n");  fprintf(outfile, "BOOTROMREG\t\tEQU\t%d\n",BOOTROMREG );  fprintf(outfile, "FLASHREG\t\tEQU\t%d\n",FLASHREG );  fprintf(outfile, "CSR2DEF\t\tEQU\t%d\n",CSR2DEF );  fprintf(outfile, "CSR3DEF\t\tEQU\t%d\n",CSR3DEF );  fprintf(outfile, "MAP_SSRAM\t\tEQU\t%d\n", MAP_SSRAM );  fprintf(outfile, "MEM_RCR\t\tEQU\t%d\n",MEM_RCR );  fprintf(outfile, "AT91_MEM\t\tEQU\t%d\n",AT91_MEM );  fprintf(outfile, "INT_IDCR\t\tEQU\t%d\n",INT_IDCR );  fprintf(outfile, "INT_ICCR\t\tEQU\t%d\n",INT_ICCR );  fprintf(outfile, "INT_ALL_SRC\t\tEQU\t%d\n",INT_ALL_SRC );  fprintf(outfile, "INT_SVR0\t\tEQU\t%d\n", INT_SVR0);  fprintf(outfile, "INT_SMR2\t\tEQU\t%d\n",INT_SMR2 );  fprintf(outfile, "US_INT_SETUP\t\tEQU\t%d\n",US_INT_SETUP );  fprintf(outfile, "INT_SVR2\t\tEQU\t%d\n", INT_SVR2);  fprintf(outfile, "INT_ISR\t\tEQU\t%d\n",INT_ISR );  fprintf(outfile, "INT_IPR\t\tEQU\t%d\n",INT_IPR );  fprintf(outfile, "INT_EICR\t\tEQU\t%d\n",INT_EICR );  fprintf(outfile, "UART0READYBIT\t\tEQU\t%d\n", UART0READYBIT);  fprintf(outfile, "UART0ID\t\tEQU\t%d\n", UART0ID);  fprintf(outfile, "LED1\t\tEQU\t%d\n",LED1 );  fprintf(outfile, "LED2\t\tEQU\t%d\n",LED2 );    /* Terminate the file cleanly */  fprintf(outfile, "\n\tOPT\t(old_opt)\n");  fprintf(outfile, "\tEND\t; EOF lolevel_s\n");  return(0);}/* EOF makelo.c */

⌨️ 快捷键说明

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