summaryrefslogtreecommitdiff
path: root/sys/arch/sgi
AgeCommit message (Collapse)Author
2007-11-25It helps if you initialise timeouts before you try using them...Joel Sing
ok miod@
2007-11-25Get rid of the kernel 'libcompat' framework, and instead use conf/files toTheo de Raadt
decide which files must be pulled into the kernel. Also conditionalize the pulling of those files based on the COMPAT_* options.
2007-11-13Expose mace_bus_dma_tag and extend the crimebus extent. This allows theJoel Sing
existing bus interfaces to be used to access the GBE hardware found in the SGI O2. ok miod@
2007-11-13Give wscons_machdep.c half a spanking. This allows wsdisplay to compile onJoel Sing
OpenBSD/sgi and prevents it from stealing the console. ok miod@
2007-11-11Add spurious interrupt detection to macebus. This allows for the detectionJoel Sing
of interrupt storms and enables the user to "boot poweroff" from ddb, instead of pulling the powercord. Initial code heavily reworked by miod@ ok miod@
2007-10-31comment fixes.Joel Sing
ok miod@
2007-10-24In cpu_switchto(), load pmap->pm_tlbpid manually, instead of expectingMiod Vallat
pmap_update() to return with this value in v0. A void function. Bwahahaha.
2007-10-22Recognize kernel options specified on the "boot" command line (e.g. boot --c),Miod Vallat
in addition to the OSLoadOptions variable; and do not default to -a -s if it is missing or empty. ok deraadt@ jsing@
2007-10-18Add support for the Moosehead PS/2 controller as found on SGI O2 workstations.Joel Sing
ok miod@ deraadt@
2007-10-18No need to include <machine/pte.h> here.Miod Vallat
2007-10-14registred -> registeredMiod Vallat
2007-10-14Disable timer/compare interrupts on the macebus. This prevents interruptJoel Sing
storms from occurring on IRQ 6. ok miod@
2007-10-13Various typos in comments; Joel SingMiod Vallat
2007-10-10Make context switching much more MI:Artur Grabowski
- Move the functionality of choosing a process from cpu_switch into a much simpler function: cpu_switchto. Instead of having the locore code walk the run queues, let the MI code choose the process we want to run and only implement the context switching itself in MD code. - Let MD context switching run without worrying about spls or locks. - Instead of having the idle loop implemented with special contexts in MD code, implement one idle proc for each cpu. make the idle loop MI with MD hooks. - Change the proc lists from the old style vax queues to TAILQs. - Change the sleep queue from vax queues to TAILQs. This makes wakeup() go from O(n^2) to O(n) there will be some MD fallout, but it will be fixed shortly. There's also a few cleanups to be done after this. deraadt@, kettenis@ ok
2007-10-02Apply (with slight variants) this elimination of bzero() with M_ZERO:Kenneth R Westerback
- if ((mapstore = malloc(mapsize, M_DEVBUF, - (flags & BUS_DMA_NOWAIT) ? M_NOWAIT : M_WAITOK)) == NULL) + if ((mapstore = malloc(mapsize, M_DEVBUF, (flags & BUS_DMA_NOWAIT) ? + (M_NOWAIT | M_ZERO) : (M_WAITOK | M_ZERO))) == NULL) return (ENOMEM); - bzero(mapstore, mapsize);
2007-07-31typo fixes from joel@ionix.com.auTheo de Raadt
2007-07-30Shuffle the order in which we look for header files, when doingThordur I. Bjornsson
kernel builds locally this doesnt change much but over NFS this cuts about 12% of the build time on my setup (i386). OK miod@, deraadt@.
2007-07-18Do not bother trying to make the tlb handler fit - they are too largeMiod Vallat
and the r5000 errata workaround made them non-relocatable, so always copy trampolines. This will be revisited when the tlb refill code will be selected at runtime (soon).
2007-07-18bus_dmamem_map() maps with a single segment in directly-translated XKPHYSMiod Vallat
space, either cache coherent for regular mappings and uncached for BUS_DMA_COHERENT mappings, as done on all other platforms with direct mappings.
2007-07-17emu(4) works on sgi.Jacob Meuser
requested by jsg@ the digital out port is obscured by the small PCI card access slot on the moosehead case, but we don't support the digital ports anyway
2007-07-16Change idle_mask to be made of the cop0 SR bits unshifted and the cop0 IC bitsMiod Vallat
shifted, instead of the other way around; this shaves a few instructions.
2007-07-10Don't brelse() a buf we don't own in readsgilabel() by mistake.Miod Vallat
2007-07-09change the behaviour of the LED on the O2 so that it's red in user modeJasper Lievisse Adriaanse
and green when idling. from Joel Sing <joel at ionix.com.au> ok miod@
2007-06-21Enable memory above 256MB again now that bus_dma has been fixed.Miod Vallat
2007-06-21Extent sgi bus_dma to cope with different views of memory: non-contiguousMiod Vallat
for the cpu, contiguous from different bases for devices. This allows memory above 256MB to be used with bus_dma (and we had really been lucky with the first few large-memory builds). Information about memory accesses taken from Linux.
2007-06-20Do not hardcode imask[] size when intializing it.Miod Vallat
2007-06-20b_cylinder does not need to be set on the callpath down into drivers.Theo de Raadt
cpu_disklabel can go away, since nothing anymore needs to use it; ok miod
2007-06-20Make sure IPL_CLOCK blocks device interrupts.Miod Vallat
2007-06-18this is the sgi disklabel, mips64 is not the sameTheo de Raadt
2007-06-18this is the sgi disksubr, not some mythical "all mips64 architectures can ↵Theo de Raadt
use it" balony
2007-06-18Use a shorter form to load XKPHYS constants in .S code, shaves a few textMiod Vallat
bytes, no functional change.
2007-06-18Disable instruction reordering around cpl assignments.Miod Vallat
2007-06-17Disable memory above 256MB for now, it triggers bugs (probably related toMiod Vallat
cache operations).
2007-06-01some architectures called setroot() from cpu_configure(), *way* before someTheo de Raadt
subsystems were enabled. others used a *md_diskconf -> diskconf() method to make sure init_main could "do late setroot". Change all architectures to have diskconf(), use it directly & late. tested by todd and myself on most architectures, ok miod too
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-29start of dumpconf() unification, which one day we can pray will be MITheo de Raadt
(and part of setroot); ok miod
2007-05-29Use atomic operations to operate on netisr, instead of clearing it at splhigh.Miod Vallat
This changes nothing on legacy architectures, but is a bit faster (and simpler) on the interesting ones.
2007-05-29code typoTheo de Raadt
2007-05-28bio for all archs, ok krw@ kettenis@ sounds good marco@ go for it deraadt@Todd T. Fries
2007-05-27Make sure the minaddr hint for uvm_km_suballoc() calls is always initialized.Miod Vallat
ok pedro@
2007-05-27Print reserved memory size correctly.Miod Vallat
2007-05-27Always use XKPHYS addresses to perform cache operations now, for consistency.Miod Vallat
2007-05-27back out bio, breaks dlg's sparc64 v215Todd T. Fries
prompted by/ok dlg@ deraadt@
2007-05-26Dynamic buffer cache. Initial diff from mickey@, okay art@ beck@ toby@Pedro Martelletto
deraadt@ dlg@.
2007-05-26prodded by marco, enable bio everywhereTodd T. Fries
grudgingly ok deraadt@
2007-05-23Print real/available memory in MB as well as bytes in dmesg, and unifyPeter Valchev
architectures to print it the same way. ok henning, miod; i386 part from tom
2007-05-20Remove unused badaddr().Miod Vallat
2007-05-20Remove irrelevant code and defines.Miod Vallat
2007-05-20Check for codec presence in match(), and don't attach if none is found.Miod Vallat
ok kettenis@
2007-05-20option AHC_CTRL_ID is not used.Miod Vallat