1 <!-- Copyright (C) 2003 Red Hat, Inc. -->
2 <!-- This material may be distributed only subject to the terms -->
3 <!-- and conditions set forth in the Open Publication License, v1.0 -->
4 <!-- or later (the latest version is presently available at -->
5 <!-- http://www.opencontent.org/openpub/). -->
6 <!-- Distribution of the work or derivative of the work in any -->
7 <!-- standard (paper) book form is prohibited unless prior -->
8 <!-- permission is obtained from the copyright holder. -->
13 ><meta name="MSSmartTagsPreventParsing" content="TRUE">
16 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
19 TITLE="eCos Reference Manual"
20 HREF="ecos-ref.html"><LINK
22 TITLE="Common Commands"
23 HREF="common-commands.html"><LINK
26 HREF="mcmp-command.html"><LINK
29 HREF="ping-command.html"></HEAD
40 SUMMARY="Header navigation table"
49 >eCos Reference Manual</TH
57 HREF="mcmp-command.html"
71 HREF="ping-command.html"
82 NAME="MFILL-COMMAND">mfill</H1
90 >mfill -- Fill RAM with a specified pattern</DIV
92 CLASS="REFSYNOPSISDIV"
125 CLASS="INFORMALTABLE"
177 >Location in memory for start of data.</TD
243 >Data value to fill with</TD
265 >Access one byte (8 bits) at a time.
266 Only the least significant 8 bits of the pattern will be used.</TD
288 >Access two bytes (16 bits) at a time.
289 Only the least significant 16 bits of the pattern will be used.</TD
311 >Access one word (32 bits) at a time.</TD
332 >Fills a range of memory with the given pattern.</P
342 >Fill a buffer with zeros.
355 >x -b 0x100000 -l 0x20</B
358 00100000: 00 3E 00 06 00 06 00 06 00 00 00 00 00 00 00 00 |.>..............|
359 00100010: 00 00 00 78 00 70 00 60 00 60 00 60 00 60 00 60 |...x.p.`.`.`.`.`|
363 >mfill -b 0x100000 -l 0x20</B
369 >x -b 0x100000 -l 0x20</B
372 00100000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
373 00100010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|</PRE
379 >Fill a buffer with a pattern.
392 >mfill -b 0x100000 -l 0x20 -p 0xDEADFACE</B
398 >x -b 0x100000 -l 0x20</B
401 00100000: CE FA AD DE CE FA AD DE CE FA AD DE CE FA AD DE |................|
402 00100010: CE FA AD DE CE FA AD DE CE FA AD DE CE FA AD DE |................|</PRE
414 SUMMARY="Footer navigation table"
425 HREF="mcmp-command.html"
443 HREF="ping-command.html"
459 HREF="common-commands.html"