Subject: Re: KLOADER on i386?
To: Blair Sadewitz <blair.sadewitz@gmail.com>
From: Quentin Garnier <cube@cubidou.net>
List: tech-kern
Date: 05/23/2007 17:07:17
--+oMowpWkHrfFA4gj
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, May 23, 2007 at 10:32:56AM -0400, Blair Sadewitz wrote:
> I was looking at this today and was wondering if this could work on
> i386.  My motherboard (Intel D945G) takes an inordinate amount of time
> to reboot sometimes, and I reboot often enough such that this would be
> convenient.

kloader(9) currently cannot work on archs where you don't have a memory
space where va =3D=3D pa is true.

So, kloader(9) on i386 is possible barring that you:

  1.  change the kloader inner workings lightly so it copies the new
      kernel into a set of regular virtual addresses.
  2.  create an api (in uvm or through some hack of your choice, it can
      be made better later) to easily get the few pages you need for the
      bootloader that verifies pa =3D=3D va.
  3.  pass the set of physical addresses where the kernel has been
      copied to said bootloader.

At least, that's my recollection of when I looked at it for hpcarm.

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"You could have made it, spitting out benchmarks
Owe it to yourself not to fail"
Amplifico, Spitting Out Benchmarks, Hometakes Vol. 2, 2005.

--+oMowpWkHrfFA4gj
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (NetBSD)

iQEVAwUBRlRYpdgoQloHrPnoAQIoCwf+N8Wma9GyBM9uR2bQNa1TiifaJKt5mVUF
nNp3+ZaDsHyUU+2XZeolRj19H1KLvq6ai49xj3rRN8Muge7pEAV5AYwhCDyscXJ0
Cj4V8oA6WTMgDdKeC+h33XAfNAPZ+rfbAtDfnPt2ZCVAFbZLtvbm/i+P983CgIv0
pYceewNpo2FudHazcLGYAy6oDxcFNVD7fcsyCsxsZrWMuWwg9CYEy2pCETQjhbHY
tqPJp/bUWPBWkX0XMLAoO+/Jw21SYPCXL22O9KF+Lkitjf+rYAIVPab6f+p3opr1
0bn9Hn0Ji/ffiyCSEGD2Cv3QTM7We0q19w+tHVBk/y4tHxzEfKhjCg==
=IyzH
-----END PGP SIGNATURE-----

--+oMowpWkHrfFA4gj--