summaryrefslogtreecommitdiff
path: root/sys/arch/arc
AgeCommit message (Collapse)Author
2023-06-25s/responible/responsible/ in comment.andvar
2023-05-06s/regster/register/ in comments and error messages.andvar
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-11-02fix various typos in comments and messages.andvar
2022-09-29swwdog(4): Add to GENERIC kernels.riastradh
Plus a handful of others that I'm familiar with. Lots of special- purpose kernels should probably have this too but I'm not going through all the arm, mips, and ppc evaluation board kernels to see which ones are relevant. Omitted from systems I know to be very small: - sun2/GENERIC - dreamcast/GENERIC Feel free to remove it from others that need to be kept smaller. Compile-tested a few of these just in case: - alpha/GENERIC - amd64/GENERIC - evbmips/OCTEON - i386/GENERIC - riscv/GENERIC PR kern/29702
2022-08-16PRovide pci_intr_setattrskrll
2022-08-16Multiple inclusion protection.skrll
2022-08-16Whitespaceskrll
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-07-26s/functin/function/ in copy pasted comment.andvar
2022-05-24fix various typos in comment, documentation and log messages.andvar
2022-05-24fix various typos in comments, docs and log messages.andvar
2022-05-03fix various typos, mainly s/trasfering/transferring/ and s/theese/these/.andvar
2022-03-03arc: Use device_set_private for cpuN.riastradh
2022-01-22Ensure bus_dmatag_subregion is called with an inclusive max_addrskrll
everywhere.
2022-01-01fix typos in word "diagnostic".andvar
2021-12-17Correct copypaste comment grammar.skrll
2021-12-17Trailing whitespaceskrll
2021-09-26Driver "kqfilter" entry points return an error code, so if an invalidthorpej
filter is requested, return EINVAL rather than 1.
2021-09-26Change the kqueue filterops::f_isfd field to filterops::f_flags, andthorpej
define a flag FILTEROP_ISFD that has the meaning of the prior f_isfd. Field and flag name aligned with OpenBSD. This does not constitute a functional or ABI change, as the field location and size, and the value placed in that field, are the same as the previous code, but we're bumping __NetBSD_Version__ so 3rd-party module source code can adapt, as needed. NetBSD 9.99.89
2021-09-19fix various typos in comments, messages and documentation.andvar
2021-08-07Merge thorpej-cfargs2.thorpej
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-23Use sys/cdefs.h __CONCAT3skrll
2021-02-20sn(4): Add rnd(9) support.rin
2020-12-19Use sel{record,remove}_knote().thorpej
2020-11-18malloc(9) -> kmem(9)thorpej
2020-09-27vether: Add to kernel configurationsroy
It's only enabled if the kernel enabled bridge AND tap. Otherwise it's commented out.
2020-08-14Fix build by splitting large amount of inline assembling into a seperateskrll
.S file. Same stub (/trampoline) code before and after this change.
2020-08-01Remove references to BRIDGE_IPF, it is now compiled in by default.maxv
2020-07-07Overhaul the interface to pci_configure_bus():thorpej
- Don't expose how PCI bus configuration resource management is implemented. Provide a new resource provider API: ==> pciconf_resource_init() -- Initialize a PCI configuration resources container. ==> pciconf_resource_add() -- Add a PCI configuration resource to the container (I/O, MEM, or prefetchable MEM). Multiple resources of each type may be added. ==> pciconf_resource_fini() -- Tear down the PCI configurtation resources container once the bus has been configured. This is much easier to use than the previous method of providing an extent map for each kind of resource, and works better for e.g. ACPI platforms that provide potentially multiple PCI resources in tables provided by firmware. - Re-implement PCI configuration resource management using vmem arenas, rather than extent maps.
2020-06-17Use a vmem arena rather than an extent map to manage Jazz DMA TLBthorpej
address space.
2020-06-15Drop compat support for OpenBSD/arc disks.tsutsui
Note OpenBSD/arc was discontinued after 1998. Tested on GXemul and ok'ed by soda@.
2020-06-14replace EX_NOWAIT with EX_WAITOK in device attach methods.chs
remove checks for failures that can no longer occur.
2020-06-13g/c vm_page_zero_enablead
2020-06-03Explicitly strip debug info on calling objdump for ecoff boot binaries.tsutsui
As noted by martin@ on tech-toolchain@, release binaries are built with MKDEBUG=yes so standalone binaries should explicitly remove debug info generated by -g option. https://mail-index.netbsd.org/tech-toolchain/2020/06/02/msg003809.html Should be pulled up to netbsd-9. (ARC BIOS gets confused by debug info sections in ecoff binaries and boot binary in 9.0 doesn't work)
2020-05-29Try to shrink kernels to smaller than ~6MB due to ARC BIOS restriction.tsutsui
Currently NetBSD/arc kernels are loaded at 0x80200000 (on some machines ARC BIOS uses regions before it) and ARC BIOS also uses around 0x807f0000, so bootloader fails on loading >6MB kernels. Note GXemul doesn't have this restriction because it loads a kernel directly via a command line argument. Tested by installing using sysinst on RAMDISK kernel on netbsd-9. Should be pulled up to netbsd-9.
2020-05-29Make sure to preserve MIPS_CURLWP (t8) register from ARC BIOS calls.tsutsui
Fixes silent hangup right after starting a kernel on my Express5800/230 R4400 PCI (finally I've repaired its PSU and RTC). Reviewed by soda@. Maybe other ARC machines are also affected. Note GXemul was not affected by this problem because it doesn't have actual ARC BIOS ROM and emulates ARC functions internally. Should be pulled up to at least netbsd-9.
2020-04-04mark nsmb major obsoletejdolecek
2020-01-25Retire "le* at pci?" from the shipped kernel configs:thorpej
- If the config had both an le@pci and a pcn, simply remove le@pci (pcn would match at a higher priority anyway). - If the config had le@pci enabled, but no pcn, change le@pci to pcn. - If the config had le@pci commented out, but no pcn, change le@pci to pcn and leave it commented out. The pcn driver supports more chips than le@pci and does DMA directly to/from mbufs rather than memory copies.
2020-01-20Remove FDDI support.thorpej
2020-01-19Remove HIPPI support and the esh(4) driver that uses it. There have notthorpej
been any users of HIPPI for some time, and it is unlikely to be resurrected.
2020-01-19Remove the strip(4) - Starmode Radio IP - pseudo-device driver. It isthorpej
long since obsolete.
2019-12-27s/transfered/transferred/msaitoh
2019-11-10in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAITchs
and remove code to handle failures that can no longer happen.
2019-09-23Provide PRIxBUSADDR, PRIxBUSSIZE, PRIuBUSSIZE, and PRIxBSH for all archesskrll
to follow arm and (generic) mips. Reviewed by christos.
2019-04-26Enable BUFQ_PRIOCSCAN, CARP, Veriexec by default in GENERIC kernel configs.sevan
On ports without a GENERIC kernel config enable in individul files, e.g evbmips. Omit on: atari, dreamcast, emips, epoc32, evbppc/VIRTEX*, ia64, luna68x, mvme68k, mvmeppc, playstation2, riscv, sun2, sun3, x68k, zaurus due to resource constraints or port infancy.
2019-04-07Remove dead codes, that are #if 0'd for more than 19 years!rin
2019-04-07UADDR was removed.rin
2019-04-07G/C some obsolete definitions (we haven't had a fixed u. for quitethorpej
some time).