summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
AgeCommit message (Collapse)Author
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
2007-10-25Don't forget the channel number; makes sure we don't always read channel 0Mark Kettenis
(and actually get reasonable values for the MB0 and MB1 sensors on the E250).
2007-10-25Remove some coded that has been #ifdef'ed out for quite a while now.Mark Kettenis
2007-10-25allocate 1 byte extra in getprop(), for the NUL that some callers likeTheo de Raadt
to place. This is a nightmare, and we must move away from these stupid wrapper APIs. ok kettenis
2007-10-25another case of product encoding is "Sun (TM) modelname", on the E250Theo de Raadt
2007-10-24Enable power supply temperature sensors on the E450.Mark Kettenis
2007-10-24Add support for power supply temperature sensors on the E450.Mark Kettenis
2007-10-22alipm0 can now be enabled because of the crash workaroundTheo de Raadt
2007-10-22let alipm0 still be used for spdmem probes, but skip sensors. alipm (orTheo de Raadt
more likely psycho) still has a bug where the pci bus croaks on the intermittent i2c accesses. the spdmem accesses are safe, though. if you wish to help us find out when this bug gets fixed, please run your machine WITHOUT this diff, though. ok kettenis jsg
2007-10-22Add support for SUNW,envctrl as found on the E450.Mark Kettenis
2007-10-22CPU temperature sensors on the E450 have a conversion factor of 1/1 instead ofMark Kettenis
0/0 like the E250. Handle both.
2007-10-22the invalid flag is never set in these two drivers, so don't test if it is; ↵Constantine A. Murenin
ok djm@ kettenis@
2007-10-22stoped -> stoppedJoel Sing
ok miod@
2007-10-21Don't use next_tick() to start the clock ticking on secondary CPUs. ThisMark Kettenis
would fail from time to time on UltraSPARC-I and UltraSPARC-II CPUs. Inspired by code in FreeBSD. ok miod@
2007-10-20Ack IRQ *after* fetching IPI args. From NetBSD.Mark Kettenis
2007-10-20Provide sensor status based on the limits found in OpenFirmware.Mark Kettenis
There's enough code in here now, to add myself to the list of copyright holders.
2007-10-20Add support for the temperature sensors on the SUNW,envctrltwo device foundMark Kettenis
on the Sun Enterprise 250. This device (and SUNW,envctrl found on the Enterprise 450) is a PCF8584 I2C controller with several generic I2C chips attached to it. ok deraadt@