summaryrefslogtreecommitdiff
path: root/sys/arch/socppc
AgeCommit message (Collapse)Author
2014-07-13boot(9): Cosmetic changes to improve diff'ability.Masao Uebayashi
2014-07-13Cosmetic changes to reduce diffs.Masao Uebayashi
2014-07-13move putchar() into libsaJasper Lievisse Adriaanse
"sure" miod@
2014-07-12move getchar() into libsa where applicableJasper Lievisse Adriaanse
ok miod@
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
after discussions with beck deraadt kettenis.
2014-07-11"It's not the years, honey; it's the mileage."Ted Unangst
bluetooth support doesn't work and isn't going anywhere. the current design is a dead end, and should not be the basis for any future support. general consensus says to whack it so as to not mislead the unwary.
2014-07-11Convert bus_dmamem_map(9) to km_alloc(9) in order to make it fail andMartin Pieuchot
not sleep if the allocator cannot obtain a lock when BUS_DMA_NOWAIT is specified. idea and inputs from kettenis@, ok miod@
2014-07-10Set cold to 1 before executing the DVACT_POWERDOWN handlers when halting orMartin Pieuchot
rebooting a machine, like it is done in the hibernate case. At least some USB host controller drivers rely on this to busy way instead of sleeping. Avoid a panic on macppc with an uhci(4) cardbus plugged in. ok deraadt@, uebayashi@
2014-07-10boot(9): Remove comments about RB_*, "cold", and savectx()Masao Uebayashi
Again remove slightly different comments to reduce diffs. These will be re-added once boot() become MI and its specification is clearly re-defined. OK miod@
2014-07-10boot(): Remove comments about RB_TIMEBAD to reduce diffsMasao Uebayashi
RB_TIMEBAD is documented well enough that the comment is not needed. sparc64 does slightly different and its comment is left with XXX. OK deraadt@ miod@
2014-07-10boot(): Unify declarationsMasao Uebayashi
OK deraadt@
2014-07-08cut things that relied on mclgeti for rx ring accounting/restriction overDavid Gwynne
to using if_rxr. cut the reporting systat did over to the rxr ioctl. tested as much as i can on alpha, amd64, and sparc64. mpi@ has run it on macppc. ok mpi@
2014-06-02Bump DFLSSIZ to 2MB to match most of the other platforms.Brad Smith
ok miod@
2014-05-31Revert previous diff setting cold to 1 on shutdown because it breaks machineMartin Pieuchot
with softraid(4) disks. softraid(4) is the last real consumer of the doshutdownhooks(9) API and it is not trivial to convert its hook to a DVACT_POWERDOWN handler since the latter does not allow to sleep.
2014-05-30Set cold to 1 before executing the DVACT_POWERDOWN handlers when halting orMartin Pieuchot
rebooting a machine, like it is done in the hibernate case. At least some USB host controller drivers rely on this to busy way instead of sleeping. Avoid a panic on macppc with an uhci(4) cardbus plugged in. ok deraadt@, uebayashi@
2014-05-19There is no need to remember which usb(4) device is the child of an USBMartin Pieuchot
host controller because autoconf(9) already does it. Breakage reported by todd@
2014-05-09Format string fixes and removal of -Wno-format for *ppc kernels.Miod Vallat
2014-04-07Enable upd(4) on archs where uhidev(4) is present, requested by mpi@.andre
2014-04-07Add axen(4) wherever axe(4) is.Brad Smith
ok mpi@ yuo@
2014-04-01Remove the almost unused abstraction around "struct firmware" and useMartin Pieuchot
instead a single function ppc_mem_regions() required by the ppc pmap. ok kettenis@
2014-03-31Including <uvm/uvm_extern.h> is enough, no need for <uvm/uvm.h> or more.Martin Pieuchot
2014-03-29It's been a quarter century: we can assume volatile is present with that name.Philip Guenther
ok dlg@ mpi@ deraadt@
2014-03-26Move p_emul and p_sigcode from proc to process.Philip Guenther
Tweak the handling of ktrace EMUL when changing ktracing: only generate one per process (not one per thread) and pass the correct proc pointer down to the VFS layer. Permit generating of NAMI and CSW records inside ktrace(2) itself. ok deraadt@ millert@
2014-03-23Initialize additional BATs (IBAT4-IBAT7 and DBAT4-IBAT7). The rb600 firmwareMark Kettenis
has these enabled and this leads to memory corruption that (surprisingly) only shows up when running PIE.
2014-03-22Move p_sigacts from struct proc to struct process.Philip Guenther
testing help mpi@
2014-03-13get rid of the assumption that the head of the alldevs list is theDavid Gwynne
"mainbus" device. this breaks when mpath is enabled because it attaches before mainbus and therefore takes the head position. have autoconf provide device_mainbus() which looks up mainbus_cd, and use that instead. discussed with deraadt who just wants mpath stuff to move forward despite there being many ways to shine this particular turd.
2014-02-08Don't unmask interrupts that should be left blocked because we're at aMark Kettenis
higher spl. Fixes booting my n1200 with a usb disk plugged in.
2014-02-07Initializing the time from an uninitialized variable isn't a very good idea.Mark Kettenis
While there, fix some indentation and adjust things for 64-bit time_t.
2014-01-30Move declaration of struct vm_page_md from <machine/vmparam.h> toMiod Vallat
<machine/pmap.h> where it belongs, and compensate in <uvm/uvm_extern.h> by including <uvm/uvm_pmap.h> before <uvm/uvm_page.h>. Tested on all MACHINE_ARCH but amd64 and i386 (and hppa64).
2014-01-24Do not protect struct vm_page_md with defined(_KERNEL), for userland uvmMiod Vallat
grovellers need to know it to be able to get the right size for struct vm_page.
2014-01-23unifdef -D__HAVE_VM_PAGE_MD - no functional change.Miod Vallat
2014-01-19Initialize ci_randseed better using arc4random() + a trick. Remove theTheo de Raadt
libkern srandom() API since it is not suitable for this use. ok kettenis miod
2014-01-06Make macppc/socppc boot() code path more similar to others.Masao Uebayashi
This changes calling boot() during (cold != 0) to not call if_downall() and uvm_shutdown(). Both of which must not be specific to PowerPC. OK mpi@
2013-12-29In tlbdsmiss, do not trash the tlb pointer by mistake. From NetBSD (PR #39257)Miod Vallat
2013-12-28crank the versionTheo de Raadt
2013-12-08reflect reality, mark as NOOBJMarc Espie
"sure" deraadt@
2013-11-18Normalize code sequence around dumpsys(), doshutdownhooks(), andMasao Uebayashi
config_suspend() in ppc boot() functions. Always go through them regardless of (howto & RB_HALT). OK deraadt@ mpi@
2013-11-08fix spelling.Federico G. Schwindt
2013-11-05Add a stub for the new MD hook needed to handle ACPI Power Resources.Martin Pieuchot
ok kettenis@
2013-11-05Replace direct references to p_size, p_offset and d_secperunit withKenneth R Westerback
DL_[GET|SET]PSIZE(), DL_[GET|SET]POFFSET(), DL_[GET|SET]DSIZE() in order to get|set correct value that includes the high bits of the value.
2013-11-04remove iop(4) driver. it is entirely unmaintained and supports somethingTheo de Raadt
which basically doesn't exist at all. reminded about it by brad
2013-11-04remove iop(4) driver. it is entirely unmaintained and supports somethingTheo de Raadt
which basically doesn't exist at all. reminded about it by brad
2013-10-31Add a header for various hardware implementation dependent registerMartin Pieuchot
(HID) definitions, from FreeBSD with tweaks, instead of defining them in different places. ok kettenis@
2013-10-19Use daddr_t * instead of int * for the partoffp parameter toKenneth R Westerback
readdoslabel(). Ditto all the MD variables whose addresses are passed to readdoslabel() via partoffp. Fix some 512-byte block vs disk sector confusion in hppa and sgi. All the DL_GETxxxxx() defines return disk sector values. All DL_SETxxxx() take disk sector values. These changes should be no-ops until a drive using non-512-byte-sectors is encountered. ok deraadt@
2013-10-17Remove a.out leftovers now that libsa loadfile() will only boot ELF binaries.Miod Vallat
2013-10-15Rewrite the awk script that generates the data for option DDB_STRUCT:Philip Guenther
- switch to perl for better data structures and (thus) speed - fix a couple glitches in the interpretation of the stabs output - compress the strings by putting them in one big array and overlaying suffixes - all sizes and offsets are <64k, so use u_short for them This results in ~60% reduction in the resulting text size and it now takes less than a second to create on fast platforms. ok miod@
2013-09-28In boot(), do not iterate over alldevs if it's empty (i.e. halting from ddbMiod Vallat
with ddb entered early with boot -d or from UKC).
2013-09-05ugold(4) is a driver for PCsensor's USB gold TEMPer temperaturesasano
measurement device (idVendor:idProduct=0x0c45:0x7401). newly added. ok by mpi@ and sthen@
2013-08-20Remove uscanner(4). It was disabled in GENERIC more than 2.5 years ago.Antoine Jacoutot
No regression has been reported since libusb became the prefered solution to work with USB scanners. req. by mpi@ ok ian@ mpi@ miod@
2013-08-07Mimic what's done on sparc64 and parse the OpenFirmware device tree toMartin Pieuchot
enumerate the pci devices. This allow us to not store the interrupt vector in the interrupt line register and to not try to attach pci devices disabled by firmware. With inputs from and ok kettenis@