summaryrefslogtreecommitdiff
path: root/sys/arch/macppc
AgeCommit message (Collapse)Author
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
2011-05-30Remove the freelist member from vm_physsegOwain Ainsworth
The new world order of pmemrange makes this data completely redundant (being dealt with by the pmemrange constraints instead). Remove all code that messes with the freelist. While touching every caller of uvm_page_physload() anyway, add the flags argument to all callers (all but one is 0 and that one already used PHYSLOAD_DEVICE) and remove the macro magic to allow callers to continue without it. Should shrink the code a bit, as well. matthew@ pointed out some mistakes i'd made. ``freelist death, I like. Ok.' ariane@ `I agree with the general direction, go ahead and i'll fix any fallout shortly'' miod@ (68k 88k and vax i could not check would build)
2011-05-25Add dfs(4), a driver to support the Dynamic Frequency Switching featureMartin Pieuchot
found on some G4 PowerBook. Tested by many, thanks. ok sthen@, kettenis@, miod@
2011-05-24On OpenBSD, we've always attached scsibus(4) to umass(4), even forMatthew Dempsky
ATAPI devices. atapiscsi(4) is only for handling ATAPI devices on an ATA bus, so umass(4) shouldn't care about it. ok krw@, dlg@; no objections from deraadt@
2011-05-22Enable ath(4)Martin Pieuchot
ok deraadt@
2011-05-15Unify various gpio access using methods that take an offset relative to theMartin Pieuchot
mac-io bus base address. Needed by upcoming dfs(4) support. On some Apple machines, the openfirmware returns a gpio offset relative to the gpio controller (generaly at 0x50). These offsets should be corrected to be relative to the bus base address. looks fine to kettenis@, ok miod@
2011-05-14pm_* methods are always attached to a PMU, no need to check for hardware.Martin Pieuchot
ok miod@
2011-05-09Refactor queue allocation and initialization into a wdc_alloc_queue()Matthew Dempsky
function, and let attachment code calls this rather than malloc(9). This prevents re-initialization of the queue in shared queue chipsets. Also, add wdc_free_queue() as a complementary function. Earlier version (without wdc_free_queue()) tested by sthen@ and Amit Kulkarni on various pciide(4) chips. ok dlg@
2011-05-05add support for muting the master channel on i2s based cards, this allows theJasper Lievisse Adriaanse
"mute" key on keyboards to function too. tested by kettenis on aoa(4) and snapper(4) by me. from Martin Pieuchot ok kettenis@ ratchov@
2011-05-04fix volume up and down using the keyboard keysJasper Lievisse Adriaanse
from Martin Pieuchot ok ratchov@
2011-04-28- enable fenvMartynas Venckus
- add nearbyint, nearbyintf and nearbyintl implemented using fenv
2011-04-19as confirmed by my 11mo old son, this makes midi keyboards work with macppcTodd T. Fries
"no objection" drahn@
2011-04-18Revert the sigacts diff: NFS can apparently retain pointers to processesPhilip Guenthe
until they're zombies and then send them signals (for intr mounts). Until that is untangled, the sigacts change is unsafe. sthen@ was the victim for this one
2011-04-16Use 'CLR(<buf>->b_flags, B_READ | B_WRITE | B_DONE)' regardless ofKenneth R Westerback
what the previous IO was. Less chance of copy and paste errors. Suggested by miod@.
2011-04-15More than a decade ago, interrupt handlers on sparc started returning 0Theo de Raadt
(interrupt was not for me), 1 (positive interrupt was for me), or -1 (i am not sure...). We have continued with this practice in as many drivers as possible, throughout the tree. This makes some of the architectures use that information in their interrupt handler calling code -- if 1 is returned (and we know this specific machine does not have edge-shared interrupts), we finish servicing other possible handlers on the same pin. If the interrupt pin remains asserted (from a different device), we will end up back in the interrupt servicing code of course... but this is cheaper than calling all the chained interrupts on a pin. This does of course count on shared level interrupts being properly sorted by IPL. There have been some concerns about starvation of drivers which incorrectly return 1. Those drivers should be hunted down so that they return -1. ok drahn
2011-04-15In days of yore one could arbitrarily whack buffer flags. Those daysKenneth R Westerback
are past. Use CLR() and SET() to modify necessary flags while leaving the flags used by the buffer cache in peace. Should make bufcache code much less confused about the state of the bufs used in reading/writing disklabels. Other such flag abuses no doubt await a visit. Errors in original diff found by miod@. ok beck@ deraadt@
2011-04-15Correct the sharing of the signal handling state: stuff that shouldPhilip Guenthe
be shared (p_sigignore, p_sigcatch, P_NOCLDSTOP, P_NOCLDWAIT) moves to struct sigacts, wihle stuff that should be per rthread (ps_oldmask, SAS_OLDMASK, ps_sigstk) moves to struct proc. Treat the coredumping state bits (ps_sig, ps_code, ps_type, ps_sigval) as per-rthread until our locking around coredumping is better. Oh, and remove the old SunOS-compat ps_usertramp member. "I like the sound of this" tedu@
2011-04-15Convert the kernel Makefiles to autogenerate dependencies during compilationPhilip Guenthe
using the -MD option to cc, with -MP, -MT, and -MF where needed, converting "make depend" to a no-op. This increases parallelism for those using "make -j" and keeps the dependencies up to date with each compilation automatically. sparc and vax users will need to rebuild gcc with support for the -M[PTF] options before config'ing with this diff.
2011-04-10Include <libkern.h> to get proper strrchr() prototype.Miod Vallat