From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eddy Subject: Re: GCC port for Intel 8086, 80186 and 80286 Date: Fri, 31 Aug 2007 10:37:23 +0200 Message-ID: <46D7D343.6060201@gmail.com> References: <20070809205621.GN25795@sygehus.dk> <20070830151614.GJ25795@sygehus.dk> <37367b3a0708300943v6614801cp26111f8ff7378989@mail.gmail.com> <20070831004214.09464049@the-village.bc.nu> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=qWAMddWkn3DR23SxV7hUuj1X5/dGDUROrMRMNO7Big1QTevxjVjOswdkvHBiLnwQ7Ry52JgVlQbnXbE004B5dMlUnUni/8QbnmpatGDHeWuIkRDra7x8L6b4k/3J02p/HArvos4H7MEiAi9/DLqfzBcYbrgKb1NTA0SRAdqFxqI= In-Reply-To: <20070831004214.09464049@the-village.bc.nu> Sender: linux-8086-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" To: ELKS Alan Cox wrote: > On Thu, 30 Aug 2007 13:43:52 -0300 > "Alan Carvalho de Assis" wrote: > > > > Well the first step to sanity would be moving the kernel code to the 8086 > gcc, getting ansi prototypes and sane C. That means sorting the asm out > with gcc asm which frankly scares me 8) > - > I don't know very well what are the differences between the 2 codes, but I think that is possible to use a recursive bash script to automatically replace lines that have to be replaced and go. I thought at something like this: #!/bin/bash for i in `grep -R "text that is in files to be replaced" elks/* | cut -f1-1 -d ":"` do sed -i -e 's,old code,new code,g' $i sed -i -e 's,old code,new code,g' $i ... done It is a good idea? I hope yes.