From owner-freebsd-ppc@FreeBSD.ORG Mon Jun 8 20:04:42 2009 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5BE791065727 for ; Mon, 8 Jun 2009 20:04:42 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:7b8:613:100::211]) by mx1.freebsd.org (Postfix) with ESMTP id ECF088FC0C for ; Mon, 8 Jun 2009 20:04:41 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 59FBE1CD8A; Mon, 8 Jun 2009 22:04:41 +0200 (CEST) Date: Mon, 8 Jun 2009 22:04:41 +0200 From: Ed Schouten To: Andreas Tobler Message-ID: <20090608200441.GC48776@hoeg.nl> References: <4A2C26C8.8080302@gmail.com> <4A2D6432.50307@fgznet.ch> <20090608192744.GB48776@hoeg.nl> <4A2D6C56.9060900@fgznet.ch> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qqF1XwZUdAkx0x+N" Content-Disposition: inline In-Reply-To: <4A2D6C56.9060900@fgznet.ch> User-Agent: Mutt/1.5.19 (2009-01-05) Cc: FreeBSD/ppc Subject: Re: powermac kernel freezes on CURRENT X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jun 2009 20:04:42 -0000 --qqF1XwZUdAkx0x+N Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Andreas Tobler wrote: > The kdb diff alone works. > But the kdbmux diff seems to be the one causing the freeze. > > I tested on top of 193511. Ah! Looking at the diff, I think I can only have messed up inside the _putc() and _getc() routines I added. One of the biggest differences between i386/am64 and PowerPC: characters are unsigned by default! I'm going to slam my head against the wall for the next couple of minutes. Let me know whether it fixes your problem. %%% Index: kbdmux.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- kbdmux.c (revision 193733) +++ kbdmux.c (working copy) @@ -181,7 +181,7 @@ state->ks_inq_length++; } =20 -static char +static int kbdmux_kbd_getc(kbdmux_state_t *state) { char c; %%% --=20 Ed Schouten WWW: http://80386.nl/ --qqF1XwZUdAkx0x+N Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkotbtkACgkQ52SDGA2eCwUKVACfY74tV3kqWru7sXsuMU+CC0u7 tMMAn0JWxyGN689Sln0T+asjmCNiLK2z =6lDa -----END PGP SIGNATURE----- --qqF1XwZUdAkx0x+N--