From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29217 invoked by alias); 4 Apr 2002 15:36:04 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 29209 invoked from network); 4 Apr 2002 15:36:03 -0000 Received: from unknown (HELO fw-cam.cambridge.arm.com) (193.131.176.3) by sources.redhat.com with SMTP; 4 Apr 2002 15:36:03 -0000 Received: by fw-cam.cambridge.arm.com; id QAA06782; Thu, 4 Apr 2002 16:36:01 +0100 (BST) Received: from unknown(172.16.1.2) by fw-cam.cambridge.arm.com via smap (V5.5) id xma006525; Thu, 4 Apr 02 16:35:49 +0100 Received: from cam-mail2.cambridge.arm.com (localhost [127.0.0.1]) by cam-admin0.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id QAA24187; Thu, 4 Apr 2002 16:35:39 +0100 (BST) Received: from sun18.cambridge.arm.com (sun18.cambridge.arm.com [172.16.2.18]) by cam-mail2.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id QAA07509; Thu, 4 Apr 2002 16:35:47 +0100 (BST) Message-Id: <200204041535.QAA07509@cam-mail2.cambridge.arm.com> To: Ilko Iliev cc: gdb@sources.redhat.com, Richard.Earnshaw@arm.com Reply-To: Richard.Earnshaw@arm.com Organization: ARM Ltd. X-Telephone: +44 1223 400569 (direct+voicemail), +44 1223 400400 (switchbd) X-Fax: +44 1223 400410 X-Address: ARM Ltd., 110 Fulbourn Road, Cherry Hinton, Cambridge CB1 9NJ. X-Url: http://www.arm.com/ Subject: Re: gdbinit and PLL init In-reply-to: Your message of "Thu, 04 Apr 2002 17:30:18 +0200." <5.1.0.14.2.20020404172023.00aeede0@mbox> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 04 Apr 2002 07:36:00 -0000 From: Richard Earnshaw X-SW-Source: 2002-04/txt/msg00051.txt.bz2 > Hello! > > I have custom board with ARM7 CPU with PLL and I use JEENI. > > I want to init the PLL in .gdbinit, but this is complex. > > How can I write the follow sequence in .gdbinit? > > int *pp = 0xFFFF4020; > int *qq = 0xFFFF4040; > *pp = 0x1234; > while( *qq & 0x400 ); // or 200ms pause > *pp = 0x5678; > > > best regards > Ilko > Try set $pp = (int*)0xffff4020 set $qq = (int*)0xffff4040 set *$pp = 0x1234 while (*$qq & 0x0400) end set *$pp = 0x5678 R.