summaryrefslogtreecommitdiff
path: root/sys/arch/mips64
AgeCommit message (Collapse)Author
2008-01-15Revert r1.15 and flush pages (if cached) in pmap_remove_pv on every invocation,Miod Vallat
instead of when removing the last page. It looked correct, but is defeated by ``index'' cache invalidates.
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-14Store the ARCBIOS ConsoleOut environment variable so that we can refer toJoel Sing
it later on. ok miod@
2007-11-25spelling fixes, from Martynas Venckus;Jason McIntyre
2007-11-24Recognize the wait r5k instruction in ddb and use it in cpu_idle_cycle.Miod Vallat
ok jsing@ a while ago (and this diff is much much older)
2007-10-25Be sure to enable interrupts on return from ddb if they were enabled beforeMiod Vallat
the break.
2007-10-24pipleine -> pipelineMiod Vallat
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-22stoped -> stoppedJoel Sing
ok miod@
2007-10-18Make sure interrupts are really enabled at the beginning of proc_trampoline,Miod Vallat
tested by deraadt@ jsing@
2007-10-18No need to include <machine/pte.h> here.Miod Vallat
2007-10-18Get rid of the silly union for mips pte. No functional change exceptMiod Vallat
pmap.h now includes pte.h.
2007-10-14registred -> registeredMiod Vallat
2007-10-13There is no need to fiddle with spl in cpu_idle_{enter,leave}, actually.Miod Vallat
2007-10-13Do not splhigh() before invoking sched_exit(), sched_exit() will do it better.Miod 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-09-22M_ZERO -> bzero.Kenneth R Westerback
ok art@
2007-09-10Introduce a md pmap hook, pmap_remove_holes(), which is supposed to markMiod Vallat
the holes a MMU may have from a given vm_map. This will be automagically invoked for newly created vmspaces. On platforms with MMU holes (e.g. sun4, sun4c and vax), this prevents mmap(2) hints which would end up being in the hole to be accepted as valid, causing unexpected signals when the process tries to access the hole (since pmap can not fill the hole anyway). Unfortunately, the logic mmap() uses to pick a valid address for anonymous mappings needs work, as it will only try to find an address higher than the hint, which causes all mmap() with a hint in the hole to fail on vax. This will be improved later.
2007-09-03call savectx() in cpu_fork(), so that the new process can take signalsMiod Vallat
correctly in child_return()'s userret(); makes the sys/kern/signal/earlysig regression test pass. From a 2.5 years old diff I should have commited much earlier.
2007-09-03Typos from miod. 'requiered' -> 'required' in some comments.Kenneth R Westerback
2007-07-18Prefer ``hit'' cache operations when flushing kernel memory.Miod Vallat
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-16Replace bunches of nops with the ITLBNOPFIX macro, which generates fewerMiod Vallat
nops unless we compile for early RM7000 flavours, which we usually don't do.
2007-07-16On exit from switch_exit(), do not bother saving context and immediatelyMiod Vallat
jump into the scheduler loop.
2007-07-16Do not reenabled interrupts when processing a ddb trap, for bad things mayMiod Vallat
happen; from NetBSD
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-05Compute the correct address and try and print a matching symbol for j andMiod Vallat
jal instructions.
2007-07-01In cpu_switch(), store the saved cpl in the pcb as a 64 bit store, so thatMiod Vallat
the high order bits are not undefined when invoking hw_setintrmask() on return.
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-20In vunmapbuf(), explicitely remove mappings before invoking uvm_km_free().Miod Vallat
Even if the latter would end up removing the mappings by itself, it would do so using pmap_remove() because phys_map is not intrsafe; but some platforms use pmap_kenter_pa() in vmapbuf(). By removing the mappings ourselves, we can ensure the remove function used matches the enter function which has been used. Discussed and theoretical ok art@
2007-06-20Protect pool operations with splvm.Miod Vallat
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-18simplify error return case from writedisklabel()Theo de Raadt
2007-06-17Eliminate a few straggling 'labelsector' field declarations fromKenneth R Westerback
cpu_disklabel's. 'labelsector' is not used anywhere according to grep. 'go for it' deraadt@
2007-06-17Coerce this into compiling.Miod Vallat
2007-06-17significantly simplified disklabel infrastructure. MBR handling becomes MITheo de Raadt
to support hotplug media on most architectures. disklabel setup and verification done using new helper functions. Disklabels must *always* have a correct checksum now. Same code paths are used to learn on-disk location disklabels, to avoid new errors sneaking in. Tested on almost all cases, testing help from todd, kettenis, krw, otto, dlg, robert, gwk, drahn
2007-06-14Fix label name in writedisklabel().Miod Vallat
2007-06-14some spaces in the wayTheo de Raadt
2007-06-14excessive blank lines making the versions differentTheo de Raadt
2007-06-14set the prototype disklabel to version 1Theo de Raadt
2007-06-14do not depend on previous loop variable, use a constant insteadTheo de Raadt
2007-06-12all disksubr.c did their b_flags manipulation differently (and wrong).Theo de Raadt
correct and unify; ok thib miod
2007-06-09The differences in the last non-homogeneous bounds_check_with_label()Kenneth R Westerback
routines (alpha, vax) prove to be not worth keeping. Move bounds_check_with_label() into the MI world. Eliminate unreliable and almost certainly useless checks for overwriting a disklabel. After discussion with deraadt@
2007-06-09unify DOSPTYP_FAT* code (some architectures missed a filesystem type or two)Theo de Raadt