Subject: Re: netbsd-current and ibook g4: kernel freeze
To: leon zadorin <leonleon77@gmail.com>
From: Michael Lorenz <macallan@netbsd.org>
List: port-macppc
Date: 02/04/2007 22:59:01
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Feb 4, 2007, at 21:28, leon zadorin wrote:

> the "ofb_cnattach", in the aforementioned sequence of calls, calls:
>
> 	/* get current cursor position */
> 	OF_interpret("line#", 1, 1, &crow);

Eek, that's wrong.
Should be OF_interpret("line#", 0, 1, &crow); - nothing in, one out.

> So what is my overheated brain missing? :-)

Nothing ;)

You found a typo I missed when we were making OF_interpret on macppc 
behave like on sparc64 and all the other OpenFirmware platforms.

About the argument voodoo - we add one to both in and out because:
- - the command itself counts as first argument
- - OF returns some sort of status as first out

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iQEVAwUBRcarhcpnzkX8Yg2nAQIgMwgAirAc6WtdCVnBs2fAUQHzQ3n9L+bZEjKJ
WxHYpMIjUdDXsmdvduHLs0D9BX/+Pn4U+tB2CdATOkKYGh9SUFe9cSTBvNp05W+c
r5U0Db0w++JYQV4ZC6uEATVKOysC5ABp6NFVyHCHtRt6g/X+HIPvlv//CcP8+qtA
SeWfa+mX9i4npTT1Wq9ezraj0DgO5NxyoRsthQrabMFVxv1V8gpH9O8pQNGEQkmx
H4wyHgaBMJ5bFxfLl56KkeD2xbNwMmKzEpUME4jNvFHgu63jCgDenU0CEondN4ia
6v4uD09AFE77NCdpPpzWP2H+/CvrSZtTtpL5O6u7PAYMtAB/1BmT4g==
=ikO7
-----END PGP SIGNATURE-----