summaryrefslogtreecommitdiff
path: root/sys/arch/sun2
AgeCommit message (Collapse)Author
2023-06-02follow the steps of Andrew Doran (ad) commit and fix more s/loose/lose/ typos.andvar
also s/beyound/beyond/ and few others along the way, mainly in comments.
2023-02-12Add optoion GENERIC.local include to the end of ~all GENERIC configsabs
This excludes atari, sgimips, evbmips, evbppc, evbsh3, and hpcarm all of which have somewhat specific kernel config file layouts
2022-10-26ddb/db_active.h: New home for extern db_active.riastradh
This can be included unconditionally, and db_active can then be queried unconditionally; if DDB is not in the kernel, then db_active is a constant zero. Reduces need for #include opt_ddb.h, #ifdef DDB.
2022-08-07UFS/LFS dirhash:simonb
- Enable UFS_DIRHASH if the architecture or kernel model specific config file can use 128MB of RAM or more. - Remove experimental tag from UFS_DIRHASH; it's been with RUMP kernel and by a number of NetBSD developers for years. - Add LFS_DIRHASH if LFS was enabled. - Be somewhat consistent with FS options order.
2022-03-16s/paniced/panicked/ and s/borken/broken/ in comments.andvar
2022-02-06fix various typos in comments, log messages and documentation.andvar
mainly s/aparently/apparently/ and s/implmented/implemented/.
2021-10-24fix various typos in comments, mainly copypasta.andvar
2021-09-11Add missing double p and d for stopped and overriden accordingly.andvar
Fix few more typos along the way, mainly in copy-pasted comments.
2021-08-30The INSTALL kernel needs to be small toochristos
2021-08-30Only use the ldscript for the RAMDISK kernel for now.christos
2021-08-30use -ffunction-sections -fdata-sections --gc-sections with an ldscriptchristos
that keeps _start. This deletes all unused code and shrinks the RAMDISK kernel enough to be able to boot again: -rwxr-xr-x 1 root src 2519436 Aug 30 06:38 RAMDISK.1/netbsd* -rwxr-xr-x 1 root src 2104440 Aug 30 07:41 RAMDISK/netbsd* text data bss dec hex filename 1525412 686252 63552 2275216 22b790 RAMDISK.1/netbsd 1098524 686400 67008 1851932 1c421c RAMDISK/netbsd
2021-08-17fix multiplei repetitive typos in comments, messages and documentation. ↵andvar
mainly because copy paste code big amount of files are affected.
2021-08-07Merge thorpej-cfargs2.thorpej
2021-05-31Include "opt_param.h" (ifdef _KERNEL_OPT) everywhere that MSGBUFSIZE issimonb
referenced since some sources include <machine/param.h>.
2021-04-24Merge thorpej-cfargs branch:thorpej
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass along, just have a single call that takes a variadic list of tag-value arguments. Adjust all call sites: - Simplify wherever possible; don't pass along arguments that aren't actually needed. - Don't be explicit about what interface attribute is attaching if the device only has one. (More simplification.) - Add a config_probe() function to be used in indirect configuiration situations, making is visibly easier to see when indirect config is in play, and allowing for future change in semantics. (As of now, this is just a wrapper around config_match(), but that is an implementation detail.) Remove unnecessary or redundant interface attributes where they're not needed. There are currently 5 "cfargs" defined: - CFARG_SUBMATCH (submatch function for direct config) - CFARG_SEARCH (search function for indirect config) - CFARG_IATTR (interface attribte) - CFARG_LOCATORS (locators array) - CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles) ...and a sentinel value CFARG_EOL. Add some extra sanity checking to ensure that interface attributes aren't ambiguous. Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark ports to associate those device handles with device_t instance. This will trickle trough to more places over time (need back-end for pre-OFW Sun OBP; any others?).
2021-04-01Define __HAVE_LEGACY_INTRCNT to indicate this port uses legacy intrcntsimonb
interrupt accounting.
2021-04-01Whitespace: #define<tab>simonb
2021-03-31Adjust the number of entries in the intrcnt array to match the numbersimonb
of names in the intrnames list.
2020-11-21malloc(9) -> kmem(9)thorpej
2020-10-05Kernel without -fno-omit-frame-pointer works fine now, both for GCC8 and 9.rin
Not sure which commit ``fixed'' the problem although...
2020-09-27vether: Add to kernel configurationsroy
It's only enabled if the kernel enabled bridge AND tap. Otherwise it's commented out.
2020-09-10Fix tracedump() for sun3 and sun2 by adding __noinline attribute.rin
It unwinds stack frame by using address of its first argument, which does not, of course, work if inline-expanded.
2020-09-08don't warn about array bounds for dodgy diagnostic code.mrg
fixes gcc9 builds.
2020-08-10Clean up _LKM --> _MODULE leftovers.rin
Note that _KERNEL is always defined for modules.
2020-08-10Reduce kernel size byrin
- Adding -fno-asynchronous-unwind-tables and -fno-unwind-tables to COPTS - Specify NO_KERNEL_RCSIDS to strip RCSIDS Also adding -fno-omit-frame-pointer to COPTS for backtrace in DDB.
2020-08-10Compile sun2 kernel with -fno-omit-frame-pointer for GCC8 as a workrin
around for reproducible kernel freezes just after ``Starting postfix.'', where I cannot even enter DDB nor obtain crash dump. I still haven't figured out why. Possibly something wrong with -Os optimization level for GCC/m68k, cf., http://mail-index.netbsd.org/port-sun3/2020/07/19/msg000166.html
2020-08-01Remove references to BRIDGE_IPF, it is now compiled in by default.maxv
2020-07-11Fix various typos of "system" in comments. Mainly copypasto errors.nia
from vezhlys on freenode.
2020-06-11uvm_availmem(): give it a boolean argument to specify whether a recentad
cached value will do, or if the very latest total must be fetched. It can be called thousands of times a second and fetching the totals impacts not only the calling LWP but other CPUs doing unrelated activity in the VM system.
2020-04-04mark nsmb major obsoletejdolecek
2020-03-19Replace manipulating IFF_OACTIVE with an internal "txbusy" field.thorpej
2020-03-14pmap_remove_all(): Return a boolean value to indicate the behaviour. Ifad
true, all mappings have been removed, the pmap is totally cleared out, and UVM can then avoid doing the work to call pmap_remove() for each map entry. If false, either nothing has been done, or some helpful arch-specific voodoo has taken place.
2020-03-13Fix build without kbd at zstty, simplify.rin
2020-03-08Fix comments on root devices.rin
2020-03-08Retire md(4) in favor of tmpfs provided by module,rin
though both are not useful for 8MB RAM system...
2020-03-08sun2 kernel is restricted to ~2MB due to bootloader.rin
It seems that working kernel should be more smaller. Strip off most kernel options, and provide by kernel modules. Also add GENERIC kernel for NFS root instead of FFS.
2020-03-08Support module(7).rin
2020-03-08Sort headers.rin
2020-02-20G/Cskrll
2020-02-17G/C LS{SLEEP,RUN,ONPROC}skrll
LWP status manipulation was moved out of assembly long ago.
2020-02-01Use "__nothing" macro defined in <sys/cdefs.h> for empty pmap_update().tsutsui
Suggested by pgoyette@ in PR/54869.
2020-01-29Adopt <net/if_stats.h>.thorpej
2019-12-31Rename uvm_free() -> uvm_availmem().ad
2019-12-21uvmexp.free -> uvm_free()ad
2019-11-21mi_userret(): take care of calling preempt(), set spc_curpriority directly,ad
and remove MD code that does the same.
2019-08-06 Fix typo in comment. Found by Wataru Ashihara.msaitoh
2019-06-03 Fix typo in comment(s/similiar/similar/).msaitoh
2019-05-29Even if we don't use MII(4), use the common path of SIOC[GS]IFMEDIA inmsaitoh
sys/net/if_ethersubr.c if we can. - Add ec_ifmedia into struct ethercom. - ec_mii in struct ethercom is kept and used as it is. It might be used in future. Note that some Ethernet drivers which _DOESN'T_ use mii(4) use ec_mii for keeping the if_media. Those should be changed in future.
2019-05-29 KNF. No functional change.msaitoh
2019-05-29 Whitespace fix. No functional change.msaitoh