summaryrefslogtreecommitdiff
path: root/sys/arch/zaurus
AgeCommit message (Collapse)Author
2023-06-03adapt to ${CC_WNO_ADDRESS_OF_PACKED_MEMBER}lukem
Simplify CWARNFLAGS to use ${CC_WNO_ADDRESS_OF_PACKED_MEMBER} which works for both clang and gcc, and remove compiler-specific equivalents.
2023-06-03bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBERlukem
Provide a single variable CC_WNO_ADDRESS_OF_PACKED_MEMBER with options for both clang and gcc, to replace CLANG_NO_ADDR_OF_PACKED_MEMBER CC_NO_ADDR_OF_PACKED_MEMBER GCC_NO_ADDR_OF_PACKED_MEMBER Using the convention CC_compilerflag, where compilerflag is based on the full compiler flag name.
2023-04-20Provide a shared pmap_devmap implementation and convert all pmap_devmapskrll
arrays to use DEVMAP_ENTRY{,_END}
2023-03-28s/interrput/interrupt/ and s/accesss/access/ in comments.andvar
2023-02-11Apply ldscript fixes for binutils-2.39. See PR 57223.mlelstv
2023-02-09Adjust _all_ cinclude of *.local filesabs
- Ensure always at end - Use tab rather than spaces - Add consistent comment "Pull in optional local configuration - always at end" The only functional change is that a local file which tried to override an existing setting (eg with "no foo") would have failed in some cases before, but now will work
2023-02-09Ensure GENERIC.local is always at the end of GENERICabs
Where a GENERIC config had an existing inclusion of GENERIC.local, ensure it is always at the end of the file, with a consistent comment: # Pull in optional local configuration cinclude "arch/landisk/conf/GENERIC.local" This allows GENERIC.local to correctly override all options (This pass does not affect any GENERIC which did not already have an include of GENERIC.local)
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-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-03s/bounaries/boundaries/ in comments.andvar
2022-05-28fix various typos, mainly in comments.andvar
2022-03-19Fix locking after opendisk(), VOP_IOCTL() needs an unlocked vnode,hannken
vn_rdwr() needs flag IO_NODELOCKED.
2022-02-12sys: Fix various abuse of struct device internals.riastradh
Will help to make struct device opaque later.
2022-01-02fix the build (KASSERT)christos
2021-11-20- Accept anti-aliased fonts.rin
- Clear garbage from screen when attach.
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-06-29Remove uscanner(4) drivernia
This exists for compatibility with a Linux interface which was apparently deprecated in Linux 2.6. There are various mailing list threads going back to 2004 where the usefulness of this driver is discussed, but the conclusion is that scanner software has all moved to using ugen(4) instead, and enabling this driver will not help you scan things.
2021-06-21fix proplib deprecationchristos
2021-06-05there is no SPL_SOFTchristos
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-13Make LCD BrightnessUp/BrightnessDown work on C7x0/860.tsutsui
Patch from steleto: https://gist.github.com/steleto/10f62a074bff0c188fcc10c14ef40b5a and also confirmed by me on SL-C700. Worth to pullup to netbsd-9.
2021-04-12remove shadowed (common) declarations of various libsa variablesmrg
from various boot programs. for macppc and zaurus, avoid building with -fcommon any more.
2021-01-21remove "no options" for compat_ossaudio now it's disabled by defaultnia
2021-01-20remove compat_ossaudio from kernel modulesnia
this is only useful with compat_linux and gets autoloaded when compat_linux is loaded, so there's no reason to bake it into kernels any more.
2020-11-21malloc(9) -> kmem(9)thorpej
2020-09-26G/C arm/atomic.hskrll
2020-09-06add support for new GCC 9 warnings that may be too much to fixmrg
right now. new address-of-packed-member and format-overflow warnings have new GCC_NO_ADDR_OF_PACKED_MEMBER amd GCC_NO_FORMAT_OVERFLOW variables to remove these warnings. apply to a bunch of the tree. mostly, these are real bugs that should be fixed, but in many cases, only by removing the 'packed' attribute from some structure that doesn't really need it. (i looked at many different ones, and while perhaps 60-80% were already properly aligned, it wasn't clear to me that the uses were always coming from sane data vs network alignment, so it doesn't seem safe to remove packed without careful research for each affect struct.) clang already warned (and was not erroring) for many of these cases, but gcc picked up dozens more.
2020-07-27Don't remove the _LKM #ifdefs, but do s/_LKM/_MODULE/skrll
2020-07-23unifdef -U_LKMskrll
2020-05-03Avoid common symbol declarations.joerg
2020-04-21Use -Wno-error=address-of-packed-member for a number of more bootjoerg
loaders.
2020-04-18PMAP_DEBUG has been deleted on armskrll
2020-04-18Trailing whitespaceskrll
2020-04-04mark nsmb major obsoletejdolecek
2020-03-25remove 'file-system SMBFS' and 'pseudo-device nsmb' from all kernel configsjdolecek
to prepare for their eventual removal
2020-01-29remove urio(4), a driver for the Rio500 MP3 player.maya
At this point it is highly unlikely this 1999 device still has users, but it still comes up in the context of maxv's USB-fuzzing (and any device could pretend to be a urio(4)), so it's best to get rid of it. Renamed all major entries to obsolete, as was done in previous removals. This still requires an update to sanitizers, but they're located in "external", perhaps it should be first committed upstream? Proposed on tech-kern a month ago.
2020-01-12Revert "Compile with -O2 by default" change in previous rev 1.11.tsutsui
COPTS is defined properly after sys/arch/arm/conf/Makefile.arm rev 1.53. See discussion in source-changes-d@ for details: https://mail-index.netbsd.org/source-changes-d/2020/01/thread1.html#011984
2020-01-03Drop CTF sections from this size restricted kernel (especially as themartin
size check is on the total size of the binary, not any content/sections - is this a bug?) Compile with -O2 by default (to shrink the kernel to a usable size again and unbreak the build)
2019-12-22Cleanup i2c bus acquire / release, centralizing all of the logic intothorpej
iic_acquire_bus() / iic_release_bus(). "acquire" and "release" hooks no longer need to be provided by back-end controller drivers (only if they need special handling, e.g. powering on the i2c controller). This results in the removal of a bunch of rendundant code from each back-end controller driver. Assert that we are not in hard interrupt context in iic_acquire_bus(), iic_exec(), and iic_release_bus().
2019-12-15Remove clause 3 and 4 leftovers from TNF licenses in more sources.tsutsui
Confirmed by martin@ in PR/54760.
2019-11-13Make zaurus kernels use symbol tables loaded by the bootloader.tsutsui
Now COPY_SYMTAB is no longer necessary and it saves ~500kbytes of GENERIC, so re-enable options DDB (i.e. revert GENERIC rev 1.85). Also fix zbsdmod.o (a kernel loader for Zaurus Linux) to load symbols at a proper address as the MI sys/lib/libsa/loadfile_elf32.c does. No particular comment on port-zaurus@: https://mail-index.netbsd.org/port-zaurus/2019/11/11/msg000086.html Note zbsdmod.c (derived from OpenBSD/zaurus) assumed that the loaded kernels had "esym" variable at the top of its data section and implicitly overwrote it with the address of loaded symbol tables. OpenBSD/zaurus kernels used the esym value written by the zbsdmod.o to initialize ksyms(4) on startup, but we will avoid such implicit MD interface between the bootloader and kernels (though we don't bother to add a symbol address value into bootinfo but just assume symbols are loaded at end[] of a loaded kernel, as per the MI libsa loadfile() implementation). Worth to pullup to both netbsd-8 and netbsd-9.
2019-11-13Fix attach failure of zaudio(4) WM8731 (C7x0/860) and WM8750 (C1000/3x00).tsutsui
The new MI iic(4) layer requires an explicit quirk info of PROBE_STRATEGY via device properties. Fixes PR kern/54658. Should be pulled up to netbsd-9.
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-11-04Fix build with VERBOSE_INIT_ARM without DIAGNOSTIC.tsutsui
2019-11-02Put back options WSDISPLAY_COMPAT_RAWKBD. It's required by Xorg server.tsutsui
Should be pulled up to netbsd-9.
2019-11-02Fix build errors with options WSDISPLAY_COMPAT_RAWKBD.tsutsui
- Add missing RAWKEY_* macro definitions (taken from OpenBSD) - Explicitly include "opt_wsdisplay_compat.h" for #ifdef WSDISPLAY_COMPAT_RAWKBD conditionals. (it is not properly pulled at least in netbsd-8) https://mail-index.netbsd.org/port-zaurus/2019/11/02/msg000083.html Should be pulled up to netbsd-8 and netbsd-9.
2019-10-28Make sure to clear bss before jumping to a kernel copied from load buffer.tsutsui
This will fix yet another boot failure issue "screen white-out after loading a kernel" https://mail-index.netbsd.org/port-zaurus/2019/10/26/msg000072.html Should be pulled up to netbsd-8 and netbsd-9.
2019-10-26Misc cleanup to avoid future confusion.tsutsui
- Remove more unnecessary debug sections - Use DBG instead of COPTS to specify -Os as defined in bsd.prog.mk - Use CFLAGS and CPPFLAGS correctly - Explicitly set -ffreestanding
2019-10-26Fix another boot failure issue of NetBSD/zaurus 8.x and later.tsutsui
It looks some cacheline alignment restriction so that zbsdmod.o in NetBSD/zaurus 8.x release cannot jump to a loaded kernel properly. Adding an explicit alingment pseudo op to put all instructions between I-cache flush and jumping to the loaded kernel into the same cacheline solves the issue. See my post in port-zaurus@ for details: https://mail-index.netbsd.org/port-zaurus/2019/10/22/msg000069.html Should be pulled up to netbsd-8 and netbsd-9.