1 | @c |
---|
2 | @c COPYRIGHT (c) 1988-2008. |
---|
3 | @c On-Line Applications Research Corporation (OAR). |
---|
4 | @c All rights reserved. |
---|
5 | @c |
---|
6 | @c $Id$ |
---|
7 | @c |
---|
8 | |
---|
9 | @chapter Memory Commands |
---|
10 | |
---|
11 | @section Introduction |
---|
12 | |
---|
13 | The RTEMS shell has the following memory commands: |
---|
14 | |
---|
15 | @itemize @bullet |
---|
16 | |
---|
17 | @item @code{mdump} - Display contents of memory |
---|
18 | @item @code{wdump} - Display contents of memory (word) |
---|
19 | @item @code{medit} - Modify contents of memory |
---|
20 | @item @code{mfill} - File memory with pattern |
---|
21 | @item @code{mmove} - Move contents of memory |
---|
22 | @item @code{malloc} - Obtain information on C Program Heap |
---|
23 | |
---|
24 | @end itemize |
---|
25 | |
---|
26 | @section Commands |
---|
27 | |
---|
28 | @c |
---|
29 | @c |
---|
30 | @c |
---|
31 | @page |
---|
32 | @subsection mdump - display contents of memory |
---|
33 | |
---|
34 | @pgindex mdump |
---|
35 | |
---|
36 | @subheading SYNOPSYS: |
---|
37 | |
---|
38 | @example |
---|
39 | mdump [addr [size]] |
---|
40 | @end example |
---|
41 | |
---|
42 | @subheading DESCRIPTION: |
---|
43 | |
---|
44 | This command XXX |
---|
45 | |
---|
46 | @subheading EXIT STATUS: |
---|
47 | |
---|
48 | This command returns 0 on success and non-zero if an error is encountered. |
---|
49 | |
---|
50 | @subheading NOTES: |
---|
51 | |
---|
52 | NONE |
---|
53 | |
---|
54 | @subheading EXAMPLES: |
---|
55 | |
---|
56 | The following is an example of how to use @code{mdump}: |
---|
57 | |
---|
58 | @example |
---|
59 | EXAMPLE_TBD |
---|
60 | @end example |
---|
61 | |
---|
62 | @subheading CONFIGURATION: |
---|
63 | |
---|
64 | @findex CONFIGURE_SHELL_NO_COMMAND_MDUMP |
---|
65 | @findex CONFIGURE_SHELL_COMMAND_MDUMP |
---|
66 | |
---|
67 | This command is included in the default shell command set. |
---|
68 | When building a custom command set, define |
---|
69 | @code{CONFIGURE_SHELL_COMMAND_MDUMP} to have this |
---|
70 | command included. |
---|
71 | |
---|
72 | This command can be excluded from the shell command set by |
---|
73 | defining @code{CONFIGURE_SHELL_NO_COMMAND_MDUMP} when all |
---|
74 | shell commands have been configured. |
---|
75 | |
---|
76 | @subheading PROGRAMMING INFORMATION: |
---|
77 | |
---|
78 | @findex rtems_shell_rtems_main_mdump |
---|
79 | |
---|
80 | The @code{mdump} is implemented by a C language function |
---|
81 | which has the following prototype: |
---|
82 | |
---|
83 | @example |
---|
84 | int rtems_shell_rtems_main_mdump( |
---|
85 | int argc, |
---|
86 | char **argv |
---|
87 | ); |
---|
88 | @end example |
---|
89 | |
---|
90 | The configuration structure for the @code{mdump} has the |
---|
91 | following prototype: |
---|
92 | |
---|
93 | @example |
---|
94 | extern rtems_shell_cmd_t rtems_shell_MDUMP_Command; |
---|
95 | @end example |
---|
96 | |
---|
97 | @c |
---|
98 | @c |
---|
99 | @c |
---|
100 | @page |
---|
101 | @subsection wdump - display contents of memory (word) |
---|
102 | |
---|
103 | @pgindex wdump |
---|
104 | |
---|
105 | @subheading SYNOPSYS: |
---|
106 | |
---|
107 | @example |
---|
108 | wdump [addr [size]] |
---|
109 | @end example |
---|
110 | |
---|
111 | @subheading DESCRIPTION: |
---|
112 | |
---|
113 | This command XXX |
---|
114 | |
---|
115 | @subheading EXIT STATUS: |
---|
116 | |
---|
117 | This command returns 0 on success and non-zero if an error is encountered. |
---|
118 | |
---|
119 | @subheading NOTES: |
---|
120 | |
---|
121 | NONE |
---|
122 | |
---|
123 | @subheading EXAMPLES: |
---|
124 | |
---|
125 | The following is an example of how to use @code{wdump}: |
---|
126 | |
---|
127 | @example |
---|
128 | EXAMPLE_TBD |
---|
129 | @end example |
---|
130 | |
---|
131 | @subheading CONFIGURATION: |
---|
132 | |
---|
133 | @findex CONFIGURE_SHELL_NO_COMMAND_WDUMP |
---|
134 | @findex CONFIGURE_SHELL_COMMAND_WDUMP |
---|
135 | |
---|
136 | This command is included in the default shell command set. |
---|
137 | When building a custom command set, define |
---|
138 | @code{CONFIGURE_SHELL_COMMAND_WDUMP} to have this |
---|
139 | command included. |
---|
140 | |
---|
141 | This command can be excluded from the shell command set by |
---|
142 | defining @code{CONFIGURE_SHELL_NO_COMMAND_WDUMP} when all |
---|
143 | shell commands have been configured. |
---|
144 | |
---|
145 | @subheading PROGRAMMING INFORMATION: |
---|
146 | |
---|
147 | @findex rtems_shell_rtems_main_wdump |
---|
148 | |
---|
149 | The @code{wdump} is implemented by a C language function |
---|
150 | which has the following prototype: |
---|
151 | |
---|
152 | @example |
---|
153 | int rtems_shell_rtems_main_wdump( |
---|
154 | int argc, |
---|
155 | char **argv |
---|
156 | ); |
---|
157 | @end example |
---|
158 | |
---|
159 | The configuration structure for the @code{wdump} has the |
---|
160 | following prototype: |
---|
161 | |
---|
162 | @example |
---|
163 | extern rtems_shell_cmd_t rtems_shell_WDUMP_Command; |
---|
164 | @end example |
---|
165 | |
---|
166 | @c |
---|
167 | @c |
---|
168 | @c |
---|
169 | @page |
---|
170 | @subsection medit - modify contents of memory |
---|
171 | |
---|
172 | @pgindex medit |
---|
173 | |
---|
174 | @subheading SYNOPSYS: |
---|
175 | |
---|
176 | @example |
---|
177 | medit addr value [value ...] |
---|
178 | @end example |
---|
179 | |
---|
180 | @subheading DESCRIPTION: |
---|
181 | |
---|
182 | This command XXX |
---|
183 | |
---|
184 | @subheading EXIT STATUS: |
---|
185 | |
---|
186 | This command returns 0 on success and non-zero if an error is encountered. |
---|
187 | |
---|
188 | @subheading NOTES: |
---|
189 | |
---|
190 | NONE |
---|
191 | |
---|
192 | @subheading EXAMPLES: |
---|
193 | |
---|
194 | The following is an example of how to use @code{medit}: |
---|
195 | |
---|
196 | @example |
---|
197 | EXAMPLE_TBD |
---|
198 | @end example |
---|
199 | |
---|
200 | @subheading CONFIGURATION: |
---|
201 | |
---|
202 | @findex CONFIGURE_SHELL_NO_COMMAND_MEDIT |
---|
203 | @findex CONFIGURE_SHELL_COMMAND_MEDIT |
---|
204 | |
---|
205 | This command is included in the default shell command set. |
---|
206 | When building a custom command set, define |
---|
207 | @code{CONFIGURE_SHELL_COMMAND_MEDIT} to have this |
---|
208 | command included. |
---|
209 | |
---|
210 | This command can be excluded from the shell command set by |
---|
211 | defining @code{CONFIGURE_SHELL_NO_COMMAND_MEDIT} when all |
---|
212 | shell commands have been configured. |
---|
213 | |
---|
214 | @subheading PROGRAMMING INFORMATION: |
---|
215 | |
---|
216 | @findex rtems_shell_rtems_main_medit |
---|
217 | |
---|
218 | The @code{medit} is implemented by a C language function |
---|
219 | which has the following prototype: |
---|
220 | |
---|
221 | @example |
---|
222 | int rtems_shell_rtems_main_medit( |
---|
223 | int argc, |
---|
224 | char **argv |
---|
225 | ); |
---|
226 | @end example |
---|
227 | |
---|
228 | The configuration structure for the @code{medit} has the |
---|
229 | following prototype: |
---|
230 | |
---|
231 | @example |
---|
232 | extern rtems_shell_cmd_t rtems_shell_MEDIT_Command; |
---|
233 | @end example |
---|
234 | |
---|
235 | @c |
---|
236 | @c |
---|
237 | @c |
---|
238 | @page |
---|
239 | @subsection mfill - file memory with pattern |
---|
240 | |
---|
241 | @pgindex mfill |
---|
242 | |
---|
243 | @subheading SYNOPSYS: |
---|
244 | |
---|
245 | @example |
---|
246 | mfill addr size value |
---|
247 | @end example |
---|
248 | |
---|
249 | @subheading DESCRIPTION: |
---|
250 | |
---|
251 | This command XXX |
---|
252 | |
---|
253 | @subheading EXIT STATUS: |
---|
254 | |
---|
255 | This command returns 0 on success and non-zero if an error is encountered. |
---|
256 | |
---|
257 | @subheading NOTES: |
---|
258 | |
---|
259 | NONE |
---|
260 | |
---|
261 | @subheading EXAMPLES: |
---|
262 | |
---|
263 | The following is an example of how to use @code{mfill}: |
---|
264 | |
---|
265 | @example |
---|
266 | EXAMPLE_TBD |
---|
267 | @end example |
---|
268 | |
---|
269 | @subheading CONFIGURATION: |
---|
270 | |
---|
271 | @findex CONFIGURE_SHELL_NO_COMMAND_MFILL |
---|
272 | @findex CONFIGURE_SHELL_COMMAND_MFILL |
---|
273 | |
---|
274 | This command is included in the default shell command set. |
---|
275 | When building a custom command set, define |
---|
276 | @code{CONFIGURE_SHELL_COMMAND_MFILL} to have this |
---|
277 | command included. |
---|
278 | |
---|
279 | This command can be excluded from the shell command set by |
---|
280 | defining @code{CONFIGURE_SHELL_NO_COMMAND_MFILL} when all |
---|
281 | shell commands have been configured. |
---|
282 | |
---|
283 | @subheading PROGRAMMING INFORMATION: |
---|
284 | |
---|
285 | @findex rtems_shell_rtems_main_mfill |
---|
286 | |
---|
287 | The @code{mfill} is implemented by a C language function |
---|
288 | which has the following prototype: |
---|
289 | |
---|
290 | @example |
---|
291 | int rtems_shell_rtems_main_mfill( |
---|
292 | int argc, |
---|
293 | char **argv |
---|
294 | ); |
---|
295 | @end example |
---|
296 | |
---|
297 | The configuration structure for the @code{mfill} has the |
---|
298 | following prototype: |
---|
299 | |
---|
300 | @example |
---|
301 | extern rtems_shell_cmd_t rtems_shell_MFILL_Command; |
---|
302 | @end example |
---|
303 | |
---|
304 | @c |
---|
305 | @c |
---|
306 | @c |
---|
307 | @page |
---|
308 | @subsection mmove - move contents of memory |
---|
309 | |
---|
310 | @pgindex mmove |
---|
311 | |
---|
312 | @subheading SYNOPSYS: |
---|
313 | |
---|
314 | @example |
---|
315 | mmove dst src size |
---|
316 | @end example |
---|
317 | |
---|
318 | @subheading DESCRIPTION: |
---|
319 | |
---|
320 | This command XXX |
---|
321 | |
---|
322 | @subheading EXIT STATUS: |
---|
323 | |
---|
324 | This command returns 0 on success and non-zero if an error is encountered. |
---|
325 | |
---|
326 | @subheading NOTES: |
---|
327 | |
---|
328 | NONE |
---|
329 | |
---|
330 | @subheading EXAMPLES: |
---|
331 | |
---|
332 | The following is an example of how to use @code{mmove}: |
---|
333 | |
---|
334 | @example |
---|
335 | EXAMPLE_TBD |
---|
336 | @end example |
---|
337 | |
---|
338 | @subheading CONFIGURATION: |
---|
339 | |
---|
340 | @findex CONFIGURE_SHELL_NO_COMMAND_MMOVE |
---|
341 | @findex CONFIGURE_SHELL_COMMAND_MMOVE |
---|
342 | |
---|
343 | This command is included in the default shell command set. |
---|
344 | When building a custom command set, define |
---|
345 | @code{CONFIGURE_SHELL_COMMAND_MMOVE} to have this |
---|
346 | command included. |
---|
347 | |
---|
348 | This command can be excluded from the shell command set by |
---|
349 | defining @code{CONFIGURE_SHELL_NO_COMMAND_MMOVE} when all |
---|
350 | shell commands have been configured. |
---|
351 | |
---|
352 | @subheading PROGRAMMING INFORMATION: |
---|
353 | |
---|
354 | @findex rtems_shell_rtems_main_mmove |
---|
355 | |
---|
356 | The @code{mmove} is implemented by a C language function |
---|
357 | which has the following prototype: |
---|
358 | |
---|
359 | @example |
---|
360 | int rtems_shell_rtems_main_mmove( |
---|
361 | int argc, |
---|
362 | char **argv |
---|
363 | ); |
---|
364 | @end example |
---|
365 | |
---|
366 | The configuration structure for the @code{mmove} has the |
---|
367 | following prototype: |
---|
368 | |
---|
369 | @example |
---|
370 | extern rtems_shell_cmd_t rtems_shell_MMOVE_Command; |
---|
371 | @end example |
---|
372 | |
---|
373 | @c |
---|
374 | @c |
---|
375 | @c |
---|
376 | @page |
---|
377 | @subsection malloc - obtain information on c program heap |
---|
378 | |
---|
379 | @pgindex malloc |
---|
380 | |
---|
381 | @subheading SYNOPSYS: |
---|
382 | |
---|
383 | @example |
---|
384 | malloc [info|stats] |
---|
385 | @end example |
---|
386 | |
---|
387 | @subheading DESCRIPTION: |
---|
388 | |
---|
389 | This command XXX |
---|
390 | |
---|
391 | @subheading EXIT STATUS: |
---|
392 | |
---|
393 | This command returns 0 on success and non-zero if an error is encountered. |
---|
394 | |
---|
395 | @subheading NOTES: |
---|
396 | |
---|
397 | NONE |
---|
398 | |
---|
399 | @subheading EXAMPLES: |
---|
400 | |
---|
401 | The following is an example of how to use @code{malloc}: |
---|
402 | |
---|
403 | @example |
---|
404 | EXAMPLE_TBD |
---|
405 | @end example |
---|
406 | |
---|
407 | @subheading CONFIGURATION: |
---|
408 | |
---|
409 | @findex CONFIGURE_SHELL_NO_COMMAND_MALLOC |
---|
410 | @findex CONFIGURE_SHELL_COMMAND_MALLOC |
---|
411 | |
---|
412 | This command is included in the default shell command set. |
---|
413 | When building a custom command set, define |
---|
414 | @code{CONFIGURE_SHELL_COMMAND_MALLOC} to have this |
---|
415 | command included. |
---|
416 | |
---|
417 | This command can be excluded from the shell command set by |
---|
418 | defining @code{CONFIGURE_SHELL_NO_COMMAND_MALLOC} when all |
---|
419 | shell commands have been configured. |
---|
420 | |
---|
421 | @subheading PROGRAMMING INFORMATION: |
---|
422 | |
---|
423 | @findex rtems_shell_rtems_main_malloc |
---|
424 | |
---|
425 | The @code{malloc} is implemented by a C language function |
---|
426 | which has the following prototype: |
---|
427 | |
---|
428 | @example |
---|
429 | int rtems_shell_rtems_main_malloc( |
---|
430 | int argc, |
---|
431 | char **argv |
---|
432 | ); |
---|
433 | @end example |
---|
434 | |
---|
435 | The configuration structure for the @code{malloc} has the |
---|
436 | following prototype: |
---|
437 | |
---|
438 | @example |
---|
439 | extern rtems_shell_cmd_t rtems_shell_MALLOC_Command; |
---|
440 | @end example |
---|
441 | |
---|