Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1EtTYX-0007M0-3y for mharc-grub-devel@gnu.org; Mon, 02 Jan 2006 12:33:13 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EtTYV-0007Gn-3T for grub-devel@gnu.org; Mon, 02 Jan 2006 12:33:11 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EtTYS-0007B4-KC for grub-devel@gnu.org; Mon, 02 Jan 2006 12:33:09 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EtTYS-00079q-3a for grub-devel@gnu.org; Mon, 02 Jan 2006 12:33:08 -0500 Received: from [209.86.89.68] (helo=smtpauth08.mail.atl.earthlink.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EtTZX-0005Og-6s for grub-devel@gnu.org; Mon, 02 Jan 2006 12:34:15 -0500 Received: from [63.246.184.80] (helo=[192.168.0.100]) by smtpauth08.mail.atl.earthlink.net with asmtp (Exim 4.34) id 1EtTWp-0005ui-TF for grub-devel@gnu.org; Mon, 02 Jan 2006 12:31:28 -0500 Mime-Version: 1.0 (Apple Message framework v623) In-Reply-To: <87mzie5zc0.fsf@xs4all.nl> References: <247878a1a3ba32e60a89ff5f7a9272ab@penguinppc.org> <87slst871q.fsf@xs4all.nl> <87mzie5zc0.fsf@xs4all.nl> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <2a1f26550bcf5fa3c91fa4f9342b8267@penguinppc.org> Content-Transfer-Encoding: 7bit From: Hollis Blanchard Date: Mon, 2 Jan 2006 11:31:29 -0600 To: The development of GRUB 2 X-Mailer: Apple Mail (2.623) X-ELNK-Trace: 77a46389d001b1f223bcf3e39c2f8b5f1aa676d7e74259b7b3291a7d08dfec79eb83748bdcdeb074f973c5c0d5560efe350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 63.246.184.80 Subject: Re: [patch] memory commands X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jan 2006 17:33:11 -0000 On Jan 2, 2006, at 11:11 AM, Marco Gerards wrote: > >> +2005-12-12 Hollis Blanchard >> + >> + * commands/memdebug.c: New file. > >> + * kern/powerpc/misc.c: Likewise. >> + * include/grub/powerpc/misc.h: Likewise. >> + * include/grub/i386/misc.h: Likewise. >> + * include/grub/sparc64/misc.h: Likewise. > > Why don't you use trap.[ch]? Calling it misc is a bit too generic I > think, and I'm afraid everyone put everything in it. That was my intention. Our build system makes it too painful to introduce (then move and rename and remove) new files, and this didn't seem important enough to merit its own header anyways. >> + grub_register_command ("memset", grub_cmd_memset, >> GRUB_COMMAND_FLAG_BOTH, >> + "memset address (value [len] | trap)", >> + "Write a 32-bit quantity to memory.", 0); > > This syntax is a bit unusual, I think (for a GNU program). Mainly > because it has quite some conditional parameters. How about: > > memset --value=len > > or: > > memset --trap "memset --address=foo --value=bar --len=baz" and "memset --address=foo --value=trap"? Far too much typing for a very simple operation. > Can you please explain what this command does? To be honest I don't > really understand it immediately from the sourcecode. ;-) It writes a value into a region of memory. -Hollis