summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
AgeCommit message (Collapse)Author
2009-07-01Crank bootblocks version for identification purposes.Miod Vallat
2009-06-30Link the second stage bootblocks (and boot.net) 256KB higher to accomodateMiod Vallat
the GENERIC kernel growth; verified to not conflict with old prom on sun4. ok deraadt@
2009-06-24for the isp(4) driver, invert the meaning of the options which pullTheo de Raadt
firmwares into the smaller (and larger) media ok krw
2009-06-24Major update to isp driver, mostly from mjacob via FreeBSD.Kenneth R Westerback
Everything that worked before should still work so in it goes. Newer boards (2300, 2400) may now work but are still a work in progress. Thanks to many testers but especially kettenis@ for finding a show stopper bug and stomping it. ok deraadt@
2009-06-24Simplify the ioctl handling code. From Brad.Stuart Henderson
Tested by nick@
2009-06-20Have hmestop() properly clear the RUNNING/OACTIVE flags and the interfaceStuart Henderson
watchdog timer. Copied over from MI hme(4). Tested by nick@. From Brad.
2009-06-15Back out all the buffer cache changes I committed during c2k9. This reverts ↵Bob Beck
three commits: 1) The sysctl allowing bufcachepercent to be changed at boot time. 2) The change moving the buffer cache hash chains to a red-black tree 3) The dynamic buffer cache (Which depended on the earlier too). ok on the backout from marco and todd
2009-06-04Recycle four ancient fields in the disklabel structure, replacing them withTheo de Raadt
bounds information, ie. the zone of the disk that OpenBSD can use. Have each pre-disklabel parser (MBR, DPME, or per-arch MD disklabel parsers) figure out this area and pass it up to userland. Then, delete all the same disk parsing code from disklabel(8) since the kernel passes it up. Lots and lots of - signs in the disklabel(8) code. Tested on as many platforms as possible, the fallout will be repaired as time goes on. To test, use disklabel -d <drive> and validate that the bounds do not overlap any boot blocks. This same information is used by disklabel -A... OK for the concept from krw, miod, and drahn
2009-06-03add kern.bufcachepercent sysctl to allow adjusting the buffer cacheBob Beck
size on a running system. ok art@, oga@
2009-06-03Fix check for window-top and window-left values.Mark Kettenis
ok miod@
2009-06-03Arla client rename from xfs to nnpfs for later upgrades. Tested on various ↵Janne Johansson
arches. ok todd@ beck@
2009-05-20Add code to attach sun mice on sparc and sparc64 as wsmouse devices. SinceMiod Vallat
not all Sun mice run at the canonical 1200 bps, hop between 1200, 4800 and 9600 bps by paying attention to breaks on the line. Attachement and engine code written 7 years ago for OpenBSD/sparc, except for sparc64 com(4) attachment. Speed hop idea borrowed from Opensolaris. This allows sparc and sparc64 users to run X11 without needing a configuration file anymore, as it was in the XFree86 3.x days. Multihead configurations will still need a minimal configuration file, though.
2009-05-13Set D_VENDOR when spoofing a label on archs that use D_VENDOR whenKenneth R Westerback
reading the native disklabel. This ensures cylinder alignment. Fix disklabel to do cylinder alignment arithmetic correctly in -A mode. Worked by accident before, since the code was protected by D_VENDOR, which wasn't being set. ok deraadt@
2009-04-27Revert mtx_enter_try. It didn't compile on hppa, it doesn't compile onMark Kettenis
landisk, and the sparc implementation is obviously wrong. That's where I stopped looking, so who knows what else was broken. A simple comparison of the existing mtx_enter with the new mtx_enter_try would have told anybody.
2009-04-25Enter mtx_enter_try. In part for completeness, things may startTobias Weingartner
using this soon(ish). Ok oga@, sorta yes kettenis@.
2009-04-15Remove en(4) (no manpage present, no none removed), and the midway.c glue codeOwain Ainsworth
for it. It is very unlikely this still compiles, the hardware is dead. It isn't in any arch's config file. the sparc sbus code is even commented out in files.sparc. Not to mention that the code is fucking appauling, doesn't even know that sparc got bus.h ages ago, still uses vtophys(), defines all types of functions to arch-specific hacks. I will miss the bitchy comments, though... As a note to other drivers: this is the fate that awaits you if you screw up my ctags on commonly used functions. "you have my ok" claudio@, "zap zap zap" deraadt@ If i've missed any bits, please remove them.
2009-04-14Convert the waitok field of uvm_pglistalloc to "flags", more will be added soon.Owain Ainsworth
For the possibility of sleeping, the first two flags are UVM_PLA_WAITOK and UVM_PLA_NOWAIT. It is an error not to show intention, so assert that one of the two is provided. Switch over every caller in the tree to using the appropriate flag. ok art@, ariane@
2009-04-10Use soft interrupts to dispatch pcmcia device interrupts; this ensures theMiod Vallat
driver handlers get invoked at the right level. Parts from NetBSD.
2009-04-10generic soft interrupts support for sparc. Soft interrupt handlers are nowMiod Vallat
kept in a separate intrhand array, with their own enable bits so that soft interrupts sharing the same level only get invoked if really triggered. Inspired by NetBSD with significant changes. ok kettenis@
2009-04-10fix typos introducedTheo de Raadt
2009-04-07Eliminate useless loop over partitions and ignore zero lengthKenneth R Westerback
partitions in bsd_to_sun(), even if their offsets are nonsense. Theo says if sparc64 compiles so will sparc. Fixes some useless disklabel warning messages. ok miod@ deraadt@
2009-03-29make various strings ("can't map mem space" and similar) more consistentStuart Henderson
between instances, saving space in the kernel. feedback from many (some incorporated, some left for future work). ok deraadt, kettenis, "why not" miod.
2009-03-29When trying to get the console font metrics and window position, we canMiod Vallat
always retrieve the font metrics, even on older (< 2.9) prom, so do it.
2009-03-27When clearing soft interrupts on sun4m, be sure to force the bit clear toMiod Vallat
be acked by the hardware before continuing; this makes Ross systems stable when using hme; from NetBSD.
2009-03-26Remove cpu_wait(). It's original use was to be called from the reaper soOwain Ainsworth
MD code would free resources that couldn't be freed until we were no longer running in that processor. However, it's is unused on all architectures since mikeb@'s tss changes on x86 earlier in the year. ok miod@
2009-03-15Introduce splsoftassert(), similar to splassert() but for soft interruptMiod Vallat
levels. This will allow for platforms where soft interrupt levels do not map to real hardware interrupt levels to have soft ipl values overlapping hard ipl values without breaking spl asserts.
2009-03-15Allow CPU_INFO_UNIT() to be used before cpu0 attaches.Miod Vallat
2009-03-05Make ELF platforms generate ELF core dumps. Somewhat based on code fromMark Kettenis
NetBSD. ok kurt@, drahn@, miod@
2009-02-26Add a two new ioctls to the apm(4) interface.Owain Ainsworth
APM_IOC_{SUSPEND,STANDBY}_REQ: This is to fix an issue with apm suspend where a call to zzz suspended the machine immediately, not giving anyone listening for apm events (other than apmd) a chance to deal with the upcoming change. This hit X hard since the introduction of drm, since it needs to have time to idle the 3d engine and otherwise get the device into a recoverable state. Such things are needed until we support modesetting in the kernel. Now, instead of forcing a suspend, using ioctl sends out an event similar to if you had put the lid down, giving all userland applications a chance to reply. tested by sthen@ and beck@, especial thanks to sthen for sitting there while I tried to debug this remotely, I owe him beer. Prompted by and ok deraadt@
2009-02-16Extend the scsi_adapter minphys() callback to take a struct scsi_link *Miod Vallat
as additional argument. This will allow intermediate layers between scsi devices such as sd and scsi host adapters to take appropriate action if necessary.
2009-02-12Keep track of resident pages in pm_stats, and use this to implement a realMiod Vallat
pmap_resident_count(). From NetBSD
2009-01-27Get rid of the last traces of uvm.pager_[se]vaMiod Vallat
2009-01-25Remove /dev/drum and related code.Miod Vallat
2009-01-22Call checkdisklabel() for labels built from native info. This willKenneth R Westerback
ensure 'c' always has the correct size as the rest of the kernel assumes. Thus prevent dd'ing causing a SCSI out-of-bounds error. ok miod@
2009-01-12Oops, sunkbd_decode() still needs to be public for *cngetc() to work;Miod Vallat
spotted the hard way by kettenis.
2009-01-12Be more strict when checking window-left and window-top values.Miod Vallat
2009-01-11Fix a sed bug in the makefile's depend target.Paul Irofti
What happened was that the output of mkdep was fed to a sed expression that trimmed a bit more than required and also failed to work when attempting to do make depend with pcc. Example: genassym_c.o: /tmp/genassym.whatever ../../../../../sys/param.h \ was changed to: assym.h: \ but what was intended was: assym.h: ../../../../../sys/param.h \ For the pcc -M output things were a bit different and after the make depend the genassym entry would still remain and make would fail. This affected all platforms except amd64 and sgi. Okay miod@.
2009-01-11Define a limit to the input which can be fed to sunkbd_input() at once,Miod Vallat
will be necessary for rawkbd mode.
2009-01-11Factor a bit more sunkbd common parts; paves the way for upcomingMiod Vallat
WSDISPLAY_COMPAT_RAWKBD support.
2009-01-11Some frame buffer fcode do not fill window-top and window-left putMiod Vallat
nevertheless provide them; cope with zero values.
2009-01-04Make this compile for SUN4 only kernels.Miod Vallat
2009-01-04Be silent when deciding that the last chunk of a DMA transfer will be doneMiod Vallat
in PIO mode.
2009-01-04In x[dy]dummystrat, do not clear B_BUSY from the buffer.Miod Vallat
2008-12-26Use the `fontbytes' display property as the font stride, instead ofMiod Vallat
computing it ourselves.
2008-12-26Move the logic responsible from deciding whether a frame buffer needs to beMiod Vallat
cleared on attach, from the individual drivers to the common frame buffer code; the latter will decide based on the prom font metrics and the prom console window position, whenever possible. This removes the need for the console window position to be hardcoded in the p9100 driver, and will no longer require a screen clear on a vigra VS-12 in high resolution mode.
2008-12-26Use nitems() and FBS_xxx symbolic constants in the video timing tables.Miod Vallat
2008-12-26Remove unused BT_BLANK() and BT_UNBLANK() macros.Miod Vallat
2008-12-26Use constants from bt458reg.h when frobbing ramdac registers.Miod Vallat
2008-12-26Print the correct value as the chip revision.Miod Vallat
2008-12-26Correctly report unconfigured child devices.Miod Vallat