summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2009-08-23Missed 'const' change in definition of i80321_intr_establish().Kenneth R Westerback
Allows armish GENERIC to compile again.
2009-08-22Constify the what/name parameter of pci_intr_establish().Michael Knudsen
Tested by myself, sthen, oga, kettenis, and jasper. Input from sthen and jasper. ok kettenis (Manpage follows shortly.)
2009-08-19<machine/macros.h> would provide inline version of a few of the functionsMiod Vallat
traditionnaly found in libkern. However, the memcmp() flavour would behave as bcmp() with only two possible return values: zero and positive non-zero. This broke the name cache RB trees which now rely upon proper memcmp() semantics(negative value, zero, or positive value). Just give up on these macros and provide the same code as libc, in libkern. As a side effect, this no longer uses the cmpc3 instruction, which is not implemented and requires (slow) kernel emulation, on the original uVax.
2009-08-19- missing \nJasper Lievisse Adriaanse
ok miod@
2009-08-18Disable address translation. Necessary on the RB600 where the firmware startsMark Kettenis
running us with address translation enabled. Lifted from a diff from dms@, tested on the Thecus N1200 by me.
2009-08-18Blind partial support for IOC4 chip, found on IO8 and IO9 base I/O boards onMiod Vallat
Origin 350 and Tezro systems. While this chip provides serial ports, an ATAPI interface and a PS/2 keyboard and mouse interface, this code currently only attempts to support the serial ports.
2009-08-18Replace a few hardcoded numbers from the interrupt register with properMiod Vallat
commented symbolic constants.
2009-08-18Blind support for SGI PIC PCI-X controller found on Origin 350 and TezroMiod Vallat
systems. PIC was supposed to be mostly XBridge compatible, but a silicon bug prevents it from working correctly if 32 bit register writes are used, so the xbridge(4) code now needs to issue 64 bit writes. In order to make this a bit more transparent, rebase all widget registers to a 8 byte boundary, and provide a few inline accessors which will do the right thing if you want 32 bit writes. Tested to not cause regressions on Octane, Origin 200 and Fuel; covering Bridge < 4, Bridge >= 4 and XBridge flavours.
2009-08-18On dual interrupt IOC3 designs, disestablish the ethernet interrupt if noMiod Vallat
ethernet driver attaches; prevents interrupt storms on Octane caused by the way ARCS initializes the chip, when not booting from the network.
2009-08-17fix readdpmelabel() declaration since the definition was changedDariusz Swiderski
from returning char* to int, last char* return removed as well (cleanup after deraadt@ commit, it compiles now) while there initialize hfspartend to some sane value (sync with macppc version) ok kettenis@
2009-08-17Use ANSI function declarations. No binary change.Joel Sing
ok deraadt@
2009-08-17By 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-08-16Update to cope with new readdisklabel() return value.Miod Vallat
2009-08-15use static for inline so we get the desired behaviour with compilersJonathan Gray
using c99 inline semantics.
2009-08-14enable lisa(4); tested by Marco Knol; ok deraadtConstantine A. Murenin
2009-08-13repair vscsi lineTheo de Raadt
2009-08-13toby do you even care enough to try to do right?Theo de Raadt
2009-08-13typoMiod Vallat
2009-08-13rewrite the promisc mode / multicast handling code for the sparc hme(4)Peter Hessler
driver and is based off of the MI hme(4) driver. tested with ping6 -w and tcpdump from brad OK naddy@, sthen@
2009-08-13In pmap_pte_flush flush the icache before the dcache, as is done elsewhere.Theo de Raadt
We cannot find gaurantees in the documents that any icache filling from the cache is terminated by a icache flush or idtlb invalidation, so this is probably safer, and unlikely to be unsafer. ok kettenis
2009-08-13Cleanup differences between i386 and amd64.Mark Kettenis
2009-08-13Replace the error strings that were being passed around with much simplerTheo de Raadt
errnos. Note that the error strings are being ignored, since we long ago decided to not spam the console, and there is no other nice way to use the errors (without changing the ioctls to pass it back) The errno is now useful, since we can pass b_error from failing IO up, and the drive can decide how to use that ok miod
2009-08-13Replace the error strings that were being passed around with much simplerTheo de Raadt
errnos. Note that the error strings are being ignored, since we long ago decided to not spam the console, and there is no other nice way to use the errors (without changing the ioctls to pass it back) The errno is now useful, since we can pass b_error from failing IO up, and the drive can decide how to use that ok miod
2009-08-13- remove the ef(4) chunk, it's unused now and the ioc ethernet driverJasper Lievisse Adriaanse
won't be called ef(4) anyway. ok miod@
2009-08-13i forgot a commentDavid Gwynne
2009-08-13wire vscsi up to a cdevDavid Gwynne
for claudio@ ok deraadt@
2009-08-13Start using a linking script for this kernel. ThisTobias Weingartner
should help in future using large pages for text/etc. Also, since we do not use the .eh frame stuff, we can nuke them, saving some bytes... Ok kettenis@, "more control over linking is a good thing, but I can't comment further" art@.
2009-08-13A new(er) mtx_enter_try().Tobias Weingartner
Ok oga@, "the time is now" deraadt@.
2009-08-13Make the i386 APIC code closer to the amd64 version. Many whitespace fixes,Mark Kettenis
some additional code. ok toby@, oga@
2009-08-13- set DV_IFNET, instead of DV_NULLJasper Lievisse Adriaanse
ok kettenis@
2009-08-12Non-equivalent writable aliases (aka illegal aliases) are bad. Since PA-RISCMark Kettenis
doesn't have a usuable uncachable bit, whack all other mappings of a page if we are about to create a non-equivalent writable alias by entering a mapping for it. ok art@, miod@
2009-08-12Apple is hopelessly inconsistent with their firmware, so some machines haveMark Kettenis
an extra smu-i2c-control node where others don't. Handle the difference. Makes the PowerMac9,1 actually find some i2c devices.
2009-08-12Add support for the "Slots Power" sensor on the PowerMac9,1.Mark Kettenis
2009-08-11Do not bother initializing bufpages in the md code if the computation isMiod Vallat
exactly the same the mi could will use if bufinit() is invoked with bufpages == 0.
2009-08-11With the SysV memory allocation changes, allocsys() doesn't do anythingMiod Vallat
anymore. Get rid of it completely.
2009-08-11The PowerMac9,1 has 4 sensors on its smu(4), so increase the maximum number.Mark Kettenis
Also add a check for the maximum number of sensors like we already have for the number of fans such that we avoid mysterious hangs on machines with more than 4 sensors.
2009-08-11uvm_scheduler() sounds important, but ``while(1) tsleep()'' is kinda lameBret Lambert
inline the loop in the one place it exists, and remove it from uvm adjust a comment mentioning it accordingly originally inspired by a diff fixing a comment from oga@ ok art@ beck@ miod@ oga@
2009-08-11fix some stupidity in x86 bus_space_map.Owain Ainsworth
right now, we do a pmap_kenter_pa(), we then get the pte (behind pmap's back) and check for the cache inhibit bit (if needed). If it isn't what we want (this is the normal case) then we change it ourselves, and do a manual tlb shootdown (i386 was a bit more stupid about it than amd64, too). Instead, make it so that like on some other archs (sparc64 comes to mind) you can pass in flags in the low bits of the physical address, pmap then does everything correctly for you. Discovered this when I had some code doing a lot of bus_space_maps(), it was incredibly slow, and profilling was dominated by pmap_tlb_shootwait(); discussed with kettenis@, miod@, toby@ and art@. ok art@
2009-08-11Recent alignment fixes seem to make bwi(4) work at leastKenneth R Westerback
semi-reliably on my Thecus. Let others play too. 'no objections' miod@ 'sure' deraadt@
2009-08-10The shutdown hook is no longer required now that we shutdown all interfacesJoel Sing
when rebooting. ok deraadt@ jasper@
2009-08-10use splhigh instead of splclock to block in the i386_ipiTheo de Raadt
fixes stability problems on some machines; ie. crashes in in cpu_idle_cycle from netbsd, via dhill
2009-08-10right now, we only increment ci_idepth in struct cpuinfo whenOwain Ainsworth
MULTIPROCESSOR is defined. This makes splassert incorrect for IPL_NONE on such kernels. Make this more similar to amd64, and move the inc and dec of ci_idepth into the interrupt vectors, and only leave biglock in the locking functions. ok kettenis@
2009-08-10gpio for amd64.Jonathan Gray
ok deraadt@
2009-08-09Introduce option DDB_STRUCT. Kernels compiled with this option (except onMiod Vallat
a few arches where toolchain limitations apply) will embed some symbolic information about the various structs used within the kernel, and have new ddb commands allowing struct display and some useful information gathering. Kernel rodata increase varies accross platforms from ~150KB to ~300KB. This option is not enabled by default.
2009-08-09No need to clean genassym{.,o} during `make clean', genassym.sh does thisMiod Vallat
for us.
2009-08-09Another lost bit for SysV message queues.Bret Lambert
2009-08-09Add a dummy <machine/conf.h> so that MI code can rely upon its existence.Miod Vallat
2009-08-09Forgot to commit this bit for the SysV message queue cleanup.Bret Lambert
Found by miod@
2009-08-09No options TIMEZONE and DST in GENERIC kernels.Miod Vallat
2009-08-09Unconditionally enable checks for writable non-uequivalent mappings. They'reMark Kettenis
evil so we should complain about them until we have a way to fix them.