summaryrefslogtreecommitdiff
path: root/sys/arch/macppc
AgeCommit message (Collapse)Author
2016-04-29Do not remove local symbols from the table.Martin Pieuchot
ddb(4) can now see static functions. That doesn't mean we should start declaring functions as ``static'', however it helps for the few existing exceptions. ok deraadt@, kettenis@
2016-04-25remove systraceTed Unangst
2016-04-25Do not check if the CPU is inside the idle loop when enterting ddb(4).Martin Pieuchot
This check only makes sense when a frame is saved for interrupts, not for a (simulated) breakpoint. This allows us to put breakpoints in interrupt context and have them work if an interrupt fires while the CPU is idle.
2016-04-24Remove 'option COMPAT_PCVT' now that X doen't use it anymore.Matthieu Herrb
An X server built after april 3 is needed to be able to start X with the new kernel. ok kettenis@
2016-04-20pool_setipl for floating point context thingsDavid Gwynne
ok kettenis@
2016-04-13G/C IFQ_SET_READY().Martin Pieuchot
2016-03-30for some time now mandoc has not required MLINKS to functionJason McIntyre
correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
2016-03-15not compiled before commitTheo de Raadt
2016-03-14Change a bunch of (<blah> *)0 to NULL.Kenneth R Westerback
ok beck@ deraadt@
2016-03-05One ddb interface is enough for ppc.Martin Pieuchot
2016-03-05Define db_reg_t like the other archs by typedef'ing "struct trapframe".Martin Pieuchot
This will allow us to use some of the DDB macros on trapframe which are not DDB_REGS.
2016-02-28Rename ddb_trap_glue() to db_trap_glue().Martin Pieuchot
Let's keep the 'db_' prefix for all ddb(4) functions that should not be instrumented.
2016-02-26Remove stale RAIDframe entries from chrtoblktbl.natano
While there truncate the tables to the minimum required size; chrtoblk() and blktochr() are designed to handle a table shorter than cdevsw. "Looks good to me" deraadt@
2016-02-24Restore validity checks for the disklabels read from disk. TheyKenneth R Westerback
were suppressed in 2011 to address a problem that has since been solved in a more permanent way. Without the validity check proper disklabel discovery relied on a particular I/O failure, and the I/O failure was 'solved' by the introduction of readdisksector(). Fixes problem reading CDROM disklabels discovered by mlarkin@ while trying to install hppa. Compile check/typo discovery and ok deraadt@.
2016-01-08Move HID support files out of dev/usb into new dev/hid directoryJoshua Stein
These files aren't USB-specific and were used by the previous Bluetooth implementation, and will be used by the upcoming HID-over-i2C implementation ok deraadt previous version ok kettenis and mpi
2016-01-08Enable uonerng(4) where ualea(4) is already present.Martin Pieuchot
2015-12-19move to 5.9-betaTheo de Raadt
2015-12-19Enable agp(4), this makes X11 usable on my Dual G5 with radeondrm(4).Martin Pieuchot
ok kettenis@
2015-12-08No trailers has been the default and only option for 20 years, yet someTed Unangst
drivers still set IFF_NOTRAILERS while others do not. Remove all usage of the flag from the drivers which in ancient times used it (and the modern drivers which blindly copied it from those drivers of yore). suggested by guenther. ok mpi
2015-11-25replace IFF_OACTIVE manipulation with mpsafe operations.David Gwynne
there are two things shared between the network stack and drivers in the send path: the send queue and the IFF_OACTIVE flag. the send queue is now protected by a mutex. this diff makes the oactive functionality mpsafe too. IFF_OACTIVE is part of if_flags. there are two problems with that. firstly, if_flags is a short and we dont have any MI atomic operations to manipulate a short. secondly, while we could make the IFF_OACTIVE operates mpsafe, all changes to other flags would have to be made safe at the same time, otherwise a read-modify-write cycle on their updates could clobber the oactive change. instead, this moves the oactive mark into struct ifqueue and provides an API for changing it. there's ifq_set_oactive, ifq_clr_oactive, and ifq_is_oactive. these are modelled on ifsq_set_oactive, ifsq_clr_oactive, and ifsq_is_oactive in dragonflybsd. this diff includes changes to all the drivers manipulating IFF_OACTIVE to now use the ifsq_{set,clr_is}_oactive API too. ok kettenis@ mpi@ jmatthew@ deraadt@
2015-11-24You only need <net/if_dl.h> if you're using LLADDR() or a sockaddr_dl.Martin Pieuchot
2015-11-23sync to GENERICTheo de Raadt
2015-11-23Attaches zs(4) as "zs" not "zsc".Martin Pieuchot
Incoherency brought by jmc@ and schwarze@ because the SYNOPSIS of the corresponding manual do not match its NAME. This is one step further in the zs(4) unification... Go dokey go! Tested by jmatthew@, ok sebastia@, deraadt@
2015-11-15everyting -> everythingMiod Vallat
2015-11-15Make sure every mtmsr instruction disabling external interrupts is immediatelyMiod Vallat
followed by an isync. ok mpi@
2015-11-14No need to include <net/bpfdesc.h>Martin Pieuchot
Now that "struct bpf_d" depends on <sys/srp.h> this is one of the offender for removing the header from <sys/param.h>
2015-11-01Remove the definition of USRTEXT. It has no relevance outside of the non-PIEMiod Vallat
a.out world. ok deraadt@ kettenis@
2015-10-25arp_ifinit() is no longer needed.Martin Pieuchot
2015-10-23Allocate a new major for tap(4) also note that pseudo-device tun is for tapClaudio Jeker
as well. OK dlg@ mpi@
2015-10-21Do not call uvm_swap_finicrypt_all() a second time in dumpsys().Martin Pieuchot
ok tedu@, deraadt@, miod@
2015-09-30Remove some trailing whitespace.Kenneth R Westerback
2015-09-30Use consistant whitespace/comments for #define'ing LABELSECTOR,Kenneth R Westerback
LABELOFFSET and MAXPARTITIONS. Easier on the eye when scanning through all these files. No functional change.
2015-09-28More mechanical switching to readdisksector(), although this is aKenneth R Westerback
slightly different pattern. hppa/macppc compile and boot so hppa64/aviion surely do too! ok deraadt@
2015-09-28Use readdisksector() instead of manual buf initialization.Kenneth R Westerback
ok deraadt@
2015-09-19trivial "if(x) free(x)" replacement by "free(x)"Sebastien Marie
ok miod@
2015-09-14unify free(NULL,size) behaviour by allowing passing NULLSebastien Marie
ok millert@ jasper@
2015-09-13remove deltaTheo de Raadt
2015-09-11Build actual boot code with -D_STANDALONE so that we do not include userlandMiod Vallat
headers by mistake.
2015-09-08sizes for free(); ok semarieTheo de Raadt
2015-09-06seperate a variable into two, so that the size of a free() is remembered.Theo de Raadt
ok semarie
2015-09-06pretty simple size for free()Theo de Raadt
2015-08-30Enable xhci(4) now that it attaches correctly on my G5.Martin Pieuchot
2015-08-30Map the whole config1 space based on the size read from theMartin Pieuchot
device-tree. With this change, supplementary PCIe cards are now properly detected. This should prevents the kernel from faulting when reading unmapped PCI addresses as reported by Donovan Watteau on ppc@. ok kettenis@
2015-08-24Workaround for slow bm(4) from NetBSD PR 33667 via Donovan Watteau onMartin Pieuchot
bugs@.
2015-08-14replace the asm mutexes with a c implementation.David Gwynne
there's no real functional advantage to this, except that it will make it easier to add deadlock detection to the code. this is modelled on the c mutex implementation thats on alpha, mips64, and hppa. ok mpi@ kettenis@
2015-07-2917 years ago, setfault() was modified to save the status register in theMiod Vallat
faultbuf. But 1/ sr was only restored for machine check exceptions, and 2/ the way it was saved was unsafe if interrupts were enabled, and could cause %r2 to be lost. Discussing this with deraadt@ at the end of c2k15, this was probably needed for the old VI boards which were the target of the original powerpc port, came with a worse-than-Genesi openfirmware. Since then, machine check exceptions have been unheard of; or, if they happen, they do not need the status register to be restored. ok mpi@ deraadt@
2015-07-21add braces to avoid an uninitialised variable useJonathan Gray
ok mpi@ looks correct miod@
2015-07-17remove obsolete INET kernel optionTed Unangst
2015-07-17Make sound cards work on older PowerMacs.Martin Pieuchot
On such machines the device-tree contains absolute addresses for the various sound buttons and the hardware was not properly initiliazed. Problem reported and fix tested by Fabian Frédérick.
2015-07-17Remove {LOAD,COUNT}_TEXTA from libsa loadfile, it only made sense for a.outMiod Vallat
kernels and we no longer have any.