summaryrefslogtreecommitdiff
path: root/sys/arch/macppc
AgeCommit message (Collapse)Author
2008-03-01Print consoleness the canonical way.Mark Kettenis
tested by deraadt@, ok krw@
2008-02-24Add commented out Bluetooth HID sectionUwe Stuehler
ok deraadt
2008-02-204.3-betaMiod Vallat
2008-02-15Reenable idle modes on powerpc. Tested by kettenis and myself.Dale Rahn
2008-01-23Cleanup cn_pri. Change constants to more meaningful names, rather thanJoel Sing
the hp300 related ones currently in use. CN_NORMAL becomes CN_LOWPRI, CN_INTERNAL becomes CN_MIDPRI and CN_REMOTE becomes CN_HIGHPRI. ok miod@
2008-01-19Activate upgt(4) for macppc. Tested for a while on my PowerBook.Marcus Glocker
OK dlg@
2007-12-11reword license to change regents to authors, and remove advertising clause.Ted Unangst
cleared with all original authors. ok deraadt
2007-12-11remove support for 8kHz sample rates. not all i2s based audioJacob Meuser
devices support 8kHz sample rates, and there is insufficient code to enable it properly on the devices that do support 8kHz. fixes "evil sound" problem reported by ajacoutot@ and jdixon@. ok deanna@, ratchov@, ajacoutot@
2007-12-09Add an empty pccbb_attach_hook.Mark Kettenis
2007-12-04Remove remains of the idle pcb/stack.Mark Kettenis
ok miod@
2007-11-30Define NORMAL_C_NOP everywhere.Miod Vallat
2007-11-27typos; ok jmc@Martynas Venckus
sys/dev/pci/pciide.c from naddy@
2007-11-26Move the implementation of __mp_lock (biglock) into machine dependentArtur Grabowski
code. At this moment all architectures get the copy of the old code except i386 which gets a new shiny implementation that doesn't spin at splhigh (doh!) and doesn't try to grab the biglock when releasing the biglock (double doh!). Shaves 10% of system time during kernel compile and might solve a few bugs as a bonus. Other architectures coming shortly. miod@ deraadt@ ok
2007-11-26few more dribbles of LIBKERN cleanupTheo de Raadt
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-11-24Some macppc models (e.g. the 1.5 GHz G4 MacMini) have a large clock driftMarc Balmer
which is due to the timecounter running at a different frequency than what OpenFirmware tells us. On such machines, measure the actual timecounter frequency (triggered by a table of affected models) and use this measured value instead. This brings down the drift to values where adjtime()/adjfreq() triggered by ntpd(8) can tame the clock. feedback many, ok miod, kettenis
2007-11-17- move the re/bwi CardBus entries in the GENERIC kernel config intoBrad Smith
the CardBus section. - add forgotten re CardBus entry to the RAMDISK kernel config. ok dlg@
2007-11-12/dev/openpromMark Kettenis
ok miod@, deraadt@
2007-11-10Activate umbg(4) on macppc.Marc Balmer
ok jsg, dlg.
2007-11-05fix and use DEVICE_IS_VGA_PCI, makes vgafb_pci_match() much simplerMartin Reindl
ok oga@ brad@
2007-11-05audio encoding conversion cleanupJacob Meuser
- the endianness of the conversions don't depend on the endianness of machine the conversions are built on, but the endianness of the audio data itself. choose encoding conversions explicitly, instead of relying on #defines based on the endianness of the machine. - replace home-grown conversions with comparable conversions in auconv.c and mulaw.c - use the proper conversion for ulinear_be:16 -> slinear_le:16 in auixp(4) thanks ajacoutot@ and sthen@ for !x86 testing
2007-11-04replace even more ctob/btoc with ptoa/atopMartin Reindl
2007-10-27Grab kernel lock before calling interrupt handlers.Mark Kettenis
ok miod@, deraadt@
2007-10-22stoped -> stoppedJoel Sing
ok miod@
2007-10-14Provide a way to attach spdmem(4) by faking an I2C bus with EEPROMs withMark Kettenis
contents from OpenFirmware. ok deraadt@
2007-10-14Implement OF_getproplen().Mark Kettenis
ok deraadt@
2007-10-10GENERIC.MP dirs will show up here some timeTheo de Raadt
2007-10-10Disable PSL_POW code for now in cpu_idle_cycle, because it does not yetTheo de Raadt
do the cache flush / instruction cache disable / tlb invalidate dance. For some reason in a switchto world this suddenly matters or machines become really slow running NFS... huh? figured out with kettenis
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-08enable spdmem where it mattersTheo de Raadt
2007-10-02Apply (with slight variants) this elimination of bzero() with M_ZERO:Kenneth R Westerback
- if ((mapstore = malloc(mapsize, M_DEVBUF, - (flags & BUS_DMA_NOWAIT) ? M_NOWAIT : M_WAITOK)) == NULL) + if ((mapstore = malloc(mapsize, M_DEVBUF, (flags & BUS_DMA_NOWAIT) ? + (M_NOWAIT | M_ZERO) : (M_WAITOK | M_ZERO))) == NULL) return (ENOMEM); - bzero(mapstore, mapsize);
2007-09-30Enable Broadcom wireless, bwi(4).Jonathan Gray
If people testing could send mail to mglocker and myself we'd appreciate it. ok mglocker@
2007-09-22M_ZERO -> bzero.Kenneth R Westerback
ok art@
2007-09-17Only the most obvious bzero() -> M_ZERO changes. No cast changes, noKenneth R Westerback
MALLOC/FREE, etc. Just adding M_ZERO to malloc() and deleting an immediately adjacent bzero().
2007-09-09/enet apparently maps to mc0; gwk okTheo de Raadt
2007-09-09uchcom(4) has been verified to work by djm@, so add it to allJonathan Gray
USB capable archs.
2007-09-03Typos from miod. 'functin' -> 'functin' in some comments.Kenneth R Westerback
2007-08-10Enable CF malo for macppc, it also works there.Marcus Glocker
OK claudio@
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-25crank to 4.2-betaTheo de Raadt
2007-07-24bthub for macppc to make xsa happy.Michael Knudsen
todd will commit the MAKEDEV bits later.
2007-06-24When bootfile was made global so that macppc could modify it, itTom Cosgrove
clashed with a global variable already used by the bootblocks. Therefore rename bootfile here to kernelfile. ok drahn@
2007-06-24rework sensor tasks to use the kernels generic workq rather than a specialDavid Gwynne
kernel thread of its own. the api has changed (which will be fixed in the manpage shortly) so all the users of sensor tasks that i can find have been fixed too. noone tested, so its going in to force people to run with it. "put it in" deraadt@
2007-06-23Enable workaround for decrementer exception problem.Dale Rahn
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-18split out dpme disklabel reading, simplifying things significantlyTheo de Raadt
and making it look a lot more like other architectures; tested by myself and drahn and gwk
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-14When macppc was switched to __HAVE_VM_PAGE_MD, data structures were incorrectlyDale Rahn
exposed to userland, protect with _KERNEL. Tested by Antoine Jacoutot
2007-06-14Remove the definition and usage of the USB_DECLARE_DRIVER_CLASS andMarc Balmer
USB_DECLARE_DRIVER macros. No binary change. ok dlg.