summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
AgeCommit message (Collapse)Author
2007-12-15Remove a lot of symbols from the namespace, otherwise sys/sysctl.h andTheo de Raadt
rpc/pmap_prot.h collide.. "struct pmap" from the kernel should not make it out to userland. ok miod
2007-11-30Define NORMAL_C_NOP everywhere.Miod Vallat
2007-11-28ctob/btoc -> ptoa/atopMartin Reindl
from Rodolfo Gouveia
2007-11-27need strcmp.c hereMartin Reindl
2007-11-27typos; ok jmc@Martynas Venckus
sys/dev/pci/pciide.c from naddy@
2007-11-26typos; ok jmc@Martynas Venckus
sys/netinet/in_pcb.c and sys/net/bridgestp.c ok henning@ sys/dev/pci/bktr/* ok jakemsr@
2007-11-26a bit more LIBKERN falloutTheo de Raadt
2007-11-26few mails later, miod asks me to waitTheo de Raadt
2007-11-26the bcopy() found here was not handling overlapping. Merge it nicely withTheo de Raadt
the ovbcopy() code ok miod
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-10-30avoid intermediate files with same name (ie. a.out) for parallel makeTheo de Raadt
ok miod
2007-10-22stoped -> stoppedJoel Sing
ok miod@
2007-10-13Remove leftovers art forgot to prune...Miod Vallat
2007-10-10Make context switching much more MI:Artur Grabowski
- Move the functionality of choosing a process from cpu_switch into a much simpler function: cpu_switchto. Instead of having the locore code walk the run queues, let the MI code choose the process we want to run and only implement the context switching itself in MD code. - Let MD context switching run without worrying about spls or locks. - Instead of having the idle loop implemented with special contexts in MD code, implement one idle proc for each cpu. make the idle loop MI with MD hooks. - Change the proc lists from the old style vax queues to TAILQs. - Change the sleep queue from vax queues to TAILQs. This makes wakeup() go from O(n^2) to O(n) there will be some MD fallout, but it will be fixed shortly. There's also a few cleanups to be done after this. deraadt@, kettenis@ ok
2007-10-08A few trailing bzero/memset -> M_ZERO occurrences, cast removal andKenneth R Westerback
size(*p) usage.
2007-10-02Fiddle Sun traditional disklabel recognition to eliminate union andKenneth R Westerback
associated field access defines. This reverts most changes to dev/sun/disklabel.h without eliminating new functionality. Fix comments to line up and fit on 80 column line, making both tsi@ and I feel better. Simplify logic in disksubr.c. No semantic change. Tested & ok tsi@.
2007-10-01More easy bzero() -> M_ZERO. Use 'p = malloc(sizeof(*p) ...' whereKenneth R Westerback
obvious.
2007-09-22M_ZERO -> bzero.Kenneth R Westerback
ok art@
2007-09-19On sparc & sparc64, change `mount -a` to recognise Linux ext2 partitionsMarc Aurele La France
by interpreting more fields out of a standard Sun disk label. ok krw@
2007-09-10Introduce a md pmap hook, pmap_remove_holes(), which is supposed to markMiod Vallat
the holes a MMU may have from a given vm_map. This will be automagically invoked for newly created vmspaces. On platforms with MMU holes (e.g. sun4, sun4c and vax), this prevents mmap(2) hints which would end up being in the hole to be accepted as valid, causing unexpected signals when the process tries to access the hole (since pmap can not fill the hole anyway). Unfortunately, the logic mmap() uses to pick a valid address for anonymous mappings needs work, as it will only try to find an address higher than the hint, which causes all mmap() with a hint in the hole to fail on vax. This will be improved later.
2007-07-30Shuffle the order in which we look for header files, when doingThordur I. Bjornsson
kernel builds locally this doesnt change much but over NFS this cuts about 12% of the build time on my setup (i386). OK miod@, deraadt@.
2007-07-13Reenable accelerated text console primitives on pnozz if running with aMiod Vallat
800x600 panel, and document the acceleration code as currently broken on 640x480 panels.
2007-07-01Use mapiodev() instead of mapdev() when applicable. This is just syntacticMiod Vallat
sugar.
2007-07-01Perform minimal disklabel setup without needing to do the disklabel_to_sun()Miod Vallat
dance, so that we do not depend on its behaviour. No functional change.
2007-07-01Do not define DEBUG unconditionnaly.Miod Vallat
2007-06-24Fix xd and xy disklabel handling.Miod Vallat
2007-06-20b_cylinder does not need to be set on the callpath down into drivers.Theo de Raadt
cpu_disklabel can go away, since nothing anymore needs to use it.. except these two drivers. knock out that code for now to let it compile while miod gets his fix ready for these drivers.
2007-06-20b_cylinder does not need to be set on the callpath down into drivers.Theo de Raadt
cpu_disklabel can go away, since nothing anymore needs to use it; ok miod
2007-06-20In vunmapbuf(), explicitely remove mappings before invoking uvm_km_free().Miod Vallat
Even if the latter would end up removing the mappings by itself, it would do so using pmap_remove() because phys_map is not intrsafe; but some platforms use pmap_kenter_pa() in vmapbuf(). By removing the mappings ourselves, we can ensure the remove function used matches the enter function which has been used. Discussed and theoretical ok art@
2007-06-18more comments that are differentTheo de Raadt
2007-06-18using same words in similar code sequences is goodTheo de Raadt
2007-06-18msg is already gauranteed to be NULLTheo de Raadt
2007-06-17significantly simplified disklabel infrastructure. MBR handling becomes MITheo de Raadt
to support hotplug media on most architectures. disklabel setup and verification done using new helper functions. Disklabels must *always* have a correct checksum now. Same code paths are used to learn on-disk location disklabels, to avoid new errors sneaking in. Tested on almost all cases, testing help from todd, kettenis, krw, otto, dlg, robert, gwk, drahn
2007-06-15permit this to compile againTodd T. Fries
looks right krw@, Righto miod@
2007-06-14some spaces in the wayTheo de Raadt
2007-06-14excessive blank lines making the versions differentTheo de Raadt
2007-06-14set the prototype disklabel to version 1Theo de Raadt
2007-06-14do not depend on previous loop variable, use a constant insteadTheo de Raadt
2007-06-12all disksubr.c did their b_flags manipulation differently (and wrong).Theo de Raadt
correct and unify; ok thib miod
2007-06-09The differences in the last non-homogeneous bounds_check_with_label()Kenneth R Westerback
routines (alpha, vax) prove to be not worth keeping. Move bounds_check_with_label() into the MI world. Eliminate unreliable and almost certainly useless checks for overwriting a disklabel. After discussion with deraadt@
2007-06-09kill stupid character differenceTheo de Raadt
2007-06-09Silence a debug printf.Miod Vallat
2007-06-09by hand i carefully found that all the differences in setdisklabel()Theo de Raadt
implimentations were simply either missing code, or spacing and such. setdisklabel() can become MI now.
2007-06-08all drivers should spoof version 1 labelsTheo de Raadt
2007-06-08- always set the partition disk size to full disk info (from driver)Theo de Raadt
- always store our new fatty 16-partitions-with-full-cpg-info style sun disklabels on the disk. - correct an error in matching old-style 16-partition matching code; the checksum spanned a different region tested by me, groked by krw, which is a lot more than the rest of the post-hackathon exhausted slackers
2007-06-07another XXsize() botchTheo de Raadt
2007-06-07more XXsize() falloutTheo de Raadt
2007-06-07Comment 'fixes'. All bounds_check_with_label now identical except forKenneth R Westerback
vax and alpha.
2007-06-07More bounds_check_with_label homogenization. Fix a couple of typos whileKenneth R Westerback
there. 'so go to it!' deraadt@