summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2009-11-22Allow mips ports to override VM_{MIN,MAX}_KERNEL_ADDRESS, and provide theMiod Vallat
address as a kernel variable for use by libkvm. On sgi IP27 and IP30 kernels, use XKSEG instead of CKSSEG; this will allow kernel KVM size to grow in the future if necessary.
2009-11-21Fix uninitialized variables in db_stack_trace_print(), and honour theMiod Vallat
frame count argument.
2009-11-21mplock, rw_cas implementedTakuya ASADA
ok miod@
2009-11-21Yet another stupid typo caught by martin@Miod Vallat
2009-11-21Fix registration of memory after 1GB on Octane. Found the hard way by martin@Miod Vallat
2009-11-21By popular demand and peer pressure, check-in work in progress work to supportMiod Vallat
the Yeelong Lemote mips-based netbook. Kernel bits only for now, needs polishing; most of this work done during h2k9 last month, although the porting effort started earlier this year.
2009-11-19Rename KSEG* defines to CKSEG* to match their names in 64 bit mode; alsoMiod Vallat
define more 64 bit spaces.
2009-11-19All callers of updateimask() immediately enable interrupts afterwards, so doMiod Vallat
it in updateimask() itself. No functional change.
2009-11-19Remove code allowing native binaries with O32 ABI to run, there aren't any...Miod Vallat
2009-11-19By popular demand and peer pressure, check-in work in progress work to supportMiod Vallat
the Yeelong Lemote mips-based netbook. Kernel bits only for now, needs polishing; most of this work done during h2k9 last month, although the porting effort started earlier this year.
2009-11-19By popular demand and peer pressure, check-in work in progress work to supportMiod Vallat
the Yeelong Lemote mips-based netbook. Kernel bits only for now, needs polishing; most of this work done during h2k9 last month, although the porting effort started earlier this year.
2009-11-19It turns out that the 2GB contiguous DMA direct map window also needsMiod Vallat
to be aligned on a 2GB boundary. Therefore the `add 512MB' bit used on Octane does not give us a 0.5GB-2.5GB usable DMA range, but a 0.5GB-2GB range; trying to use address in the 2GB-2.5GB range would cause PCI DMA errors at the xbridge level. There is no real benefit in using it, since this required us to keep subtracting or adding 0.5GB when converting DMA address to physical memory address or the other way around. So stop using it; this makes a few parts of the code simpler (and until bounce buffers are implemented, Octane systems will not use more than 1.5GB of memory).
2009-11-19Factor triplicated code responsible to add memory information into aMiod Vallat
single place.
2009-11-18* always move the same amount of data (256 frames) in the interrupt handlerJacob Meuser
* round blocksizes to multiples of 256 frames * fix display of record.source.volume and add record.mic.preamp mixer controls * add recording support ok kettenis@. ok ratchov@ on a slightly different version.
2009-11-18Stricter type usage (width and signedness); first step towards 64 bit ptes.Miod Vallat
2009-11-18Move widget register information apart from xbow software interface, andMiod Vallat
update #include needs. No functional change.
2009-11-18Add glue to attach iockbc(4) to iof(4) as well. Tested by deraadt@Miod Vallat
2009-11-18Don't whinge about not knowing the bus_clock for EP80579 (model 0x15)Jonathan Gray
as there is no FSB and the processors don't have speedstep anyway.
2009-11-17Initialize the FPU to be in double precision mode for SH4. This is what theMark Kettenis
Linux kernel does and is obviously what GCC expects. Fixed segmentation faults in omalloc_init() for shared executables linked with the pthreads library. tested by otto@, ok deraadt@, drahn@
2009-11-15athn works on sparc64Theo de Raadt
2009-11-15athn(4) has a future in here.Theo de Raadt
2009-11-14athn(4), a driver for Atheros 802.11a/g/n devices.Damien Bergamini
written from scratch based on the vendor driver for Linux (ath9k). AR9285 and AR9287 parts are 100% untested. only basic functionnalities are enabled for now. committed over an AR9281. "commit" deraadt
2009-11-12More unused fields in struct sys_rec.Miod Vallat
2009-11-12typoMiod Vallat
2009-11-12Oops, I can't even spell `spurious' correctly.Miod Vallat
2009-11-12Only read mace interrupt registers once in the interrupt handler; and fixMiod Vallat
the spurious interrupt report logic.
2009-11-12Move the interrupt makemasks() code to the interrupt template; no functionalMiod Vallat
change.
2009-11-12oops my slow editor conspired against meTheo de Raadt
2009-11-12if the table got messed up, early loop termination is not gauranteed, andTheo de Raadt
subsequent code will be out of bounds; unlikely situation. found by parfait ok weingart
2009-11-11add a icache flush which appears to make the machines even more stableTheo de Raadt
(no crashes in nearly forever) ok kettenis
2009-11-11Let ioc(4) pass the information whether it is an onboard device or not, to itsMiod Vallat
subdevices; use this on iockbc to only perform the fuel workaround on the onboard ioc.
2009-11-11Perform a bit more kbc initialization, instead of relying upon the prom toMiod Vallat
do this for us; PS/2 ports on CADduo boards attach keyboard and mouse now. ok jsing@
2009-11-11It turns out PCI IOC3 card which embed both the Ethernet controller and theMiod Vallat
superio chip interrupt on two different pins (yet do not advertize themselves as a multi-function device, of course). So, on one hand, this makes the ioc attachment code simpler, because it simply needs to map interrupt pins A and B, and another hand, this moves all the interrupt knowledge to the PCI bridge driver, since routing of pin B differs whether the device is the onboard IOC3 chip (and able to use any of the 8 bridge interrupt sources...) or on a PCI board (with pin mapping sane, since controlled by the bridge). This makes superio interrupts on CADduo boards work. Tested to cause no regressions on Origin 200, Octane and Fuel.
2009-11-10Handle LOMlite2 in an interrupt-driven way; avoids using delay(9) once theMark Kettenis
machine is up and running.
2009-11-10Add iockbc(4), a driver for the PS/2 keyboard and mouse interface found onJoel Sing
ioc(4) devices. Joint work with miod@. Committed from the glass console on an SGI Fuel.
2009-11-10Fix indentation.Joel Sing
2009-11-09Fix error message.Mark Kettenis
2009-11-09Every selwakeup() should have a matching KNOTE() (even if kqueue isn'tNicholas Marriott
supported it doesn't do any harm), so put the KNOTE() in selwakeup() itself and remove it from any occurences where both are used, except one for kqueue itself and one in sys_pipe.c (where the selwakeup is under a PIPE_SEL flag). Based on a diff from tedu. ok deraadt
2009-11-09Make sure we correctly return failure in l1_serial_ppp_read() when a readMiod Vallat
fails after an escape character, and while there put explicit casts to l1_command_build() variadic arguments.
2009-11-09Only invoke the L1 code if IP35.Miod Vallat
2009-11-08Add code to send L1 commands and parse command results; use it to add a wayMiod Vallat
for IP35 systems with IOC3 onboard Ethernet to get their Ethernet address since it's no longer stored as an owmac(4) device on the IOC3 device itself.
2009-11-08Relocate FDT blob such that it doesn't clash with the kernel we're going toMark Kettenis
load. This makes it possible to load bsd.rd on the RB600. Bump version number. ok dms@
2009-11-08Move KERNEL_LOCK/UNLOCK dance into softintr_dispatch().Mark Kettenis
ok miod@, dms@
2009-11-08Make sure xscale_cache_flushD_rng will not try to flush more than theMiod Vallat
cache size; might skirt some cache hazards. ok deraadt@
2009-11-08Figure out the size of the SSRAM used as internal memory by the chip onMiod Vallat
attach, print it, and decide how many RX descriptors to use accordingly.
2009-11-08Do not risk touching nonexisting registers on MENET boards; untested due toMiod Vallat
lack of such hardware.
2009-11-08update description for iwn(4)Damien Bergamini
2009-11-07According to Brad, bnx(4) is not endian-safe, so remove it from sgi kernels.Miod Vallat
2009-11-07Blink leds on the DEC 3000 models (three different led types).Miod Vallat
2009-11-07In case an ioc(4) device has lost its NIC component, do not recognize itMiod Vallat
as the onboard ioc device, if one has already been found on this node. Also, on Origin 300, do not attempt to attach the PS/2 controller on the onboard ioc(4) since PS/2 ports are not wired.