
Dear xiangfu_gmail,
In message 4A101E59.8050505@gmail.com you wrote:
I have try to add new device(PI) to u-boot. when I compile the code I get error message:
...
-c -o bedbug.o bedbug.c bedbug.c: In function 'find_next_address': bedbug.c:1081: error: 'struct pt_regs' has no member named 'nip' bedbug.c:1089: error: 'struct pt_regs' has no member named 'ctr' bedbug.c:1090: error: 'struct pt_regs' has no member named 'ccr' bedbug.c:1091: error: 'struct pt_regs' has no member named 'link'
...
give me some advice
Well, obviously you have a problem with the dfitions for your CPU in some of the header files. As I don't know your code (and I don't review any out-of-tree repositories) I can just say that you should fix your header files. As a quick and dirty workaound you could also disable KGDB support in your board configuration unless you really need it.
Best regards,
Wolfgang Denk