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

📄 nor-irqvec.patch

📁 Uboot常用的移植patches, 方便定制移植到s3c2440
💻 PATCH
字号:
Index: u-boot/board/neo1973/gta02/gta02.c===================================================================--- u-boot.orig/board/neo1973/gta02/gta02.c+++ u-boot/board/neo1973/gta02/gta02.c@@ -63,6 +63,8 @@ DECLARE_GLOBAL_DATA_PTR; #endif  unsigned int neo1973_wakeup_cause;+extern unsigned char booted_from_nand;+extern unsigned char booted_from_nor; extern int nobootdelay;  static inline void delay (unsigned long loops)@@ -211,14 +213,23 @@ int board_init(void) 	icache_enable(); 	dcache_enable(); +	/*+	 * Since the NOR is replaced by SteppingStone when the AUX button is+	 * released, we have to wait for this and copy our exception vectors+	 * before we can let u-boot enable interrupts.+	 */+	if (booted_from_nor) {+		extern char _start;++		while (neo1973_aux_key_pressed());+		memcpy((void *) 0, &_start, 0x40);+	}+ 	return 0; }  int board_late_init(void) {-	extern unsigned char booted_from_nand;-	extern unsigned char booted_from_nor;- 	S3C24X0_GPIO * const gpio = S3C24X0_GetBase_GPIO(); 	unsigned char tmp; 	char buf[32];

⌨️ 快捷键说明

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