summaryrefslogtreecommitdiff
path: root/sys/arch/luna88k
AgeCommit message (Collapse)Author
2017-06-29put SYSTEM_SWAP_DEP out of its misery, it died in 1997, along with config.oldMarc Espie
"go for it" deraadt@
2017-06-28Delete '0x' in DIAGNOSTIC panic message; ipl value is printed in decimal.Kenji Aoyama
2017-06-17Fix comment. This gap is not only on LUNA-88K2 but also on LUNA-88K.Kenji Aoyama
2017-06-11make vers.o not depend on gap.o using a trick, because it is piece ofTheo de Raadt
fiction participating only in the linkphase. tricks from rpe and espie
2017-06-11Use umask 077 instead of cp -p when installing the kernel as root.Alexander Bluhm
Otherwise owner of /bsd could be the build user with permissions inherited from the compile directory. OK deraadt@ tb@
2017-06-10Use software interrupt to process TX/RX data between sio and tty(4)Kenji Aoyama
layer. This is a straightforwad port of current NetBSD/luna68k implementation by Izumi Tsutsui. Tested on both LUNA-88K and LUNA-88K2.
2017-06-05The arm* architectures edit the ld.script, creating a copy in the compileTheo de Raadt
directories. Copy it in the same way on other architectures, for the same effect. Something upcoming will want that file there anyways.
2017-06-04Sync with current NetBSD/luna68k code.Kenji Aoyama
2017-06-03Create gap.S and gap.o with umask 077. Create lorder and bsd* with umask 007.Theo de Raadt
Prying eyes cannot look at the kernels in the compile directory. ok tb rpe, kernel developers seem unimpacted
2017-05-29Kill SPINLOCK_SPIN_HOOK, use CPU_BUSY_CYCLE() instead.Martin Pieuchot
ok visa@, kettenis@
2017-04-30Rename Debugger() into db_enter().Martin Pieuchot
Using a name with the 'db_' prefix makes it invisible from the dynamic profiler. ok deraadt@, kettenis@, visa@
2017-03-20Do not map resources which are actually not used within the kernel. SavesMiod Vallat
24KB of page tables memory. help and luna88k-2 tests aoyama@; ok aoyama@
2017-03-20Fix previous. Commited from the wrong tree.Miod Vallat
2017-03-20Remove unused defines. Some of them can be traced to MVME188 and make noMiod Vallat
sense on Omron hardware. ok aoyama@
2017-03-20Replace hardcoded addresses with symbolic constants from <machine/board.h>Miod Vallat
for enhanced grepability and fewer bad surprises. ok aoyama@
2017-03-19Put the address of the per-cpu clock and interrupt registers into the cpu_infoMiod Vallat
struct, rather than fetching them from arrays every time they are needed. ok aoyama@
2017-03-16Unroll two small bus_space_{read_write}_multi operations in a hot code path.Miod Vallat
This causes a tiny speedup. ok aoyama@
2017-03-16Use a power of two and left shift, rather than integer multiplication, forMiod Vallat
the bus_space access stride. This allows better instruction scheduling by the compiler. ok aoyama@
2017-03-16Fix passing entropy from boot loader to the kernel:Miod Vallat
- make sure the kernel has a PT_OPENBSD_RANDOMIZE phdr. - load /etc/random.conf in all cases, not only manual boot (oops). ok aoyama@
2017-03-15Fix building profiling kernels by passing the -p flag to config(8)Theo Buehler
if the kernel's name ends in .PROF. problem reported by jmc via mpi ok mpi
2017-03-15We do not need while loop around uiomove(9) in lcdwrite().Kenji Aoyama
Pointed out by Enami Tsugutomo while porting this driver to NetBSD/luna68k by Izumi Tsutsui. Tested by me.
2017-03-11Fix uninitilized variables (confusion between enc and p->encodingAlexandre Ratchov
and between prec and p->precision). Found by jsg@, thanks.
2017-02-28Switch geteblks()'s size argument from int to size_t. It's called withMartin Natano
unsigned variables as argument in most places anyway. Decrease the chance of signedness/range mismatch issues. ok stefan
2017-02-10Unbreak 'config -p'.Martin Pieuchot
ok tb@, jca@
2017-02-08Now pcexmem(4) and pcexio(4) are attached at cbus(4), we do not need toKenji Aoyama
include "pcex.h" here.
2017-01-22Introduce the KEEPKERNELS variable: if this is set either in mk.conf orTheo Buehler
the environment, 'make cleandir' does not descend into kernel build directories. Thus, kernel object files survive 'make build' on slower architectures. WARNING: If you set this variable, you run the risk of breaking 'make release': Be sure to run 'make cleandir' from /sys/arch/$(machine)/compile before doing 'make release'. This issue will be addressed shortly. requested by kettenis; ok deraadt
2017-01-15Harmonize the way frame buffer drivers display resolution and colorFrederic Cambus
depth when attaching. OK visa@, deraadt@
2017-01-13Ansify cpu_sysctl() on alpha, arm, arm64, luna88k and sparc64.Frederic Cambus
OK mpi@
2017-01-09Sync with NetBSD/luna68k changes.Kenji Aoyama
>> Fix (mostly harmless) off-by-one size check in XPIOCDOWNLD ioctl. >> Consistently use sc_shm_size initialized at device attach. http://mail-index.netbsd.org/source-changes/2017/01/08/msg080666.html http://mail-index.netbsd.org/source-changes/2017/01/08/msg080667.html
2016-12-17Add new device xp(4), preliminary support for LUNA's I/O processor.Kenji Aoyama
This is a straightforward port of NetBSD/luna68k by Izumi Tsutsui(*), and makes LUNA's I/O auxiliary processor (called XP, actually HD647180) possible to load and run programs. (*): http://mail-index.netbsd.org/source-changes/2016/12/03/msg079493.html
2016-12-03luna88k bootloader needs __ashldi3 to compile sys/lib/libsa/ufs.c 1.26.Kenji Aoyama
2016-11-29Build kernel with DEBUG=-g by default.Martin Pieuchot
This will allow us to extract type informations from DWARF2 sections. It also makes developer life easier as debug information are now included in every object. Resulting kernels will be stripped using strip(1) instead of ld(1). Kernel build time increases by approximately 10%. However it is still possible to disable this by defining DEBUG="". ok kettenis@, bluhm@, natano@, jasper@, reyk@, deraadt@
2016-11-15Clean up the kernel Makefile's:Martin Natano
- Remove the 'lint' target. lint has been removed with OpenBSD 5.2. - Remove the 'tags' target. It does nothing of value. - Replace 'clean::' with 'clean:', as requested by espie and millert, and remove files from the 'clean' target, that are never generated. - Don't create a file called 'depend' in 'make depend', but just do nothing instead. ok mpi tb
2016-11-06Do not create machine@ symlinks in obj as root during includes:, butTheo Buehler
defer their creation to later, so that they are owned by BUILDUSER. This eliminates the last root-owned files in obj/ from 'make build'. In addition, place a MACHINE == hppa test in hppa/stand/Makefile.inc to avoid creating bogus symlinks on all other archs. joint work with & ok natano, "let's try it" deraadt
2016-11-05Two tweaks for compile/Makefile.inc:Martin Natano
1) Replace '.elif !exists(${OBJDIR}/Makefile)' with just '.else'. espie pointed out, that if the file existed, make wouldn't be reading this file, so the check is superflous. Less clutter. 2) Unconditionally define the 'clean' and 'cleandir' targets, also when obj doesn't exist. This changes the behaviour of 'make clean' to be successful (doing nothing) without obj@ or obj/. ok tb millert deraadt
2016-10-27We don't generate an eddep script for kernel builds nowadays. The lastMartin Natano
reference to eddep in the kernel Makefile I could find is in 4.3BSD, released some 30 years ago. ok tb millert
2016-10-24make cleandir should skip the version file; ok otto millertTheo de Raadt
2016-10-15cleandir: target for kernel compile directoriesTheo de Raadt
ok natano
2016-10-14Kernel builds now happen in compile/CONFIG/obj@ -> /usr/obj/... [or ./obj/,Theo de Raadt
if srctree is not rooted at /usr/src]. As a result, stock GENERIC & RAMDISK kernels are commited to the tree, to ensure the src tree can be "readonly" during builds, with all writes occuring inside the obj space. config -b options are handled by ../Makefile.inc. The canonical new way to configure one of these kernels is: % cd /sys/arch/amd64/compile/GENERIC.MP % doas make obj % make config % make % doas cp obj/bsd /bsd The build infrastructure will use this new mechanism in a de-escalation way using BUILDUSER. Much help from natano and tb.
2016-10-09Apply consistency to forever loops with continue and NOTREACHEDTom Cosgrove
Same thought from kettenis@, ok krw@ phessler@ millert@
2016-09-19Remove unused getdev() audio driver functions.Alexandre Ratchov
2016-09-14Remove drain(), query_encoding(), mappage() and get_default_params()Alexandre Ratchov
methods from all audio drivers and from the audio_if structure as they are never called.
2016-09-04Remove support for tape block devices. Nobody mount(8)s tapes any longer.Christian Weisgerber
ok deraadt@ guenther@
2016-09-04Modify to ANSI-style function declarations. No binary change.Kenji Aoyama
2016-09-03remove cnw driver. it was never enabled anywhere except on amd64 (and onlyTed Unangst
there by accident) where it hasn't seen much use...
2016-09-02Add switch(4) cdev entryKazuya Goda
ok deraadt@ yasuoka@ reyk@
2016-09-01space -> tabKenji Aoyama
2016-08-29Change le(4) buffer address to 0x71010000, which is the same addressKenji Aoyama
with NetBSD/luna68k. LUNA has 128KB so-called '3 port RAM' starting at 0x71000000. Originally, first 64KB of this area is designed for I/O processor HD647180, and next 64KB is designed for LANCE. This makes possible to support I/O processor in the future:-)
2016-07-30Prep for relro: make sure it's off for any non-PIE stand/ programPhilip Guenther
ok millert@ kettenis@
2016-07-16Fix typo in comment in three machdep.c files:Tom Cosgrove
s/names are this level/names at this level/ from aalm@ - thanks