Skip to content

Conversation

@jejones3141
Copy link
Contributor

length and LSN of the bootfile's first segment or the zero length and LSN of the bootfile's file descriptor.

Set both LSN possibilities in a semantically meaningful way rather than counting on an accident of how RBF allocates the file descriiptor sector and the first segment in a contiguous hunk.

Clarify the condition that os9 gen uses as a contiguity test and why in this context it gives the desired result.

Copy link
Member

@tlindner tlindner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! I used this to build NitrOS-9 and successfully built Level 2 and it booted in Mame. If you don't get to the sprintf thing in a few day, I'll just commit it as is.

length and LSN of the bootfile's first segment or the zero length and
LSN of the bootfile's file descriptor.

Set both LSN possibilities in a semantically meaningful way rather
than counting on an accident of how RBF allocates the file descriiptor
sector and the first segment in a contiguous hunk.

Clarify the condition that os9 gen uses as a contiguity test and why in
this context it gives the desired result.

Also, use snprintf() with checks for overrun when generating path names
for -b and -t, and declare size to be u_int to avoid complaints about
&size to _os9_read().
@jejones3141 jejones3141 force-pushed the os9gen_extended_dd_bt branch from bbd15b2 to 1f19905 Compare January 3, 2026 21:10
@tlindner tlindner merged commit cfe3a86 into nitros9project:main Jan 7, 2026
1 check passed
@jejones3141 jejones3141 deleted the os9gen_extended_dd_bt branch January 10, 2026 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants