summaryrefslogtreecommitdiff
path: root/sys/arch/macppc
AgeCommit message (Collapse)Author
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.
2007-06-14excessive blank lines making the versions differentTheo de Raadt
2007-06-14set the prototype disklabel to version 1Theo de Raadt
2007-06-14Remove some debug prints which I let slip in.Dale Rahn
2007-06-14do not depend on previous loop variable, use a constant insteadTheo de Raadt
2007-06-14boot code does not do daddr64_t yet. 'unchange that' deraadt@Dale Rahn
2007-06-13Switch macppc to the interactive bootloader in stand/boot.Dale Rahn
Much more useable on serial console systems.
2007-06-12all disksubr.c did their b_flags manipulation differently (and wrong).Theo de Raadt
correct and unify; ok thib miod
2007-06-12Remove the definition and use of the device_ptr_t which was a struct device *.Marc Balmer
No binary change. ok mk.
2007-06-11Remove the usb_proc_ptr type definition, which was really a 'struct proc *'Marc Balmer
only. No binary change. ok mk.
2007-06-11inlude powerpc/include/*.h in macppc's make tags target.Thordur I. Bjornsson
ok drahn@
2007-06-09The differences in the last non-homogeneous bounds_check_with_label()Kenneth R Westerback
routines (alpha, vax) prove to be not worth keeping. Move bounds_check_with_label() into the MI world. Eliminate unreliable and almost certainly useless checks for overwriting a disklabel. After discussion with deraadt@
2007-06-09Enable re* at cardbus?, tested with a D-Link DGE-660TD card.Marc Balmer
ok deraadt.
2007-06-09unify DOSPTYP_FAT* code (some architectures missed a filesystem type or two)Theo de Raadt
2007-06-09by hand i carefully found that all the differences in setdisklabel()Theo de Raadt
implimentations were simply either missing code, or spacing and such. setdisklabel() can become MI now.
2007-06-09annoying spacing glitch which makes the diffs biggerTheo de Raadt
2007-06-08include files.bluetooth, so that bluetooth support can be compiled,Jasper Lievisse Adriaanse
if enabled. ok gwk@
2007-06-08all disklabels read from the kernel now always contain a total sectorTheo de Raadt
size which is the REAL DISK SIZE. always. if a driver fails to set this right, please fix it. agreed with otto and krw
2007-06-07More bounds_check_with_label homogenization. Fix a couple of typos whileKenneth R Westerback
there. 'so go to it!' deraadt@
2007-06-06now that all partition size/offsets are potentially 64-bit, change theTheo de Raadt
type of all variables to daddr64_t. this includes the APIs for XXsize() and XXdump(), all range checks inside bio drivers, internal variables for disklabel handling, and even uvm's swap offsets. re-read numerous times by otto, miod, krw, thib to look for errors
2007-06-06a fair sprinking of knf, code movement, and sometimes character-by-characterTheo de Raadt
accuracy so that the variious disksubr.c's can be compared easier. setdisklabel() starts taking an int for openmask. ok krw, and read by quite a few other people
2007-06-05Remove the comment "Static function protoypes". Static is gone in USB.Marc Balmer
no binary change.
2007-06-05Remove the "Static" function declaration. It is defined to beMarc Balmer
empty and confuses the source code reader. As discussed with dlg and jsg.
2007-06-05use six new macros to access & store the 48-bit disklabel fields relatedTheo de Raadt
to size. tested on almost all machines, double checked by miod and krw next comes the type handling surrounding these values
2007-06-04do not shuffle dev 4 under the carpet; make svnd work again; uncookieOtto Moerbeek
for deraadt@ ok irc@
2007-06-02oops, why did i delete this. bizzareTheo de Raadt