Re: CVS commit: src/sys/arch
Jason Thorpe <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.userlevel |
|---|---|
| Message-ID | <[email protected]> |
[ Moving discussion to tech-userlevel ] > On Aug 5, 2026, at 7:03 PM, Nat Sloss <[email protected]> wrote: > > Hi Jason, > > All M68040 configs require FPSP... > Not necessarily true if you prefer to run soft float. > My current kernel config has options M68030 and M68040 which I use with a soft float userland. > Also I don't think FPSP is required for an LC040 when used with options FPU_EMULATE. > Attached is my attempt at addressing this....It would mean changing every existing instance of M68040 to options M68040HF :( I was about to suggest - “just use ’no options FPSP’!”, but then I noticed that config(1) doesn’t handle that if the option is a depended-option. Oops! I think I’d like to make config(1) handle this case so that the implied FPSP / M060SP options work, but folks like yourself who want to elide it can do so. Looks like the changes to config(1) will be small. Because option dependencies are done as a separate pass after parsing the config file, what I’ll need to do is keep track of every option explicitly de-selected in the config file with a “no option” statement, and then consult that table when processing the depended-options. Sound reasonable? > Removing FPSP on a kernel with FPU_EMULATE reduced the kernel size ~200kB of much needed memory. > Best regards, > Nat > -- thorpej
040hf.diff
(application/octet-stream, 675 B)
diff -r df3433e23614 sys/arch/m68k/conf/files.m68k --- a/sys/arch/m68k/conf/files.m68k Wed Aug 05 01:43:11 2026 +0000 +++ b/sys/arch/m68k/conf/files.m68k Thu Aug 06 11:53:18 2026 +1000 @@ -25,7 +25,8 @@ defflag opt_m68k_arch.h M68010 defflag opt_m68k_arch.h M68020: M68K_FPCOPROC defflag opt_m68k_arch.h M68030: M68K_MMU_68030, M68K_FPCOPROC -defflag opt_m68k_arch.h M68040: M68K_MMU_68040, M68K_FPCOPROC, FPSP +defflag opt_m68k_arch.h M68040: M68K_MMU_68040, M68K_FPCOPROC +defflag opt_m68k_arch.h M68040HF: M68040, FPSP defflag opt_m68k_arch.h M68060: M68K_MMU_68060, M68K_FPCOPROC, M060SP # Emit Makefile vars for these kernel options so that compiler flags