From owner-svn-src-all@freebsd.org Fri Mar 10 10:25:50 2017 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 33ECED05A5F; Fri, 10 Mar 2017 10:25:50 +0000 (UTC) (envelope-from bde@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0128528A; Fri, 10 Mar 2017 10:25:49 +0000 (UTC) (envelope-from bde@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v2AAPn3v083765; Fri, 10 Mar 2017 10:25:49 GMT (envelope-from bde@FreeBSD.org) Received: (from bde@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v2AAPnHW083764; Fri, 10 Mar 2017 10:25:49 GMT (envelope-from bde@FreeBSD.org) Message-Id: <201703101025.v2AAPnHW083764@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bde set sender to bde@FreeBSD.org using -f From: Bruce Evans Date: Fri, 10 Mar 2017 10:25:49 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r314997 - head/sys/dev/syscons X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Mar 2017 10:25:50 -0000 Author: bde Date: Fri Mar 10 10:25:48 2017 New Revision: 314997 URL: https://svnweb.freebsd.org/changeset/base/314997 Log: Fix compilation on sparc64. The frame buffer address is in a field that is unavailable on sparc64 only. This makes the new ec_putc() a non-op on sparc64 but still calls it. On other non-x86 arches, it should compile but might not work. Reported by: gjb Modified: head/sys/dev/syscons/syscons.c Modified: head/sys/dev/syscons/syscons.c ============================================================================== --- head/sys/dev/syscons/syscons.c Fri Mar 10 10:09:44 2017 (r314996) +++ head/sys/dev/syscons/syscons.c Fri Mar 10 10:25:48 2017 (r314997) @@ -277,7 +277,9 @@ static u_int ec_scroffset; * set (likely non-fake) graphics mode to get a null initial ec_putc(). */ static scr_stat fake_main_console = { +#ifndef __sparc64__ .scr.vtb_buffer = 0xb8000, +#endif .xsize = 80, .ysize = 25, #if !defined(__amd64__) && !defined(__i386__) @@ -290,6 +292,7 @@ static scr_stat fake_main_console = { static void ec_putc(int c) { +#ifndef __sparc64__ u_short *scrptr; u_int ind; int attr, column, mysize, width, xsize, yborder, ysize; @@ -321,6 +324,7 @@ ec_putc(int c) do scrptr[ind++ % mysize] = (attr << 8) | c; while (--width != 0); +#endif /* !__sparc64__ */ } #undef main_console