summaryrefslogtreecommitdiff
path: root/sys/arch/macppc
AgeCommit message (Collapse)Author
2012-03-26Add APM_IOC_HIBERNATETheo de Raadt
2012-02-24Correct the spelling of "transferred" and "transferring"Philip Guenthe
from Tobias Ulmer (tobiasu at tmux.org); ok jmc@, krw@
2012-01-29Ansify and remove useless variable.Martin Pieuchot
ok miod@
2012-01-29Start cleaning vgafb(4) to be make it more like vga(4). Remove unusedMartin Pieuchot
function and move vgafb functions to there right place. ok miod@
2012-01-11crank to 5.1-betaTheo de Raadt
2012-01-06Attach ath(4) to cardbus and add it to bsd.rdMartin Pieuchot
ok jsg@, kettenis@, deraadt@
2011-11-19Remove unused function forgotten during the switch to the interactiveMartin Pieuchot
bootloader and make use of strrchr() in hfs_open because we have it. ok krw@
2011-11-19Rewrite the parsing of arguments given to the ofwboot and restore theMartin Pieuchot
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@
2011-11-15Simplify various parts of the puc(4) attachment code. Tested lightlyTheo de Raadt
by krw and myself.
2011-11-10Remove unused %s from a printf(), properly cast const void* to constKenneth R Westerback
int*. From Marco Trillo via tech@ long ago.
2011-11-08Garbage collect now unused MKDEP definitions. ok deraadt@Matthieu Herrb
2011-10-28Enable interrupts while processing off level interrupts. simplify codeDale Rahn
instead of having two levels of looping. commit it for testing deraadt@
2011-10-28Ignore devices with irq 0 on mpcpci bus, the only devices seen thisDale Rahn
way is hardware not found in the openfirmware tree. diff from kettenis@ commit it deraadt@
2011-10-27Specify the TLS variant for each platform.Philip Guenthe
2011-10-24Revert last change, reported increased stablility with the change wasDale Rahn
grossly overstated.
2011-10-22Do not run off level interrupts with external interrupts disabled asDale Rahn
the off level interrupt could lead to a hang. Fixes hang seen by jasper@
2011-10-06ccd goes to the atticTheo de Raadt
discussed with jsing and millert
2011-09-29Fix local types in vgafb_pci_probe(), to match what pci_*_find() expect,Miod Vallat
after the bus_{addr,size}_t type definition change.
2011-09-27Make bus_addr_t and bus_size_t u_long types, instead of either uint32_t orMiod Vallat
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
2011-09-17arithemtic -> arithmeticMiod Vallat
2011-09-16Set the shared priority entry to the value of the current maxipl entry,Dale Rahn
not the index. ok kettenis@
2011-09-04oops, this DPRINTF flavour takes no parentheses.Miod Vallat
2011-09-04Silence awacs_trigger_input by turning a noisy printf into the DPRINTFMiod Vallat
it was intended to be; reported by Donovan Watteau
2011-08-29Return of the long missing powerpc interrupt rewrite. Was working forDale Rahn
several weeks before release on macppc, socppc bugs just fixed.
2011-07-18take us to 5.0-betaTheo de Raadt
2011-07-10Oops. Copy just the comment about the checkdisklabel() call, notKenneth R Westerback
the checkdisklabel() calls themselves. What's good for hppa/hppa64 is not necessarily good for sgi/macppc. Spotted by deraadt@.
2011-07-10If there is recognized MD disk partitioning info, use it to determineKenneth R Westerback
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.
2011-07-08Cleanup calculation of OpenBSD disklabel location on DPME partitions. The labelsKenneth R Westerback
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@
2011-07-08Unbreak macppc bootloader due to libz changes.Dale Rahn
2011-07-08When reading dos labels use DOS_LABELSECTOR and don't use LABELOFFSET. For ↵Kenneth R Westerback
all these 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().
2011-07-07deraadt says disable bluetooth everywhere else tooTed Unangst
2011-07-07Take more care to write 'dos' labels in the same place readdoslabel()Kenneth R Westerback
will look for them. Without changing native label handling. Compile tested on hppa by kettenis@. "I see no issues" deraadt@
2011-07-07The drahn memorial bad kernel build fix: prevent blood pressurePhilip Guenthe
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@
2011-07-06make clean should clean .d files, so as to leave a fresh canvas.Ted Unangst
ok beck deraadt
2011-07-05Recommit the reverted sigacts change now that the NFS use-after-freePhilip Guenthe
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@
2011-07-04Nuke the useless D_KQFILTER flag and just check that d_kqfilter isNicholas Marriott
filled in. Move D_CLONE down to 0x0001 as suggested by thib. ok deraadt thib
2011-07-03Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thingMatthew Dempsky
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
2011-07-02kqueue attach functions should return an errno or 0, not a plain 1. FixNicholas Marriott
the obvious cases to return EINVAL and ENXIO. ok tedu deraadt
2011-06-29Replace all instances of "scsibus* at hba?" with a single "scsibus* atMatthew Dempsky
scsi?" rule, similar to how ethernet PHY drivers attach at mii. Discussed on icb.
2011-06-27repair after last commitTheo de Raadt
2011-06-26if_downall() cannot be done MI in sys_reboot() because vfs_shutdown()Theo de Raadt
might need network (ie. nfs). Move the call to the MD boot() routines. This cause for boot hangs diagnosed by kettenis.
2011-06-23Fix the error path in bus_dmamem_map.Ariane van der Steldt
As discussed on icb: remove the comment, remove pmap_remove (uvm_km_free does that for us). ok oga@, deraadt@
2011-06-17M_WAITOK cleanup of two cases:Michael Knudsen
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.
2011-06-16Removes unused variables.Martin Pieuchot
ok miod@
2011-06-16Removes the always-set-to-1 adbSoftPower variable.Martin Pieuchot
ok miod@
2011-06-16Uses generic confargs to attach the apm(4) and piic(4) drivers instead ofMartin Pieuchot
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@
2011-06-15Add a const char* as first member of struct adb_attach_args, so that we canMiod Vallat
pass a struct confargs * on macppc for some specific children of the adb node, and not confuse real adb device attachments. ok mpi@
2011-06-07Make use of macobio_* methods to manage the i2s GPIOs, remove the customsMartin Pieuchot
gpio_* methods and move the remaining global variables in the softc. ok ratchov@, krw@
2011-06-07Fix the use of mute/volume keys broken by the last API change in audio.cMartin Pieuchot
ok deraadt@
2011-06-05Move the bufcachepercent setting code to MI locations -- set it to 42%Theo de Raadt
for now; that is unlikely to hit some of the remaining starvation bugs. Repair the bufpages calculation too; i386 was doing it ahead of time (incorrectly) and then re-calculating it. ok thib