nor-irqvec.patch
来自「Uboot常用的移植patches, 方便定制移植到s3c2440」· PATCH 代码 · 共 41 行
PATCH
41 行
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 + =
减小字号Ctrl + -
显示快捷键?