summaryrefslogtreecommitdiff
path: root/sys/arch/socppc
AgeCommit message (Collapse)Author
2014-12-22unifdef INETTed Unangst
2014-12-11dragonflybsd has added a urio driver. conservation of urios requiresTed Unangst
that we delete ours, which isn't actually useful. ok mpi sthen
2014-12-10retire shutdown hooks; ok deraadt, krwMike Belopuhov
2014-11-30rxr ioctl handling.Brad Smith
2014-11-24use the correct capitalization for Realtek.Brad Smith
2014-11-16Replace a plethora of historical protection options with justTheo de Raadt
PROT_NONE, PROT_READ, PROT_WRITE, and PROT_EXEC from mman.h. PROT_MASK is introduced as the one true way of extracting those bits. Remove UVM_ADV_* wrapper, using the standard names. ok doug guenther kettenis
2014-11-11Do not held the kernel lock when calling hardclock() and statclock().Martin Pieuchot
This is not necessary, as confirmed by tedu@ and kettenis@. Solve the major contention problem seen on my Dual G5. Reduce the build time of a kernel with two jobs from 5h+ to 18min and expose more easily pmap/memroy corruptions 8) ok kettenis@
2014-10-27Remove the spilling code for IBAT register and set up the first IBAT registerMark Kettenis
to cover the first 8 MB of memory such that it covers kernel .text and not much else. This is a first step towards W^X in the kernel for machines with G4 and older processors. ok mpi@
2014-10-18Don't use %r1 to refer to bit 1. No binary difference.Mark Kettenis
2014-10-10Significant unification of RAMDISK* config files, making them diffable.Theo de Raadt
This makes it easier to remove components not required to do an install, and subsequently add other desireable components ... In snapshots (in various forks) for about a week. Do some upgrades and installs, please.
2014-10-09allow building a kernel without ddbTheo de Raadt
ok mpi
2014-10-09mechanical translation of dev_lkm_dummy() to dev_notdef()Ted Unangst
2014-10-09revert unintentional commit unrelated to LKMTed Unangst
2014-10-09remove LKM devicesTed Unangst
2014-10-08Introduce ppc_mttb() and use it instead of rerolling the move to timeMartin Pieuchot
base dance in inline assembly in various places. tweak and ok miod@
2014-10-04Switch the kernel configs over to using -Wframe-larger-than= instead ofBrad Smith
-Wstack-larger-than-. This is what modern GCC supports as well as LLVM. ok miod@
2014-09-19Use config_suspend_all(9).Mark Kettenis
2014-09-06Rename ci_iactive into ci_flags, this field now holds the going-to-Martin Pieuchot
sleep bit.
2014-09-06Rewrite cpu_idle & friends to not check and update the hid0 registerMartin Pieuchot
in the idle loop, in preparation for G5 support. Only do a disable/enable interrupt dance if the running CPU supports a sleep mode. Fix entering ddb(8) from interrupt context by not modifying the return address of the 'forced' trap frame. While here, modify the existing logic to terminate prefetching of all data streams if AltiVec is supported before setting the POW bit. With inputs/explanations from drahn, looks ok to miod@
2014-09-06Rewrite the PowerPC stack dump routine to delimit the trap & interruptMartin Pieuchot
contexts with markers (---like on x86---) and print the associated type or number when available. While here, gyp' the support for process tracing (tr /p). ok miod@
2014-08-20unlink crypto(4) pseudo device from the architecture dependant characterMike Belopuhov
device tables and kernel config files. ok deraadt
2014-07-21boot(9): Reduce annoying style diffsMasao Uebayashi
- Always use either: ((x & RB_XXX) != 0) or ((x & RB_XXX) == 0) in boolean context (mostly if (x), or x ? y : z) - prom_halt() in alpha is confirmed to take int as boolean Converted by coccinelle. No functional change intended.
2014-07-16the scan for transforming free(...) to (free..., 0) failed becuase thisTheo de Raadt
file has 'free (' :-/
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.