summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2008-12-26Correctly report unconfigured child devices.Miod Vallat
2008-12-26Do not attach if not the console, I expect the same problems as for p9100,Miod Vallat
but I don't know what initialization sequence is needed on the p9000...
2008-12-26When running on serial console, do not try to pick the prom font (this wouldMiod Vallat
fail anyway since stdout is not a frame buffer), and force a complete ramdac initialization - access to several of the control registers spin otherwise.
2008-12-25Return proper display types to the WSDISPLAYIO_GTYPE ioctl, instead ofMiod Vallat
deprecated WSDISPLAY_TYPE_SUN24; X11 knows about them since several releases already.
2008-12-25Correctly display underlined spaces.Miod Vallat
2008-12-24No need to invoke fbwscons_setcolormap() twice.Miod Vallat
2008-12-24Get rid of all remaining magic numbers but 32. If you need to know why 32Miod Vallat
is magic on a 32-bit platform, maybe you shouldn't do kernel programming.
2008-12-24Provide an accelerated putchar routine for fonts 16 bits wide or less (andMiod Vallat
the code can do up to 32 bit without serious changes, but I'm lazy).
2008-12-24Oops, logic botch in 1.34 would disable 24 bit mode on S24.Miod Vallat
2008-12-24On cards which advertize complete rop support, use the stipple engine toMiod Vallat
draw the inverted cursor.
2008-12-24It turns out the 8-bit tcx flavour has undocumented low-res video modes (soonMiod Vallat
to be in tcx.4), which require a font swap and thus clearing the screen at attach time if console. Add the necessary code for this.
2008-12-24When switching between 8 bit and 24 bit modes on S24, use the blitterMiod Vallat
whenever possible to speed things up. Also, do not map the control space anymore and access in through physical addresses, as done for the blitter and stipple spaces; saves another 4MB of KVM on S24.
2008-12-24cleanup, work around issue with interrupt getting enabled too early.Dale Rahn
2008-12-24Basic acceleration code for tcx: solid fills and some simple block copy cases.Miod Vallat
Makes it noticeably faster, especially when scrolling on console. Tested on SS4 (tcx) and SS5 (S24) in 1152x900 and 1024x768 modes.
2008-12-23No need to keep the 32 bit space mapped, since it is only used by userlandMiod Vallat
and through mmap; also shrink the softc of about 120 bytes by not keeping a copy of all prom regions when only two of them are needed. While there, map THC at the preferred address on S24 flavours, and do not reprogram the control bits on S24 at attach time (since the prom has already done this for us). Tested on ss4 and ss5+S24.
2008-12-22We never actually rely on storing %fp in tf_global[0] for clockframes. SoMark Kettenis
save ourselves an instruction and remove the pretty misleading comments.
2008-12-22If we ever get an interrupt from userland with %otherwin set, we have a seriousMark Kettenis
bug. Don't try to fix things up; it's doomed to fail anyhow.
2008-12-22Get rid of many arbitrary differences between the i386 and amd64 mpbios code.Mark Kettenis
Mostly KNF issues, some reorganisation of the code. ok dlg@, deraadt@, krw@
2008-12-22use the exact same policy for choosing apic on all 3 types of kernel.Theo de Raadt
ok kettenis
2008-12-21Proper cpu_unidle() function for MP kernels. ok art@ long agoMiod Vallat
2008-12-21During early device probes, make sure to iounaccess() address ranges whenMiod Vallat
they are no longer necessary. No good reason to do so but correctness, and then leaving correct mappings after probe might hide bugs.
2008-12-21add option COMPAT_35, needed by COMPAT_VAX1KMiod Vallat
2008-12-21Make the "machine xir" ddb command work on machines with pyro(4).Mark Kettenis
tested by deraadt@
2008-12-21just attach cpu0, not cpu*, ok kettenisTheo de Raadt
2008-12-21Change the way we include mpbios code to be similar to what we do on i386.Mark Kettenis
ok deraadt@
2008-12-19Add missing #ifdef DDB around prototyupe.Mark Kettenis
2008-12-18Don't set the global bit PG_G for kernel pmap low memory mappings.Kurt Miller
ok deraadt@
2008-12-18Don't set the global bit PG_G for kernel pmap low memory mappings. Use aKurt Miller
new function pmap_prealloc_lowmem_ptp() to setup kernel pmap ptp 0 without the PG_G bit set. This fixes the remaining reaper -> pmap_page_remove panics. With much diagnostic help from Art and Theo. ok deraadt@
2008-12-18use atomic operations to update ptes in pmap_unwire(). okay weingart@Kurt Miller
2008-12-16Make the "machine xir" ddb command work on machines with TomatilloMark Kettenis
schizo(4) variants.
2008-12-15Make the "machine xir" ddb command work on machines with uperf(4) on ebus(4).Mark Kettenis
2008-12-15Let tty subsystem know when transmit is finished so ioctls do not hang.Dale Rahn
2008-12-14Implement a "machine xir" ddb command, making it possible to send anMark Kettenis
External Initiated Reset (XIR) to processors. A XIR is non-maskable and will drop us at the PROM ok prompt. This makes it possible to diagnose problems where a CPU is spinning with interrupts disabled. For now, this is only supported on machines with bbc(4).
2008-12-13Properly restore PSTATE_IE when returning from send_softint().Mark Kettenis
Fixes "ipi_send: couldn't send ipi" panics.
2008-12-11Kill the $ARCH prefix for isa_dma_cookie. With this change, the i386 andOwain Ainsworth
amd64 isa dma code is identical save for some formatting, and a slight difference in bus_dmamem_alloc. "Die x86_!" krw@.
2008-12-11revert back to 1.4, since there's still some code that uses this; pointedMartynas Venckus
out by theo
2008-12-10When booting from a CD on i386/amd64, assume the root filesystemKenneth R Westerback
is on the CD rather than always asking for its location. Behaviour pointed out at OpenCON by Stephan Rickauer. Tested by Stephan. nick@ has no objections. ok deraadt@
2008-12-10both x86 platforms isa bus_dma implementations handle bus_dmamap_syncOwain Ainsworth
incorrectly. The spec (manpage) states that using two PRE or two POST ops together is entirely valid, but mixing pre and post is invalid. The way this was handled before with a switch statement meant that only individual commands actually would be recognised, so move to just checking the commands indidually using "if (op & $command)". Additionally, add a DIAGNOSTIC check and panic for the mixing of pre and post operations (this is done on several other architectures already). tested by several people; thanks! ok dlg@, kettenis@, "the diff made sense" deraadt.
2008-12-09sparc does not have extended precision, therefore remove unusedMartynas Venckus
definitions. ok millert@. tested by jsg@
2008-12-08some sscom and interrupt cleanup, closer to usable userland.Dale Rahn
2008-12-07Make acpiprt(4) check whether the current interrupt routing is "possible" andMark Kettenis
pick a new one from the list of possible routings if it isn't or if a pin is currently not routed. Delay re-routing interrupts until we establish a handler for it. This prevents us from messing with unused interrupt pins which may have fatal consequences (some machines spontaniously reboot). The heuristics for picking an interrupt from the list of possibe ones probably needs some tweaking still, but this makes several NVIDIA-based boards work much better than before. tested by many, ok marco@
2008-12-06Revert this to, due to the ppc intr backout. -moj ok @kettenisMats O Jansson
2008-12-06revert all changes related to the mpsafe intr handler. i screwed up the commitTed Unangst
and even then it didn't work. we have higher standards than this.
2008-12-06not commited, i'm a retardTed Unangst
2008-12-06the not MP version didn't compile, mglocker foundTed Unangst
2008-12-06cvs wouldn't let me check this in beforeTed Unangst
2008-12-06some more trouble where i failed to account for oga's diffTed Unangst
2008-12-06mpsafe intr_establish that doesn't get biglock, so that we may dream of the ↵Ted Unangst
day when this is useful. mostly macro magic that does nothing. only actually useful on amd64 for now, compliments of art.
2008-12-04*sigh* unbreak the tree.Owain Ainsworth
Some old diff snuck into this change.
2008-12-04Revert ppc intr stuff. Make socppc compile again. -mojMats O Jansson