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

📄 kport

📁 MIPS处理器的bootloader,龙芯就是用的修改过的PMON2
💻
字号:
	Porting the SerialICE Kernel	Porting the SerialICE KernelIn most cases it will be sufficient to simply change the interruptnumber, and possibly the base address of the SIO. The following codefragment, which was taken from the SerialICE Kernel for the BDMR4101 showswhere the SIO base address and interrupt input are defined.	#define UART_BASE 	0xbfff0200	#define UART_RXS	0x0	/* rx status */	#define UART_RXC	0x0	/* rx control */	#define UART_RXHR	0x4	/* rx holding reg */	#define UART_TXS	0x8	/* tx status */	#define UART_TXHR	0xc	/* tx holding reg */	#define UART_INTBIT	SR_INT2The SIO on this board is connected to INT2, where the following numberingis used.SR bit numberSR bit nameAlternate SR bit nameCAUSE bit nameDescription8SR_IBIT1-CAUSE_SW1Software int19SR_IBIT2-CAUSE_SW2Software int210SR_IBIT3SR_INT0CAUSE_IP3Hardware int011SR_IBIT4SR_INT1CAUSE_IP4Hardware int112SR_IBIT5SR_INT2CAUSE_IP5Hardware int213SR_IBIT6SR_INT3CAUSE_IP6Hardware int314SR_IBIT7SR_INT4CAUSE_IP7Hardware int415SR_IBIT8SR_INT5CAUSE_IP8Hardware int5Note that it is recommended that you do not use the non-maskableinterrupt input (even if you have one), because although this will make it possible for the SerialICE Kernel to always get control from theapplication. It will also make it possible for it to get control at unsafetimes, and therefore not be able to resume the application later.

⌨️ 快捷键说明

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