summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
AgeCommit message (Collapse)Author
2007-12-26Use the TSTATE_xxx constants instead of (PSTATE_xxx << TSTATE_PSTATE_SHIFT)Miod Vallat
for readability; ok kettenis@
2007-12-23In pmap_dumpmmu(), account for the fact that we use 4MB mappings for text andMark Kettenis
data segments. This makes the complete mappings available in kernel dumps.
2007-12-23Remove DMMU_MISS_2; it's identical to DMMU_MISS.Mark Kettenis
2007-12-22Replace _bus_dmamap_load() with an implementation based onMark Kettenis
_bus_dmamap_load_buffer() like everybode else does.
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-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-15move some iommu_dvmamap_validate_map()'s into DEBUG instead of DIAGNOSTIC, toTheo de Raadt
slightly improve performance ok kettenis
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-07unify a function name compared to other bussesTheo de Raadt
2007-12-05use mutexes to protect the iommu's extent map and the streaming buffer,Theo de Raadt
so that busdma is most likely MP_SAFE now. (while there, fix an extent map race... the ranges were selected outside splhigh) ok kettenis
2007-12-05Remove some 32-bit compatibility code in pseg_get().Mark Kettenis
Completely remove pseg_find() since it isn't used.
2007-11-30Define NORMAL_C_NOP everywhere.Miod Vallat
2007-11-28Garbage collect sparc_cas() and sparc_casx(). We have equivalent functionsMark Kettenis
in <machine/atomic.h> now and they're not used anywhere in our tree.
2007-11-28Don't complain about removing wired pages; this is expected to happen withMark Kettenis
ftruncate(2) on mlock(2)'ed pages.
2007-11-28Give UltraSPARC-IV CPUs a chance again to attach on GENERIC.Mark Kettenis
2007-11-28Use cas/casx instead of casa/casxa.Mark Kettenis
2007-11-27Like i386 and amd64 - make the __mp_lock not spin at splhigh.Mark Kettenis
help from & ok art@
2007-11-27intr_disable() returns an u_int64_t.Mark Kettenis
2007-11-26Move the implementation of __mp_lock (biglock) into machine dependentArtur Grabowski
code. At this moment all architectures get the copy of the old code except i386 which gets a new shiny implementation that doesn't spin at splhigh (doh!) and doesn't try to grab the biglock when releasing the biglock (double doh!). Shaves 10% of system time during kernel compile and might solve a few bugs as a bonus. Other architectures coming shortly. miod@ deraadt@ ok
2007-11-26few more dribbles of LIBKERN cleanupTheo de Raadt
2007-11-25libkern, begone. Move to a new mechanism where config(8)'s "file"Theo de Raadt
directive can select between MI and MD versions of these files. At the same time, adjust the boot programs to pick exactly what they need, instead of the 7 or 8 mechanisms previously used. There will be some fallout from this, but testing it all by myself is a ridiculously slow process; it will be finished in-tree. Various developers were very nice and avoided making fun of me when I was gibbering in the corner..
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-25Give the CarBus side of CardBus-PCI bridges a bus number, since OpenFirmwareMark Kettenis
doesn't do it for us.
2007-11-18Add missing locking around ktrsyscall() call.Mark Kettenis
2007-11-16Pass name of CPU nodes instead of "cpu" such that we see it for unconfiguredMark Kettenis
CPUs on UP kernels.
2007-11-16Fix typo in comment.Mark Kettenis
2007-11-16UltraSPARC-IIIi CPUs are different and choose the BUSY/NACK pair based on theMark Kettenis
target CPU ID. Make sure we check the right bits.
2007-11-15Attach to "rsc-console". Hopefuly this will give us a proper console onMark Kettenis
the Sun Fire 280R/V480/V880 when the console is directed to the RSC card.
2007-11-14Remove eeprom.h.Mark Kettenis
2007-11-13Fix printf format string.Mark Kettenis
2007-11-13Remove bsd_openprom.h.Mark Kettenis
2007-11-11Replace next_tick() with simpler C code that I can actually understand.Mark Kettenis
2007-11-10weel -> wellJoel Sing
2007-11-10Remove a fair amount of duplicated code by making cpu_mp_startup callMark Kettenis
cpu_initialize.
2007-11-10For single-processor kernels, only match the CPU we're running on.Mark Kettenis
2007-11-09Call prom_set_trap_table for secondary CPUs too.Mark Kettenis
2007-11-09Use the interrupt stack as the initial stack for spinning up secondary CPUs.Mark Kettenis
Inspired by a change in NetBSD pointed out by miod@.
2007-11-06Close a race where we might save/drop the fpu state of the wrong process inMark Kettenis
the ipi handlers.
2007-11-05Sprinkle a few holy membars around memory writes.Miod Vallat
ok kettenis@
2007-10-31Overhaul fpu context save/restore code, making it more similar to what we doMark Kettenis
on i386 and amd64. Don't let IPIs in when saving fpu context by disabling interrupts.
2007-10-31Remove some XXX code that has been #ifdef'ed out for ages.Mark Kettenis
2007-10-31Remove idle_u; it's been unused for a while.Mark Kettenis
2007-10-31Remove some comments about 32-bit mode.Mark Kettenis
2007-10-31Garbage collect ienab_bis() and ienab_bic().Mark Kettenis
Suggested by miod@
2007-10-29UltraSPARC CPUs (and other SPARC V9 implementations) don't have aMark Kettenis
floating-point deferred-trap queue. Remove redundant code inherited from sparc that deals with this. Also remove the code dealing with saving and restoring the FPU state from unaligned memory; we always allocate properly aligned memory for storing the FPU state.
2007-10-28UltraSPARC CPUs don't have a floating-point queue, so cpu_reset_fpustate() isMark Kettenis
redundant since there is no queue to flush.
2007-10-28Match on compatible: 'pcf8584', such that we attach on the V210 again.Mark Kettenis
2007-10-27get rid of btoc/ctob in favor of atop/ptoaMartin Reindl
2007-10-27Since ipis are not synchronous, make sure that ci_fpproc is not NULL beforeMiod Vallat
invoking savefpstate in ipi_save_fpstate. ok kettenis@
2007-10-27Don't do unecessary work in cpu_switchto().Mark Kettenis