* [9fans] NIX as of feb 13
@ 2025-02-13 18:38 ron minnich
2025-02-13 19:14 ` tlaronde
0 siblings, 1 reply; 2+ messages in thread
From: ron minnich @ 2025-02-13 18:38 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
[-- Attachment #1: Type: text/plain, Size: 1698 bytes --]
Once I had run ftq, I realized there was no way we were running on an AC
with that kind of noise, and, sure enough, we were not. ftq is a handy diag.
A bit further digging showed I had not finished the job. I had not added
support code for exiting to an AC from the kernel.
It's there now
https://github.com/rminnich/9front/commit/acde872bca3454e40864b35d450d80c9801db6e7#diff-8d386fb2115162117b438b49040ba74afbec505d3cf3d7214c35c7cdf3410f8fR1689
I can tell it's trying to start on the AC because it panics :-)
Now, the 9front branch as of today is more up to date. But if you look at
9/pc64/nix.s, you'll see lots of lines with FIXME
The problem is that things in Proc have moved (particularly dbgregs), so
the four functions in there need a careful look. Some of the offsets are
way off.
You can try to compute this by hand (easy in 2011, when dbgregs was like
the 4th thing in Proc, impossible in 2025, when it has moved); just write
some code, that runs in kernel main, to print offsetof() those struct
members, then wrap back around and fix nix.s
or write a program that runs in user mode, you'll just have to get the
includes right.
If you get there first, lmk.
here is my current qemu command line to boot to the embedded rc
qemu-system-x86_64 -kernel ~/Downloads/9pc64 -smp 4 -nographic -serial
mon:stdio -cpu qemu64,+monitor -append console=0 -m 8192
you don't need a .iso because you're stopping in the embedded fs.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T91ed5776302b0c4c-M001e8e973b42075e1096ee11
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #2: Type: text/html, Size: 2699 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [9fans] NIX as of feb 13
2025-02-13 18:38 [9fans] NIX as of feb 13 ron minnich
@ 2025-02-13 19:14 ` tlaronde
0 siblings, 0 replies; 2+ messages in thread
From: tlaronde @ 2025-02-13 19:14 UTC (permalink / raw)
To: 9fans
I have added a "Quick tips for now ($date)" paragraph reachable with:
https://notes.kergis.com/nix-os.html#nunc
that I will keep up-to-date with the status published by Ron Minnich,
Paul Lalonde or whoever contributes.
The following information is now online, in the page mentionned above.
On Thu, Feb 13, 2025 at 10:38:36AM -0800, ron minnich wrote:
> Once I had run ftq, I realized there was no way we were running on an AC
> with that kind of noise, and, sure enough, we were not. ftq is a handy diag.
>
> A bit further digging showed I had not finished the job. I had not added
> support code for exiting to an AC from the kernel.
>
> It's there now
> https://github.com/rminnich/9front/commit/acde872bca3454e40864b35d450d80c9801db6e7#diff-8d386fb2115162117b438b49040ba74afbec505d3cf3d7214c35c7cdf3410f8fR1689
>
> I can tell it's trying to start on the AC because it panics :-)
>
> Now, the 9front branch as of today is more up to date. But if you look at
> 9/pc64/nix.s, you'll see lots of lines with FIXME
>
> The problem is that things in Proc have moved (particularly dbgregs), so
> the four functions in there need a careful look. Some of the offsets are
> way off.
>
> You can try to compute this by hand (easy in 2011, when dbgregs was like
> the 4th thing in Proc, impossible in 2025, when it has moved); just write
> some code, that runs in kernel main, to print offsetof() those struct
> members, then wrap back around and fix nix.s
>
> or write a program that runs in user mode, you'll just have to get the
> includes right.
>
> If you get there first, lmk.
>
> here is my current qemu command line to boot to the embedded rc
> qemu-system-x86_64 -kernel ~/Downloads/9pc64 -smp 4 -nographic -serial
> mon:stdio -cpu qemu64,+monitor -append console=0 -m 8192
>
> you don't need a .iso because you're stopping in the embedded fs.
--
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/T91ed5776302b0c4c-Ma6dcec06053cb5d64009c70b
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-02-13 19:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-13 18:38 [9fans] NIX as of feb 13 ron minnich
2025-02-13 19:14 ` tlaronde
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).