From patchwork Wed Aug 4 00:38:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kyle mcmartin X-Patchwork-Id: 116897 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o740ZU0g014157 for ; Wed, 4 Aug 2010 00:38:10 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757969Ab0HDAiK (ORCPT ); Tue, 3 Aug 2010 20:38:10 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:48917 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756799Ab0HDAiJ (ORCPT ); Tue, 3 Aug 2010 20:38:09 -0400 Received: from kyle by bombadil.infradead.org with local (Exim 4.72 #1 (Red Hat Linux)) id 1OgRzk-00046Z-Sp; Wed, 04 Aug 2010 00:38:08 +0000 Date: Tue, 3 Aug 2010 20:38:08 -0400 From: Kyle McMartin To: torvalds@linux-foundation.org Cc: linux-parisc@vger.kernel.org Subject: [PATCH] parisc: pass through '\t' to early (iodc) console Message-ID: <20100804003808.GA2684@bombadil.infradead.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-08-17) Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 04 Aug 2010 00:38:45 +0000 (UTC) diff --git a/arch/parisc/kernel/firmware.c b/arch/parisc/kernel/firmware.c index 4c247e0..df971fa 100644 --- a/arch/parisc/kernel/firmware.c +++ b/arch/parisc/kernel/firmware.c @@ -1123,7 +1123,6 @@ static char __attribute__((aligned(64))) iodc_dbuf[4096]; */ int pdc_iodc_print(const unsigned char *str, unsigned count) { - static int posx; /* for simple TAB-Simulation... */ unsigned int i; unsigned long flags; @@ -1133,19 +1132,12 @@ int pdc_iodc_print(const unsigned char *str, unsigned count) iodc_dbuf[i+0] = '\r'; iodc_dbuf[i+1] = '\n'; i += 2; - posx = 0; goto print; - case '\t': - while (posx & 7) { - iodc_dbuf[i] = ' '; - i++, posx++; - } - break; case '\b': /* BS */ - posx -= 2; + i--; /* overwrite last */ default: iodc_dbuf[i] = str[i]; - i++, posx++; + i++; break; } }