Basic System Problem Analysis - August 2003

46
page 173/17/2003
Basic System Problem Analysis
Procedure Calling Convention: Registers
len = FREAD ( MPE_fd, &buf, -32767 );
R0 =00000000 40100480 013dc097 41845630 R4 =d66e8018 d66ea018 00000000 00000000
R8 =00000000 00000000 00000000 00000000 R12=00000000 00000000 00000000 00000000
R16=00000000 00000000 00000000 00000000 R20=0000000a 013dc08c c01075a0 000002d6
R24=41845abc d44b1400 0000000a c0202008 R28=00000020 00000000 4184db30 0000008b
$5 ($2c5) nmdebug > dv sp-60,10
VIRT $2d6.4184dad0 $ 00000000 4184568c 0000004d 4184567c
VIRT $2d6.4184dae0 $ 00000029 00000000 00000000 00000000
VIRT $2d6.4184daf0 $ 00000000 00000000 00000000 ffff8001 <- sp-34
VIRT $2d6.4184db00 $ 40bbee00 00000000 d44b1400 4164671c
File number is $a or 10. The ‘buffer’ parameter to FREAD is a lo ng pointer. As a
result it must be aligned in registers and R23 and R24 will cont ain the value
2d6.41845abc and R25 is skipped. We only use R26..R23 so the “le ngth”
parameter is saved in the stack at SP-$34.
Notes: