summaryrefslogtreecommitdiff
path: root/sys/arch/mips64
AgeCommit message (Collapse)Author
2008-09-23Fix uninitialized variable if the TOD clock value is horribly wrong.Miod Vallat
2008-09-07- replace dtoa w/ David's gdtoa, version 2008-03-15Martynas Venckus
- provide proper dtoa locks - use the real strtof implementation - add strtold, __hdtoa, __hldtoa - add %a/%A support - don't lose precision in printf, don't round to double anymore - implement extended-precision versions of libc functions: fpclassify, isnan, isinf, signbit, isnormal, isfinite, now that the ieee.h is fixed - separate vax versions of strtof, and __hdtoa - add complex math support. added functions: cacos, casin, catan, ccos, csin, ctan, cacosh, casinh, catanh, ccosh, csinh, ctanh, cexp, clog, cabs, cpow, csqrt, carg, cimag, conj, cproj, creal, cacosf, casinf, catanf, ccosf, csinf, ctanf, cacoshf, casinhf, catanhf, ccoshf, csinhf, ctanhf, cexpf, clogf, cabsf, cpowf, csqrtf, cargf, cimagf, conjf, cprojf, crealf - add fdim, fmax, fmin - add log2. (adapted implementation e_log.c. could be more acruate & faster, but it's good enough for now) - remove wrappers & cruft in libm, supposed to work-around mistakes in SVID, etc.; use ieee versions. fixes issues in python 2.6 for djm@ - make _digittoint static - proper definitions for i386, and amd64 in ieee.h - sh, powerpc don't really have extended-precision - add missing definitions for mips64 (quad), m{6,8}k (96-bit) float.h for LDBL_* - merge lead to frac for m{6,8}k, for gdtoa to work properly - add FRAC*BITS & EXT_TO_ARRAY32 definitions in ieee.h, for hdtoa&ldtoa to use - add EXT_IMPLICIT_NBIT definition, which indicates implicit normalization bit - add regression tests for libc: fpclassify and printf - arith.h & gd_qnan.h definitions - update ieee.h: hppa doesn't have quad-precision, hppa64 does - add missing prototypes to gdtoaimp - on 64-bit platforms make sure gdtoa doesn't use a long when it really wants an int - etc., what i may have forgotten... - bump libm major, due to removed&changed symbols - no libc bump, since this is riding on djm's libc major crank from a day ago discussed with / requested by / testing theo, sthen@, djm@, jsg@, merdely@, jsing@, tedu@, brad@, jakemsr@, and others. looks good to millert@ parts of the diff ok kettenis@ this commit does not include: - man page changes
2008-08-22Set PIE address range to avoid or minimize mmap pressure due to limitedKurt Miller
address space. The space between PAGE_SIZE and the non-pie fixed link address creates no mmap pressure so use that space for PIE. However on hppa the non-pie fixed link address is PAGE_SIZE so just use a small range for PIE to minimize mmap pressure. okay miod@
2008-07-28No longer clear ci_want_resched within cpu_switchto(), now that it's doneMiod Vallat
in the MI code.
2008-07-28In addition to cop0 sr, prevent cop0 ic from being modified inMiod Vallat
process_write_regs().
2008-07-25phyio -> physioMiod Vallat
2008-07-21- add proper double_t and float_t definitions for each archMartynas Venckus
- math.h shouldn't define FLT_EVAL_METHOD, but float.h should (per C99). remove from math.h, and add proper definitions in float.h ok millert@
2008-07-18Add a macro that clears the want_resched flag that need_resched sets.Artur Grabowski
Right now when mi_switch picks up the same proc, we didn't clear the flag which would mean that every time we service an AST we would attempt a context switch. For some architectures, amd64 being probably the most extreme, that meant attempting to context switch for every trap and interrupt. Now we clear_resched explicitly after every context switch, even if it didn't do anything. Which also allows us to remove some more code in cpu_switchto (not done yet). miod@ ok
2008-06-22Like alpha, db_stack_dump() on mips and sh needs complete frame informationMiod Vallat
and can not work from a stack address only. Mention this and abort instead of printing a wrong trace. (prefer kern.splassert=3 to =2 on these platforms)
2008-06-14A bunch of pool_get() + bzero() -> pool_get(..., .. | PR_ZERO)Michael Knudsen
conversions that should shave a few bytes off the kernel. ok henning, krw, jsing, oga, miod, and thib (``even though i usually prefer FOO|BAR''; thanks for looking.
2008-06-09Remove fillw(). Bonus points if you do not remember what it was used for.Miod Vallat
2008-05-04convert arm and mips64 platforms to ptoa/atopMartin Reindl
tested by maja@
2008-04-07Add a freelist member to the ARCBios memory information. For now, all ARCBiosMiod Vallat
available memory regions will be reported to be in VM_FREELIST_DEFAULT. Add a few quirks to cope with (some) IP27 and IP30 weirdness.
2008-04-07Add ``guarded'' word read and write routines, to be used by machine-dependentMiod Vallat
code soon. Similar to what ddb does, but does not need ddb to be compiled in.
2008-04-07Split clock attachment in two parts: a timecounter attachment (at mainbus),Miod Vallat
and a time-of-day chip (wherever it gets found).
2008-04-07Use CCA_CACHED as the default CCA for all cached mappings and addresses.Miod Vallat
2008-04-07Define the pte cacheability bits from the cpu.h cache coherency constants.Miod Vallat
2008-04-07Define more cache coherency attributes, as well as R10k space identifiers.Miod Vallat
Define a symbolic ``cached'' attribute, to be used for cached mappings regardless of the system's cache coherency.
2008-03-31Oops, a chunk was commited too early.Miod Vallat
2008-03-30Allow the machine-specific headers to overwrite the number of memoryMiod Vallat
segments and the number of freelists.
2008-03-30Remove APERTURE remains.Miod Vallat
2008-03-20An overoptimization in r1.15 introduced an evil race, back it out. For someMiod Vallat
reason this would have been blatant on sparc on motorola, one more proof mips is the ante${DEITY} yet fun to live with.
2008-02-29Fix db_read_bytes() for short reads.Miod Vallat
2008-02-20Oops, correctly recover from kcopy() faults, since the stack frame isMiod Vallat
different now.
2008-02-20More dead includes and functions noone will mourn.Miod Vallat
2008-02-20Completely overhault attachment rules on sgi. No more indirect configurationMiod Vallat
inherited from OpenBSD/arc machines with ISA bus; mainbus children match on device name and other hierarchies match on simplified locators. As a bonus, attachment lines in dmesg will now print their locators. ok jsing@
2008-02-20Preserve pcb_onfault within kcopy(), as expected and as all other platforms do.Miod Vallat
2008-02-18Get correct memory information from 64 bit ARCBios, tested on Octane.Miod Vallat
2008-02-18Use better types and fix tests for pc and sp being in kernel to reallyMiod Vallat
handle XKPHYS addresses correctly.
2008-02-18More 64-bit ARCBios friendliness, correctly identify a 64 bit system, suchMiod Vallat
as the Octane; joint work with jsing@
2008-02-16Remove the wait instruction from cpu_idle_cycle(), as it causes problems onMiod Vallat
RM7000 machines.
2008-02-11A couple fixes:Miod Vallat
- evict the memory from cache in pmap_page_free(). - make sure to sync cache in pmap_protect() if it marks a modified cacheable page as read-only.
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@