summaryrefslogtreecommitdiffstats
path: root/sys/arch/macppc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* even cleaner mach/arch/machdir/archdirderaadt2010-04-261-3/+3
|
* next step towards unification: make all the genassym chunks handle bothderaadt2010-04-261-6/+9
| | | | | arch and machine dependent files (and add the missing files) ok miod drahn
* next unification step: move all MD naming _mach, _machdir, _arch, and _archdirderaadt2010-04-261-8/+12
| | | | ok miod drahn
* first step of unification: spaces at end of lines; comments, etc.deraadt2010-04-261-8/+6
| | | | ok miod
* more cleanup to cope with the change that tries to make proc.h not actderaadt2010-04-213-7/+8
| | | | | like it is everything.h ok tedu
* Some of the line disciplines want to check for suser. Better to pass themtedu2010-04-121-3/+3
| | | | a process instead of using curproc. ok deraadt
* - add and enable pgs(4), a driver for the Programmers Switch found onjasper2010-04-094-25/+103
| | | | | | | recent-ish macs with macgpio(4). Basically dropping one to DDB when pushed. ...and not to be confused by the "reset" button ;-) feedback and ok drahn@
* - don't use memset() where we should use bzero()jasper2010-04-095-16/+16
| | | | | | * no binary change ok drahn@
* OpenBSD uses bus_space_copy_#, not bus_space_copy_region_#. Make sure only themiod2010-04-041-2/+2
| | | | | | first name is used, and remove any #define foo_region foo compatibility defines. Also, on sparc64, do not provide a `raw' version of bus_space_copy.
* Make sure the boundaries of uvm_pglistalloc() calls are set up with lowmiod2010-03-311-2/+2
| | | | | | | being page-aligned, and high being end of page (i.e. high & PAGE_MASK == PAGE_MASK) everywhere, for consistency. Future code will depend on this. ok deraadt@
* PMAP_CANFAIL for bus_dmamem_map on all other architectures (and someoga2010-03-291-6/+18
| | | | | | whitespace tweaks on i386 so that it matches). ok kettenis@
* Change the scsi_cmd function member of scsi_adapter from int tokrw2010-03-231-8/+9
| | | | | | | | | | | | | void. Use XS_NO_CCB error in the scsi command (xs) to report the NO_CCB condition. Eliminates all SUCCESSFULLY_QUEUED and COMPLETE confusion and untangles the midlayer from the adapter a bit more. Eyes and some fixes by miod@ There may be some compile issues on little used (i.e. I don't have any) drivers but the change is mechanical and thus easy to remedy. ok dlg@
* Enable urndis(4) everywhere that has USB enabled to get it tested.mk2010-03-031-1/+2
| | | | Much prodding from deraadt.
* - remove double cvs id'sjasper2010-02-262-4/+2
|
* - this device doesn't provide volume control, so stop whining about it. it's just not there.jasper2010-02-261-3/+2
| | | | ok jakemsr@ drahn@
* 4.7-BETA (also, lo-carb and ozone layer friendly)miod2010-01-261-2/+2
|
* As per NetBSD move HAYAKAWA Koichi's licenses to two clause.jsg2010-01-132-12/+2
|
* Remove a few more settings of ITSDONE in drivers. Only a couplekrw2010-01-131-2/+1
| | | | more to go. Should be a no-op.
* Add uthum(4) to arches I could test it. ok deraadt@.matthieu2009-12-211-1/+2
|
* spacingderaadt2009-12-101-2/+3
|
* Every selwakeup() should have a matching KNOTE() (even if kqueue isn'tnicm2009-11-091-2/+1
| | | | | | | | | | 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
* Move KERNEL_LOCK/UNLOCK dance into softintr_dispatch().kettenis2009-11-081-7/+1
| | | | ok miod@, dms@
* Move IS[12]BYTEMSG and ISEXTMSG defines to a common place.fgsch2009-11-011-5/+1
| | | | Pointed out by miod@. krw@ miod@ ok.
* Use suser when possible. Suggested by miod@.fgsch2009-10-311-2/+2
| | | | miod@ deraadt@ ok.
* Add missing KNOTE() calls after selwakeup(), until we decide if the KNOTE()deraadt2009-10-311-1/+2
| | | | | | | calls can go directly into selwakeup() safely long discussion with nicm, murmers of consent from tedu and miod, noone else seems to care of kqueue is busted as long as it makes their sockets move data fast... pretty sad.
* Do not do strncmp comparisons on dv_xname because longer device names whichderaadt2009-10-264-13/+13
| | | | | | look similar could arrive in the future. Instead, compare directly against dv_cfdata->cf_driver->cd_name Issue originally spotted by miod
* Correct a target name so that we don't rebuild vers.o (and thenguenther2009-10-191-2/+2
| | | | | | | bsd) unless some other object has changed. Rebuild and reinstall in /usr/src/usr.sbin/config/ after updating! "I like it" deraadt@
* Get rid of devact enum, substitute it with an int and coresponding defines.pirofti2009-10-132-6/+6
| | | | | | This is needed for the addition of further suspend/resume actions. Okay deraadt@, marco@.
* Remove dead, never reached code.dms2009-10-051-3/+1
| | | | ok by drahn@
* Generic soft interrupts for macppc. Tested by mk@, deraadt@kettenis2009-10-017-87/+46
| | | | ok miod@
* Make sure we block clock interrupts at IPL_CLOCK and higher.kettenis2009-09-151-1/+3
| | | | ok miod@
* Make sure we really have pending interrupts such that we don't do ankettenis2009-09-131-1/+3
| | | | | | out-of-bounds array access later on. ok drahn@, dms@
* Sync mplock code with the current paradigm used in all other MP platforms.miod2009-09-073-151/+186
| | | | macppc was left unchanged by mistake.
* Remove unused getdevunit(), only sparc and sparc64 have a need for it.miod2009-08-291-29/+2
|
* Harmless sizeof ptr bug in ppc_check_procid(); ok drahn@ kettenis@miod2009-08-271-2/+2
|
* In bmac_init(), invoke bmac_transmit_packet() with the correct packet sizemiod2009-08-251-2/+2
| | | | | | (sizeof(ptr) vs sizeof(*ptr) bug). ok krw@
* Constify the what/name parameter of pci_intr_establish().mk2009-08-227-20/+20
| | | | | | | | | Tested by myself, sthen, oga, kettenis, and jasper. Input from sthen and jasper. ok kettenis (Manpage follows shortly.)
* Replace the error strings that were being passed around with much simplerderaadt2009-08-131-24/+22
| | | | | | | | | 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
* wire vscsi up to a cdevdlg2009-08-131-1/+3
| | | | for claudio@ ok deraadt@
* Apple is hopelessly inconsistent with their firmware, so some machines havekettenis2009-08-121-2/+10
| | | | | an extra smu-i2c-control node where others don't. Handle the difference. Makes the PowerMac9,1 actually find some i2c devices.
* Add support for the "Slots Power" sensor on the PowerMac9,1.kettenis2009-08-121-1/+21
|
* Do not bother initializing bufpages in the md code if the computation ismiod2009-08-111-8/+1
| | | | | exactly the same the mi could will use if bufinit() is invoked with bufpages == 0.
* With the SysV memory allocation changes, allocsys() doesn't do anythingmiod2009-08-111-27/+1
| | | | anymore. Get rid of it completely.
* The PowerMac9,1 has 4 sensors on its smu(4), so increase the maximum number.kettenis2009-08-111-2/+7
| | | | | | 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.
* Introduce option DDB_STRUCT. Kernels compiled with this option (except onmiod2009-08-091-3/+14
| | | | | | | | | 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.
* No need to clean genassym{.,o} during `make clean', genassym.sh does thismiod2009-08-091-2/+2
| | | | for us.
* Rototill system V message queues.blambert2009-08-091-11/+1
| | | | | | | | | | No longer allocate a static amount of memory for messages in MD boot path; message queues, message metadata, and message data now all use dynamic memory, which means that runtime sysctls should now be trivial to implement. Since I'm going to be around all week to fix any breakage, this should probably just go in now.
* Dynamic buffer cache support - a re-commit of what was backed outbeck2009-08-021-7/+1
| | | | | | | | after c2k9 allows buffer cache to be extended and grow/shrink dynamically tested by many, ok oga@, "why not just commit it" deraadt@
* Get rid of the obsolet BUS_BARRIER_xxx constants for bus_space_barrier(), onlymiod2009-07-301-5/+1
| | | | provide and use BUS_SPACE_BARRIER_xxx.
* Make sure all platforms understand the flags argument of bus_space_map() andmiod2009-07-262-13/+17
| | | | | | bus_space_alloc() as a bitmask of flags, and not a boolean controlling cacheability; and make sure the three MI BUS_SPACE_MAP_xxx values documented in the manual page are defined on all platforms as well.