* [9fans] Nix/regen: from 386 to pc and port
@ 2025-01-21 19:52 tlaronde
2025-01-21 20:22 ` Ron Minnich
0 siblings, 1 reply; 3+ messages in thread
From: tlaronde @ 2025-01-21 19:52 UTC (permalink / raw)
To: 9fans
What is in the Nix current 386 is available, on 9front, whether under
/sys/src/9/pc or /sys/src/9/port.
Generally 386/ -> pc/ with same filename except:
386/kbd.c -> pc/devkbd.c
386/devether.c -> port/devether.c
386/random.c -> port/random.c
386/pci.c -> port/{pci,devpci}.c
What is the best Plan9 way, temporarily, for swapping progressively the
files (after verifying and fixing what is not compatible, in the
file or the headers)?
Bind the 9front dir under, so that when a file is removed from the Nix
sources, the 9front one is directly accessed?
Or explicitely set in the mkfile the paths for the ones that can be
replaced by the 9front ones?
It would be best to do it in one shot (since this is mainly a problem
of include files) but since I'm not sure to have
enough time to achieve this in one slot, I'd like to have a way to do it
progressively. Hence the question about the in-between situation.
--
Thierry Laronde <tlaronde +AT+ kergis +dot+ com>
http://www.kergis.com/
http://kertex.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T6ab0e01e171877e9-Mfb4339ff1c717cfb7f71144d
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] Nix/regen: from 386 to pc and port
2025-01-21 19:52 [9fans] Nix/regen: from 386 to pc and port tlaronde
@ 2025-01-21 20:22 ` Ron Minnich
2025-01-21 20:23 ` Ron Minnich
0 siblings, 1 reply; 3+ messages in thread
From: Ron Minnich @ 2025-01-21 20:22 UTC (permalink / raw)
To: 9fans
I would advise one at a time. Big Bang changes make bisection much
harder. Pick a nice short simple file you are sure you understand,
and try it.
Be sure to always see if the behavior in qemu or vmx is the same
before and after.
Small moves.
On Tue, Jan 21, 2025 at 11:54 AM <tlaronde@kergis.com> wrote:
>
> What is in the Nix current 386 is available, on 9front, whether under
> /sys/src/9/pc or /sys/src/9/port.
>
> Generally 386/ -> pc/ with same filename except:
>
> 386/kbd.c -> pc/devkbd.c
>
> 386/devether.c -> port/devether.c
> 386/random.c -> port/random.c
> 386/pci.c -> port/{pci,devpci}.c
>
> What is the best Plan9 way, temporarily, for swapping progressively the
> files (after verifying and fixing what is not compatible, in the
> file or the headers)?
>
> Bind the 9front dir under, so that when a file is removed from the Nix
> sources, the 9front one is directly accessed?
>
> Or explicitely set in the mkfile the paths for the ones that can be
> replaced by the 9front ones?
>
> It would be best to do it in one shot (since this is mainly a problem
> of include files) but since I'm not sure to have
> enough time to achieve this in one slot, I'd like to have a way to do it
> progressively. Hence the question about the in-between situation.
> --
> Thierry Laronde <tlaronde +AT+ kergis +dot+ com>
> http://www.kergis.com/
> http://kertex.kergis.com/
> Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T6ab0e01e171877e9-Me59cfe9fb3ef837e45289111
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [9fans] Nix/regen: from 386 to pc and port
2025-01-21 20:22 ` Ron Minnich
@ 2025-01-21 20:23 ` Ron Minnich
0 siblings, 0 replies; 3+ messages in thread
From: Ron Minnich @ 2025-01-21 20:23 UTC (permalink / raw)
To: 9fans
Above all, make very sure you're not leaving a system that compiles
but will grenade once someone else tries it. You can test that via vmx
or qemu, qemu being the better choice at the moment.
On Tue, Jan 21, 2025 at 12:22 PM Ron Minnich <rminnich@p9f.org> wrote:
>
> I would advise one at a time. Big Bang changes make bisection much
> harder. Pick a nice short simple file you are sure you understand,
> and try it.
>
> Be sure to always see if the behavior in qemu or vmx is the same
> before and after.
>
> Small moves.
>
> On Tue, Jan 21, 2025 at 11:54 AM <tlaronde@kergis.com> wrote:
> >
> > What is in the Nix current 386 is available, on 9front, whether under
> > /sys/src/9/pc or /sys/src/9/port.
> >
> > Generally 386/ -> pc/ with same filename except:
> >
> > 386/kbd.c -> pc/devkbd.c
> >
> > 386/devether.c -> port/devether.c
> > 386/random.c -> port/random.c
> > 386/pci.c -> port/{pci,devpci}.c
> >
> > What is the best Plan9 way, temporarily, for swapping progressively the
> > files (after verifying and fixing what is not compatible, in the
> > file or the headers)?
> >
> > Bind the 9front dir under, so that when a file is removed from the Nix
> > sources, the 9front one is directly accessed?
> >
> > Or explicitely set in the mkfile the paths for the ones that can be
> > replaced by the 9front ones?
> >
> > It would be best to do it in one shot (since this is mainly a problem
> > of include files) but since I'm not sure to have
> > enough time to achieve this in one slot, I'd like to have a way to do it
> > progressively. Hence the question about the in-between situation.
> > --
> > Thierry Laronde <tlaronde +AT+ kergis +dot+ com>
> > http://www.kergis.com/
> > http://kertex.kergis.com/
> > Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T6ab0e01e171877e9-M820df31f127a0b083227e2a5
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-01-21 20:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-21 19:52 [9fans] Nix/regen: from 386 to pc and port tlaronde
2025-01-21 20:22 ` Ron Minnich
2025-01-21 20:23 ` Ron Minnich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).