summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k
AgeCommit message (Collapse)Author
2014-03-13get rid of the assumption that the head of the alldevs list is theDavid Gwynne
"mainbus" device. this breaks when mpath is enabled because it attaches before mainbus and therefore takes the head position. have autoconf provide device_mainbus() which looks up mainbus_cd, and use that instead. discussed with deraadt who just wants mpath stuff to move forward despite there being many ways to shine this particular turd.
2014-02-23fix a memory leakJonathan Gray
ok miod@
2014-02-20Support for /etc/random.seed in bootsd (disk-only boot blocks)Miod Vallat
2014-02-07Borrow the sparc installboot a.out nlist code, for /usr/mdec/bootxx is stillMiod Vallat
built as an a.out binary.
2014-01-21add missing arguments to debug printfsJonathan Gray
2014-01-19Initialize ci_randseed better using arc4random() + a trick. Remove theTheo de Raadt
libkern srandom() API since it is not suitable for this use. ok kettenis miod
2014-01-18if the controller is too busy to do a POLLed command, return XS_BUSYDavid Gwynne
instead of XS_NO_CCB. ok krw@
2014-01-04Add rnddata[] placeholders to make these boot blocks build again.Miod Vallat
2013-12-08reflect reality, mark as NOOBJMarc Espie
"sure" deraadt@
2013-11-30unbreakMiod Vallat
2013-11-27Instead of comparing the lower and higher addresses of all the multicastMartin Pieuchot
entries to decide if the IFF_ALLMULTI flag should be set, check if there is at least one real range between them. This should not change the behavior of any driver but if you encounter any problem, feel free to revert the offending chunk and ping me about it. ok naddy@, dlg@
2013-11-261 << 31 cleanup. Eitan Adler pointed out that there has been aTheo de Raadt
resurrection of the bad idiom in the tree. sufficient review by miod, kettenis, tedu
2013-11-16Allow initial device mappings (from pmap_table) to be backed up by BATC.Miod Vallat
Use this on luna88k to map the bitmap planes of the frame buffer used by the driver. 10% speedup under X.
2013-11-06Don't cargo-cult copy the invocation of size(1) on compiled bootblocks,Miod Vallat
when 1) they aren't in ELF format, and 2) the result does not EVEN REMOTELY matter on these architectures.
2013-11-05Replace direct references to p_size, p_offset and d_secperunit withKenneth R Westerback
DL_[GET|SET]PSIZE(), DL_[GET|SET]POFFSET(), DL_[GET|SET]DSIZE() in order to get|set correct value that includes the high bits of the value.
2013-11-03Even saner kernel layout, so that .rodata can be batc mapped by a read-onlyMiod Vallat
dbatc. Add batc mapping support for 88110 systems as well.
2013-11-02Use a linker script to align .data to a BATC boundary as well, so that noMiod Vallat
DBATC may span over parts of .rodata.
2013-11-02Create the initial page tables in the area between the end of the firmwareMiod Vallat
data area and the kernel image, whenever possible. On 88100/88200 systems, use BATC mappings to map the kernel text (and the kernel data for non-MULTIPROCESSOR kernels). 88110 to follow soon.
2013-11-02Link m88k kernels on a BATC boundary.Miod Vallat
2013-10-17Remove a.out leftovers now that libsa loadfile() will only boot ELF binaries.Miod Vallat
2013-10-17Remove support for a.out and ecoff. We only do elf now.Theo de Raadt
ok miod
2013-10-15Rewrite the awk script that generates the data for option DDB_STRUCT:Philip Guenther
- switch to perl for better data structures and (thus) speed - fix a couple glitches in the interpretation of the stabs output - compress the strings by putting them in one big array and overlaying suffixes - all sizes and offsets are <64k, so use u_short for them This results in ~60% reduction in the resulting text size and it now takes less than a second to create on fast platforms. ok miod@
2013-10-07Do not invoke ttymodem() directly, but l_modem from the current linedisc.Miod Vallat
2013-09-29various fixes to sync usage() with SYNOPSIS, and make these pages a bitJason McIntyre
more consistent; feedback/ok miod
2013-09-28In boot(), do not iterate over alldevs if it's empty (i.e. halting from ddbMiod Vallat
with ddb entered early with boot -d or from UKC).
2013-09-26Clear SYSFAIL upon boot, for real.Miod Vallat
2013-09-24Sync the MI LANCE code ( le(4) ) with NetBSD, except for the following:Miod Vallat
- the am7990_get() - now lance_get() - is unchanged. - the interrupt acknowledge logic is unchanged, and will disable interrupts, then acknowledge all interrupt conditions. Add ILACC (79900) support (from NetBSD). Both LANCE (am7990.c) and ILACC (am79900.c) code share as much common code (lance.c) as possible. This affects all le(4) attachments, but the changes are mostly mechanical, to split am7990-specific parts from lance-agnostic parts. Compile tested on all affected platforms. Tested on alpha, hp300, luna88k, mvme88k, sparc, sparc64 and vax.
2013-09-21Allow for an out-of-softc indirection to reach the software copy of theMiod Vallat
important (and write-only) register state; this will allow this driver to be used as a console before it attaches, to be used shortly.
2013-09-05Most network drivers include netinet/in_var.h, but apparently theyAlexander Bluhm
don't have to. Remove these include lines from mvme68k, mvme88k, sparc drivers. test and OK miod@
2013-08-15Be sure to always invoke cache routines with properly rounded addresses;Miod Vallat
the bus_dmamap_sync() bowels would sometimes use incorrectly rounded addresses, which has been apparently harmless so far, but better be safe than sorry.
2013-06-23Stop using -traditional-cpp on gcc3/4 platforms.Miod Vallat
Add CWARNFLAGS to the command line when using -xassembler-with-cpp. We are mostly interested in -Werror here.
2013-06-16Add IPL_MPSAFE for some architectures that I missed in the first round.Mark Kettenis
pointed out by & ok miod@
2013-06-11switch mvme88k to the MI dart(4) code. Tested on MVME181 and MVME188.Miod Vallat
2013-06-11final removal of daddr64_t. daddr_t has been 64 bit for a long enoughTheo de Raadt
test period; i think 3 years ago the last bugs fell out. ok otto beck others
2013-06-03more fuse in more places. credit: miodTed Unangst
2013-06-03Convert some internal APIs to use timespecs instead of timevalsPhilip Guenther
ok matthew@ deraadt@
2013-06-01add missing license (PD) blockJasper Lievisse Adriaanse
ok guenther@
2013-05-25Minimal support for MVME224 and MVME236 memory boards.Miod Vallat
2013-05-24Fix dow register value in resettodr() - kernel computes it zero-based, butMiod Vallat
chip want it one-based.
2013-05-23TOD clock support for AngelFire boardsMiod Vallat
2013-05-18Missing bits intended to go with the previous commit but lost in diff splitting:Miod Vallat
Split inittodr/resettodr code from actual tod routines, to allow for multiple tod routines in the near future. Use the mi clock_ymdhms_to_secs and clock_secs_to_ymdhms routines.
2013-05-17Preliminary support for MVME180 and MVME181 boards. On-board serial portsMiod Vallat
and VME controller are supported; tod chip isn't supported yet (coming soon). MVME236 memory boards are not supported and won't likely be (unless I get my hands on one). MVME181-1 boots multiuser (slowly) with MVME328 SCSI and MVME376 Ethernet despite only having 8MB of memory onboard. MVME180 untested; might need tweaking to get MVME SCSI and Ethernet boards supported. Many thanks to Matti Nummi for lending me an MVME181 board.
2013-05-17Replace the bunch of md_* function pointers with a `struct board' containingMiod Vallat
function pointers for all the board-specific code. Add a bunch of `struct board' methods to cover most, if not all, of the `per-board' logic. This allows most of the md drivers to be cleaned up and no longer need to embed board-specific knowledge.
2013-05-17Move interrupt-related defines from <machine/cpu.h> to <machine/intr.h>.Miod Vallat
No functional change.
2013-05-17Split inittodr/resettodr code from actual tod routines, to allow forMiod Vallat
multiple tod routines in the near future. Use the mi clock_ymdhms_to_secs and clock_secs_to_ymdhms routines.
2013-05-17Extend cmmu routines to return the caching mode to use for page tables.Miod Vallat
Alter the 88200-specific code to enforce cache-inhibited page tables for extremely old 88200 versions, and to disable write-back caching on systems where xmem instructions do not behave correctly when applied to write-back cached addresses. No change introduced on 88110 systems, as well as most 88100 systems; the affected systems are 88100 systems with 88100 revision < 10 and/or 88200 revision < 7; that is, only early MVME181 and MVME188 (not 188A) systems.
2013-05-15Initialize a teeny few more globals to reasonable values to allow for printf()Miod Vallat
to work as soon as cn_tab is initialized. Allows us to correctly printf or panic early on unrecognized systems. This used to be the case but got lost a long time ago.
2013-05-14typo in multiple inclusion guard symbol name.Miod Vallat
2013-05-14Older BUG version do not implement the `out cr/lf' BUG system call, and, worse,Miod Vallat
do not return from it, for extra fun. The good thing is that the existing kernel console code logic issueing \n as \r\n works nicely with the regular BUG output routines, so there was no reason to use this particular BUG routine in the first place.
2013-05-12Make sboot really match its documented behaviour when booting without anMiod Vallat
interface name.