Address error

Leon Pollak leonp at plris.com
Wed Sep 3 08:06:45 UTC 2003


Hello,
	I see that my first mail was formulated unclear. 
	Here is the next attempt :-))

	I have RH9 running the last tools and snapshot, my own BSP derived form 
mbx860 via bdm.
	The printk function tries to call my BSP_output_char via vprintk. The map 
shows that BSP_output_char resides at 0x34330.

	Below is the assembler of the call:

    0x17a14 <vprintk+1056>:	lis	r11,3	                    R11=0x30000
    0x17a18 <vprintk+1060>:	lwz	r9,8(r31)
    0x17a1c <vprintk+1064>:	lbz	r0,0(r9)
    0x17a20 <vprintk+1068>:	clrlwi	r0,r0,24
    0x17a24 <vprintk+1072>:	lwz	r11,17200(r11)       R11=0x9421ffe0 ?????
    0x17a28 <vprintk+1076>:	mtctr	r11
    0x17a2c <vprintk+1080>:	mr	r3,r0
    0x17a30 <vprintk+1084>:	bctrl
  
	The address which is put into CTRL register is 0x9421ffe0. It is the content 
of 0x34330 (assembler commands of BSP_output_char ). 
	The question is why the code tries to call THIS function indirectly, while 
the calling address is direct?


Any help will be VERY highly appreciated...

-- 
leonp at plris dot com





More information about the users mailing list