Cisco CISCO876-SEC-I-K9 Configuration Guide - Page 185

stack, context, frame, sysret, meminfo

Page 185 highlights

Appendix C ROM Monitor Debug Commands The following are ROM monitor debugging commands: • stack or k-Produces a stack trace; for example: rommon 6> stack Stack trace: PC = 0x801111b0 Frame 00: FP = 0x80005ea8 Frame 01: FP = 0x80005eb4 Frame 02: FP = 0x80005f74 Frame 03: FP = 0x80005f9c Frame 04: FP = 0x80005fac Frame 05: FP = 0x80005fc4 PC = 0x801111b0 PC = 0x80113694 PC = 0x8010eb44 PC = 0x80008118 PC = 0x80008064 PC = 0xfff03d70 • context-Displays processor context; for example: rommon 7> context CPU context of the most recent exception: PC = 0x801111b0 MSR = 0x00009032 CR = 0x53000035 CTR = 0x801065e4 XER = 0xa0006d36 DAR = 0xffffffff DEC = 0xffffffff TBU = 0xffffffff TBL = 0xffffffff R0 = 0x00000000 R1 = 0x80005ea8 R2 = 0xffffffff R4 = 0x8fab0d76 R5 = 0x80657d00 R6 = 0x80570000 R8 = 0x00000000 R9 = 0x80570000 R10 = 0x0000954c R12 = 0x00000080 R13 = 0xffffffff R14 = 0xffffffff R16 = 0xffffffff R17 = 0xffffffff R18 = 0xffffffff R20 = 0xffffffff R21 = 0xffffffff R22 = 0xffffffff R24 = 0xffffffff R25 = 0xffffffff R26 = 0xffffffff R28 = 0xffffffff R29 = 0xffffffff R30 = 0xffffffff LR = 0x80113694 DSISR = 0xffffffff IMMR = 0xffffffff R3 = 0x00000000 R7 = 0x80570000 R11 = 0x00000000 R15 = 0xffffffff R19 = 0xffffffff R23 = 0xffffffff R27 = 0xffffffff R31 = 0xffffffff • frame-Displays an individual stack frame. • sysret-Displays return information from the last booted system image. This information includes the reason for terminating the image, a stack dump of up to eight frames, and, if an exception is involved, the address where the exception occurred; for example: rommon 8> sysret System Return Info: count: 19, reason: user break pc:0x801111b0, error address: 0x801111b0 Stack Trace: FP: 0x80005ea8, PC: 0x801111b0 FP: 0x80005eb4, PC: 0x80113694 FP: 0x80005f74, PC: 0x8010eb44 FP: 0x80005f9c, PC: 0x80008118 FP: 0x80005fac, PC: 0x80008064 FP: 0x80005fc4, PC: 0xfff03d70 FP: 0x80005ffc, PC: 0x00000000 FP: 0x00000000, PC: 0x00000000 • meminfo-Displays size in bytes, starting address, available range of main memory, the starting point and size of packet memory, and size of NVRAM; for example: rommon 9> meminfo Main memory size: 40 MB. Available main memory starts at 0x10000, size 40896KB IO (packet) memory size: 5 percent of main memory. NVRAM size: 32KB OL-5332-01 Cisco 850 Series and Cisco 870 Series Access Routers Software Configuration Guide C-9

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196

C-9
Cisco 850 Series and Cisco 870 Series Access Routers Software Configuration Guide
OL-5332-01
Appendix C
ROM Monitor
Debug Commands
The following are ROM monitor debugging commands:
stack
or
k
—Produces a stack trace; for example:
rommon 6>
stack
Stack trace:
PC = 0x801111b0
Frame 00: FP = 0x80005ea8
PC = 0x801111b0
Frame 01: FP = 0x80005eb4
PC = 0x80113694
Frame 02: FP = 0x80005f74
PC = 0x8010eb44
Frame 03: FP = 0x80005f9c
PC = 0x80008118
Frame 04: FP = 0x80005fac
PC = 0x80008064
Frame 05: FP = 0x80005fc4
PC = 0xfff03d70
context
—Displays processor context; for example:
rommon 7>
context
CPU context of the most recent exception:
PC
= 0x801111b0
MSR = 0x00009032
CR
= 0x53000035
LR
= 0x80113694
CTR = 0x801065e4
XER = 0xa0006d36
DAR = 0xffffffff
DSISR = 0xffffffff
DEC = 0xffffffff
TBU = 0xffffffff
TBL = 0xffffffff
IMMR
= 0xffffffff
R0
= 0x00000000
R1
= 0x80005ea8
R2
= 0xffffffff
R3
= 0x00000000
R4
= 0x8fab0d76
R5
= 0x80657d00
R6
= 0x80570000
R7
= 0x80570000
R8
= 0x00000000
R9
= 0x80570000
R10 = 0x0000954c
R11
= 0x00000000
R12 = 0x00000080
R13 = 0xffffffff
R14 = 0xffffffff
R15
= 0xffffffff
R16 = 0xffffffff
R17 = 0xffffffff
R18 = 0xffffffff
R19
= 0xffffffff
R20 = 0xffffffff
R21 = 0xffffffff
R22 = 0xffffffff
R23
= 0xffffffff
R24 = 0xffffffff
R25 = 0xffffffff
R26 = 0xffffffff
R27
= 0xffffffff
R28 = 0xffffffff
R29 = 0xffffffff
R30 = 0xffffffff
R31
= 0xffffffff
frame
—Displays an individual stack frame.
sysret
—Displays return information from the last booted system image. This information includes
the reason for terminating the image, a stack dump of up to eight frames, and, if an exception is
involved, the address where the exception occurred; for example:
rommon 8>
sysret
System Return Info:
count: 19,
reason: user break
pc:0x801111b0,
error address: 0x801111b0
Stack Trace:
FP: 0x80005ea8, PC: 0x801111b0
FP: 0x80005eb4, PC: 0x80113694
FP: 0x80005f74, PC: 0x8010eb44
FP: 0x80005f9c, PC: 0x80008118
FP: 0x80005fac, PC: 0x80008064
FP: 0x80005fc4, PC: 0xfff03d70
FP: 0x80005ffc, PC: 0x00000000
FP: 0x00000000, PC: 0x00000000
meminfo
—Displays size in bytes, starting address, available range of main memory, the starting
point and size of packet memory, and size of NVRAM; for example:
rommon 9>
meminfo
Main memory size: 40 MB.
Available main memory starts at 0x10000, size 40896KB
IO (packet) memory size: 5 percent of main memory.
NVRAM size: 32KB