summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2007-12-22Replace _bus_dmamap_load() with an implementation based onMark Kettenis
_bus_dmamap_load_buffer() like everybode else does.
2007-12-21Change the EF_xxx constants to be real offsets within the trapframe, insteadMiod Vallat
of offsets / sizeof(register_t), and nuke the REG_OFF macro. No functional change.
2007-12-21Add a hack to discover all devices on (some) K-class servers.Mark Kettenis
2007-12-21Don't use getpropstring to get the CPU model name; it's evil. Instead, rely onMark Kettenis
the name passed in struct mainbus_attach_args.
2007-12-20Get rid of disable_interrupt() and have caller use get_psr() and set_psr();Miod Vallat
this allows us to get rid of the dependency of asm_macro.h on asm.h, which was really only there to bring in psl.h.
2007-12-20Do not protect this file with _KERNEL; other header files which include it do itMiod Vallat
in a _KERNEL-only section, and we want to eventually be able to use it from the bootblocks.
2007-12-20Print the VME vector number used when attaching.Miod Vallat
2007-12-20Flush the source page before copying in pmap_copy_page(). This should notMiod Vallat
be necessary, but not doing it appears to break 88204 (not 88200) and split CMMUs.
2007-12-20Do not wait for the end of the universe if delay(0).Miod Vallat
2007-12-20Add an empty pccbb_attach_hook.Mark Kettenis
2007-12-20Add an empty pccbb_attach_hook.Mark Kettenis
2007-12-20Stricter range checks in mmap function.Miod Vallat
2007-12-19Overhaul interrupt handling, in order to make it (arguably) simpler andMiod Vallat
more board design-independent. The main changes are: - define logical interrupt sources, which match the on-board devices as well as the seven VME interrupt sources. Use these whenever possible when registering interrupts in the drivers, so that the actual interrupt mask layouts are hidden. - make the on-board and VME interrupt handlers separate. On-board interrupt handlers are not really associated to an interrupt vector, only to a given interrupt source, and only one handler can be registered for a logical interrupt source. On the other hand, VME interrupts come with a vector number, and can be shared. This allows VME devices to really use the whole 256 vectors space, starting at vector zero. - update the real interrupt masks upon interrupt handler registration and removal, so that only interrupt sources for which a handler exists may be enabled. - update the VME interrupt allocation logic to allow exclusive vector allocation. - move the Z8536 clock routines to their own file, since they are not AV400-specific; while there, calibrate the delay constant upon startup for more accurate delay(). The vme driver is the only one left with AV400 tentacles left, to be fixed very soon.
2007-12-19Use the real physical memory size for physmem, rather than what's left afterMiod Vallat
the PROM has eaten part of it, so that the reported memory size in dmesg is a nice round number.
2007-12-19The serial console address apparently does not change accross 88100 designs,Miod Vallat
so stash it in a board-independent header.
2007-12-19Allocate memory for the onboard le interface using uvm functions, instead ofMiod Vallat
stealing pages in pmap_bootstrap. While there, use up to four times more memory for these buffers if the machine has enough physical memory.
2007-12-19Looks like K-class needs the same hack as C-class. Gives us some, but not allMark Kettenis
devices.
2007-12-18Remove bogus #ifdef __i386__, such that we properly initialize the bus numberMark Kettenis
for pci busses off secundary CPUs.
2007-12-18pass pci domain to the child too, ok kettenisTheo de Raadt
2007-12-18New it(4) driver.Oleg Safiullin
Supports ITE IT8705/8712/8716/8718/8726 and SiS SiS950 hardware monitors and ITE IT8712F/8716F/8718F/8726F watchdog timer.
2007-12-18Better probe routine for lcg, now that I found the magic bit on KA46.Miod Vallat
2007-12-18move variable declarations where they belongJasper Lievisse Adriaanse
prodded by and ok dlg@
2007-12-18- powerbutton -> power buttonJasper Lievisse Adriaanse
- minor knf nit (suggested by miod@)
2007-12-18add power(4), a driver for the power button found on SGI O2's.Jasper Lievisse Adriaanse
when machdep.kbdreset is set, and the correct interrupt is fired, the machine gets shut down. with help from and ok jsing@, ok miod@
2007-12-18Expose the clock address space so that it can be used outside of clock(4).Joel Sing
ok miod@
2007-12-17Make this compile again.Miod Vallat
2007-12-16Add an empty pccbb_attach_hook.Mark Kettenis
2007-12-16Correctly count number of segments in _bus_dmamap_load(). Initialize ds_addrMark Kettenis
to 0UL instead of NULL while there. Tested by & help from dlg@.
2007-12-15Get the MVME197 memory size from the BusSwitch decoders.Miod Vallat
2007-12-15Unconditionnaly disable the instruction cache on 40MHz MVME197LE boards,Miod Vallat
so that they run stably. Definitely overkill and causing a severe performance hit (they now run about as fast as a 25MHz board with I$ enabled would), but sometimes you can't fight silicon bugs. Other boards (i.e. 50MHz ones) are not affected.
2007-12-15All MVME BUG manuals concur on SR3 being the only register needing to beMiod Vallat
preserved across BUG calls, but on the other hand the last 16 traps need to be restored to BUG values, not only trap #496.
2007-12-15Since the 88110 can not invalidate a particular tlb entry, do not stackMiod Vallat
invalidate tlb ipis, and turn them into simple ``handle once'' ipis.
2007-12-15Move the cmmu lock back from 8820x-specific code to global, and use it onMiod Vallat
MVME197DP to serialize 88410 operations.
2007-12-15move some iommu_dvmamap_validate_map()'s into DEBUG instead of DIAGNOSTIC, toTheo de Raadt
slightly improve performance ok kettenis
2007-12-15Remove a lot of symbols from the namespace, otherwise sys/sysctl.h andTheo de Raadt
rpc/pmap_prot.h collide.. "struct pmap" from the kernel should not make it out to userland. ok miod
2007-12-14Remove a lot of symbols from the namespace, otherwise sys/sysctl.h andTheo de Raadt
rpc/pmap_prot.h collide.. "struct pmap" from the kernel should not make it out to userland.
2007-12-14Cleanup some comments.Joel Sing
2007-12-14Enable console support for SGI O2 workstations. Switch between the serialJoel Sing
and graphical console based on the selection made in the ARCBIOS. Early attachment of gbe(4) is still required, otherwise we have a working graphical console. ok miod@
2007-12-14Add console/cnattach support to mkbc(4). This allows for early attachmentJoel Sing
of pckbd(4) and provides us with a console keyboard. Tested by jasper@. ok miod@
2007-12-14Have gbe(4) attach as the console if the graphical console is selected viaJoel Sing
ARCBIOS. Tested by jasper@. ok miod@
2007-12-14Store the ARCBIOS ConsoleOut environment variable so that we can refer toJoel Sing
it later on. ok miod@
2007-12-14Allow direct access to the MACE IO memory space. This allows IO devices toJoel Sing
operate prior to the bus space extents being created. ok miod@
2007-12-13Sync with the mvme188 codebase, various tweaks from the last 18 months whichMiod Vallat
had not been reported to aviion.
2007-12-13Disable write posting, this does not work on BusSwitch revision #1. The BUGMiod Vallat
should do this for us, but better play safe.
2007-12-12Disable the built-in speaker when initializing the chip, before myMiod Vallat
neighbours start visiting me with large axes.
2007-12-12Remove possible trailing \r from the PROM commandline arguments.Miod Vallat
2007-12-12Mask the clock interrupts until cpu_initclocks() is invoked.Miod Vallat
2007-12-12Make non-88110 kernels (aviion, luna88k) kernels compile again.Miod Vallat
2007-12-11if we pxebooted, and can find the interface, put it in a "pxeboot" groupTheo de Raadt
so that later applications can try to do the right thing for reyk
2007-12-11reword license to change regents to authors, and remove advertising clause.Ted Unangst
cleared with all original authors. ok deraadt