summaryrefslogtreecommitdiffstats
path: root/sys/arch/macppc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* create new machine/_float.h which is namespace clean. create a newderaadt2012-06-263-6/+3
| | | | | | | | | MI float.h which pulls in and defines the values that are needed from there, and repair sys/limits.h so that it defines the values it needs as well (depending on POSIX version, XPG version, etc). guenther has a more exact selection of that coming for limits.h. this also fixes a few mistakes for the vax. reviewed by kettenis and guenther.
* Only allow the memory and mmio regions to be mmap()'ed at their realmpi2012-06-216-151/+58
| | | | | | | | | | | addresses, remove the magic value to uniformize access to the mmio and doesn't map the unused pseudo-vga registers. While here simplify the console attachement logic and removed some unused global variables. Tested by matthieu@ and myself on various different G3 and G4 models. ok kettenis@
* move to 5.2-betaderaadt2012-06-201-2/+2
|
* tedu the raidframe.jsing2012-04-061-4/+3
| | | | ok deraadt@
* Add APM_IOC_HIBERNATEderaadt2012-03-261-1/+2
|
* Correct the spelling of "transferred" and "transferring"guenther2012-02-241-2/+2
| | | | from Tobias Ulmer (tobiasu at tmux.org); ok jmc@, krw@
* Ansify and remove useless variable.mpi2012-01-291-7/+2
| | | | ok miod@
* Start cleaning vgafb(4) to be make it more like vga(4). Remove unusedmpi2012-01-293-111/+45
| | | | | | function and move vgafb functions to there right place. ok miod@
* crank to 5.1-betaderaadt2012-01-111-2/+2
|
* Attach ath(4) to cardbus and add it to bsd.rdmpi2012-01-062-2/+5
| | | | ok jsg@, kettenis@, deraadt@
* Remove unused function forgotten during the switch to the interactivempi2011-11-192-61/+2
| | | | | | bootloader and make use of strrchr() in hfs_open because we have it. ok krw@
* Rewrite the parsing of arguments given to the ofwboot and restore thempi2011-11-192-26/+27
| | | | | | | | | | | possibility to boot a kernel from an HFS partition when there is no OpenBSD partition on the disk. Problem reported by cbsoleil at gmail.com and analysed by otto@. Tested by otto@, krw@ and drahn@ ok krw@, drahn@
* Simplify various parts of the puc(4) attachment code. Tested lightlyderaadt2011-11-151-3/+1
| | | | by krw and myself.
* Remove unused %s from a printf(), properly cast const void* to constkrw2011-11-101-3/+3
| | | | int*. From Marco Trillo via tech@ long ago.
* Garbage collect now unused MKDEP definitions. ok deraadt@matthieu2011-11-081-2/+1
|
* Enable interrupts while processing off level interrupts. simplify codedrahn2011-10-281-31/+31
| | | | | instead of having two levels of looping. commit it for testing deraadt@
* Ignore devices with irq 0 on mpcpci bus, the only devices seen thisdrahn2011-10-281-2/+2
| | | | | way is hardware not found in the openfirmware tree. diff from kettenis@ commit it deraadt@
* Specify the TLS variant for each platform.guenther2011-10-271-0/+3
|
* Revert last change, reported increased stablility with the change wasdrahn2011-10-241-5/+28
| | | | grossly overstated.
* Do not run off level interrupts with external interrupts disabled asdrahn2011-10-221-31/+8
| | | | the off level interrupt could lead to a hang. Fixes hang seen by jasper@
* ccd goes to the atticderaadt2011-10-061-5/+4
| | | | discussed with jsing and millert
* Fix local types in vgafb_pci_probe(), to match what pci_*_find() expect,miod2011-09-291-3/+4
| | | | after the bus_{addr,size}_t type definition change.
* Make bus_addr_t and bus_size_t u_long types, instead of either uint32_t ormiod2011-09-271-4/+4
| | | | | | | uint64_t, depending upon the platform; this makes the declaration of these types consistent accross all our supported platform, and we do not intend to support a platform where bus_addr_t could be larger than the size of the cpu register. Requested by deraadt@ during s2k11
* arithemtic -> arithmeticmiod2011-09-171-2/+2
|
* Set the shared priority entry to the value of the current maxipl entry,drahn2011-09-161-3/+4
| | | | not the index. ok kettenis@
* oops, this DPRINTF flavour takes no parentheses.miod2011-09-041-2/+2
|
* Silence awacs_trigger_input by turning a noisy printf into the DPRINTFmiod2011-09-041-2/+2
| | | | it was intended to be; reported by Donovan Watteau
* Return of the long missing powerpc interrupt rewrite. Was working fordrahn2011-08-295-735/+566
| | | | several weeks before release on macppc, socppc bugs just fixed.
* take us to 5.0-betaderaadt2011-07-181-2/+2
|
* Oops. Copy just the comment about the checkdisklabel() call, notkrw2011-07-101-3/+2
| | | | | | | the checkdisklabel() calls themselves. What's good for hppa/hppa64 is not necessarily good for sgi/macppc. Spotted by deraadt@.
* If there is recognized MD disk partitioning info, use it to determinekrw2011-07-101-3/+11
| | | | | | | where to write the OpenBSD disklabel even if there isn't yet a valid OpenBSD disklabel at that location. Alpha/Mac68k/Sparc/Sparc64 to come.
* Cleanup calculation of OpenBSD disklabel location on DPME partitions. The labelskrw2011-07-081-7/+7
| | | | | | | | | should go in the first block of the OpenBSD partition. Don't try to fake this out by tweaking the partition offset, which just confused other disklabel consumers. Problem noted on ppc@ by Mathieu Olivier some time ago. ok drahn@
* Unbreak macppc bootloader due to libz changes.drahn2011-07-082-2/+4
|
* When reading dos labels use DOS_LABELSECTOR and don't use LABELOFFSET. For all thesekrw2011-07-081-3/+3
| | | | | | arch's LABELSECTOR == DOS_LABELSECTOR == 1, and LABELOFFSET == 0. Thus, to quote bob, "This is a no-op". Makes the expression used when writing label the same as the one used in readdoslabel().
* deraadt says disable bluetooth everywhere else tootedu2011-07-071-11/+10
|
* Take more care to write 'dos' labels in the same place readdoslabel()krw2011-07-071-5/+11
| | | | | | | | will look for them. Without changing native label handling. Compile tested on hppa by kettenis@. "I see no issues" deraadt@
* The drahn memorial bad kernel build fix: prevent blood pressureguenther2011-07-071-4/+6
| | | | | | | | spikes in other developers by making it so that removal of a .d file without removing the corresponding object will result in the latter being treated as out of date. ok beck@ art@ drahn@
* make clean should clean .d files, so as to leave a fresh canvas.tedu2011-07-061-2/+2
| | | | ok beck deraadt
* Recommit the reverted sigacts change now that the NFS use-after-freeguenther2011-07-051-8/+8
| | | | | | | | problem has been tracked down. This fixes the sharing of the signal handling state: shared bits go in sigacts, per-rthread bits goes in struct proc. ok deraadt@
* Nuke the useless D_KQFILTER flag and just check that d_kqfilter isnicm2011-07-041-2/+2
| | | | | | filled in. Move D_CLONE down to 0x0001 as suggested by thib. ok deraadt thib
* Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thingmatthew2011-07-031-8/+1
| | | | | | | | that's ever used it, and it's long since been changed to use DVACT_{QUIESCE,SUSPEND,RESUME} instead. ok deraadt@, dlg@; miod@ also agreed with this idea when I brought it up a few weeks ago
* kqueue attach functions should return an errno or 0, not a plain 1. Fixnicm2011-07-021-2/+2
| | | | | | the obvious cases to return EINVAL and ENXIO. ok tedu deraadt
* Replace all instances of "scsibus* at hba?" with a single "scsibus* atmatthew2011-06-292-32/+4
| | | | | | scsi?" rule, similar to how ethernet PHY drivers attach at mii. Discussed on icb.
* repair after last commitderaadt2011-06-271-15/+11
|
* if_downall() cannot be done MI in sys_reboot() because vfs_shutdown()deraadt2011-06-261-11/+17
| | | | | might need network (ie. nfs). Move the call to the MD boot() routines. This cause for boot hangs diagnosed by kettenis.
* Fix the error path in bus_dmamem_map.ariane2011-06-231-6/+2
| | | | | | | As discussed on icb: remove the comment, remove pmap_remove (uvm_km_free does that for us). ok oga@, deraadt@
* M_WAITOK cleanup of two cases:mk2011-06-171-2/+3
| | | | | | | | | | | | | | | | 1) Allocating with M_WAITOK, checking for NULL, and calling panic() is pointless (malloc() will panic if it can't allocate) so remove the check and the call. 2) Allocating with M_WAITOK, checking for NULL, and then gracefully handling failure to allocate is pointless. Instead also pass M_CANFAIL so malloc() doesn't panic so we can actually handle it gracefully. 1) was done using Coccinelle. Input from oga. ok miod.
* Removes unused variables.mpi2011-06-161-17/+1
| | | | ok miod@
* Removes the always-set-to-1 adbSoftPower variable.mpi2011-06-161-25/+1
| | | | ok miod@
* Uses generic confargs to attach the apm(4) and piic(4) drivers instead ofmpi2011-06-163-24/+19
| | | | | | | | the specifics adb arguments. Now apm(4) no longer depends on adb stuff and piic(4) doesn't attach on a via-cuda machine (e.g. my color G3 iMac). ok miod@