summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/dev
AgeCommit message (Collapse)Author
2016-08-19move mem.c to hppa directory like every other arch.Ted Unangst
(probably landed in dev because it has support for this viper thing, but i like consistency for the /dev/null parts.) ok kettenis
2016-08-01bring the light of ansi to a few more filesTed Unangst
2015-12-11Replace mountroothook_establish(9) by config_mountroot(9) a narrower APIMartin Pieuchot
similar to config_defer(9). ok mikeb@, deraadt@
2015-09-08sizes for free(), when known; ok semarieTheo de Raadt
2015-08-12Fix a free of an uninitialized variable in an error path.Mike Larkin
ok miod@ found by Maxime Villard / Brainy Code Scanner. thanks.
2015-02-10Convert to uiomove().Miod Vallat
ok guenther@
2015-02-10First step towards making uiomove() take a size_t size argument:Miod Vallat
- rename uiomove() to uiomovei() and update all its users. - introduce uiomove(), which is similar to uiomovei() but with a size_t. - rewrite uiomovei() as an uiomove() wrapper. ok kettenis@
2014-12-09Replace some malloc(n*size,...) calls with mallocarray().Doug Hogan
ok tedu@ deraadt@
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-10-25Another uvm_km_valloc(9) -> km_alloc(9) conversion.Mark Kettenis
2014-10-08remove an unused file that is a duplicate of arch/hppa/gsc/mongoose_gsc.cJonathan Gray
ok miod@
2014-08-30Fix format strings in STIDEBUG code.Miod Vallat
2014-07-16zap trailing newlines; "go for it" deraadtOkan Demirmen
2014-07-13One missing boot -> prsignal(initprocess) conversionMiod Vallat
2014-07-12reboot(9): Shutdown system by signaling init(8) from kernel where appropriateMasao Uebayashi
Some ports watch temperature in MD and try to shutdown system, when overheated, by calling directly (re)boot(9). Change this to signal init(8) from kernel, as acpi(4) and acpitz(4) do, which has been more tested. This also helps to clarify design that ``clean shutdown must be always started by init(8)''. Note that SIGUSR2 causes init(8) to call reboot(2) with RB_POWERDOWN, as acpi(4) etc. already does. It is reasonable, pointed out by kettenis@, considering system is overheated and immediate reboot may be dangerous. OK deraadt@ 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-12boot(9), reboot(9): Migrate MD callers of boot(9) to reboot(9)Masao Uebayashi
I have found that some ports call boot(9) from machine-dependent code to reboot system. These should be changed to either: - Sending signal to init(8) to trigger it to shutdown system cleanly, like acpi(4) does, in cases where found problems don't prevent system from working immediately, or - Just doing panic(9) if the situation is severely broken. For now, just rewrite boot() to reboot(). Actual fixes follow. Discussed with & OK from kettenis@
2014-04-08Less <uvm/uvm.h>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-02-08Use extent_alloc_with_descr(9) and add a mutex to protect the extent.Mark Kettenis
This should make bus_dmamap_load(9) and bus_dmamap_unload(9) "mpsafe".
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
2013-11-261 << 31 cleanup. Eitan Adler pointed out that there has been aTheo de Raadt
resurrection of the bad idiom in the tree. sufficient review by miod, kettenis, tedu
2012-02-25Fix a bad case of htole64() being used instead of htole32() when setting upMiod Vallat
pci configuration space accesses to allow proper recovery from failure, causing the measure not to have any effect and the system to freeze hard. Fixes use of pcidump -x on B1000, and probably more systems.
2011-09-19%b format strings take the value before the bitname string, not the otherMiod Vallat
way around.
2011-08-16Compile in serial console settings support if any com(4) device is includedMark Kettenis
in the kernel, not only when com @ gsc is there. ok miod@
2011-05-01Fix counting of interrupts for devices that attach to elroy(4). SharedMark Kettenis
interrupts would be counted double, once for the interrupting device and once for the device at the head of the chain. The handlers would run properly though. Avoid this by giving each device its own interrupt counter instead of using the counter provided by the generic interrupt handling code for the head of the chain.
2011-04-23Stop calling shared interrupt handlers as soon as one of them return 1Mark Kettenis
(positive interrupt was for me), like we do on other architectures. This is done here, at the elroy(4) driver level, since this is where shared PCI interrupts are handled. We could do something similar for dino(4) but this optimization is probably not very relevant there. ok deraadt@
2011-04-07Do not use NULL in integer comparisons. No functional change.Miod Vallat
ok matthew@ tedu@, also eyeballed by at least krw@ oga@ kettenis@ jsg@
2011-01-23Spinning up secondary CPUs on an MP kernel results in PDC output on theJoel Sing
system LCD. Move LCD initialisation to a mountroot hook in order to avoid PDC output after initialisation. Committing on behalf of kettenis@
2011-01-09Check in resettodr() if inittodr() has been called, otherwise we end upJasper Lievisse Adriaanse
resetting the clock when we don't need to. Found out with booting hppa64 kernels, and the problem also exists on hppa when booting with '-a' and hitting 'exit' when asked for the root filesystem. help & ok jsing@ also ok kettenis@ (who suggested naming the variable like amd64/i386 to prevent creating yet another variant of this code)
2011-01-05- remove unused headers wrapped in #if defined(DDB)Jasper Lievisse Adriaanse
ok jsing@ kettenis@
2011-01-02Make need_resched() call cpu_unidle() such that we wake up a process running onMark Kettenis
another CPU. ok miod@
2011-01-01Move setting cpu_hzticks to the clock initialization function, likeJasper Lievisse Adriaanse
other ports (e.g. hppa64) do. ok jsing@ kettenis@
2011-01-01Only store bus/dev/func numbers when the corresponding pointer argumentMark Kettenis
isn't NULL.
2011-01-01Only store bus/dev/func numbers when the corresponding pointer argumentMark Kettenis
isn't NULL.
2010-12-30Implement cpu_unidle() for MP kernels.Joel Sing
ok kettenis@
2010-12-26Kill pmap_phys_address(), and force every driver's mmap() routine to returnMiod Vallat
a physical address [more precisely, something suitable to pass to pmap_enter()'sphysical address argument]. This allows MI drivers to implement mmap() routines without having to know about the pmap_phys_address() implementation and #ifdef obfuscation.
2010-12-04Introduce a new pci routine, pci_conf_size(), which returns the size of aMiod Vallat
given pcitag_t configuration address space. Currently, all pci controllers will return the usual 0x100 bytes of PCI configuration space, but this will eventually change on PCIe-capable controlers. ok kettenis@
2010-09-22remove unused offset argument to rbus functionsJonathan Gray
ok krw@ kettenis@
2010-09-20Get rid of evcount's support for arranging counters in a treeMatthew Dempsky
hierarchy. Everything attached to a single root node anyway, so at best we had a bush. "i think it is good" deraadt@
2010-08-07No "\n" needed at the end of panic() strings.Kenneth R Westerback
Bogus chunks pointed out by matthew@ and miod@. No cookies for marco@ and jasper@. ok deraadt@ miod@ matthew@ jasper@ macro@
2010-08-01ANSIfyMark Kettenis
2010-07-02Move common code for waking up writers on a tty into a function.Nicholas Marriott
ok deraadt matthew millert
2010-06-28Allow tty drivers to request larger buffers at attach time using aTheo de Raadt
max-baud-rate hint. Adjust TTYHOG (the nearly full logic) to this new situation. The larger buffers are required by the very high speed KDDI devices in Japan (CF com, or USB ucom) so those are the only two drivers which currently ask for a larger buffer size. ok yasuoka miod
2010-06-26Allow processes to be scheduled onto secondary CPUs.Joel Sing
ok kettenis@
2010-06-03Rename ci_spinup_stack to ci_stack and use it as the stack for both CPUJoel Sing
spin up and FPU emulation. Since all CPUs need a stack for FPU emulation, move the allocation code to cpuattach(). ok kettenis@
2010-05-24Add missing prototypesTheo de Raadt
ok jsing kettenis
2010-05-21Add support for IPIs on hppa.Joel Sing
ok kettenis@
2010-05-19Spin up secondary CPUs on hppa multiprocessor kernels. At this stage weJoel Sing
enable clock interrupts, however do not allow processes to be scheduled onto the secondary CPUs - hopefully we can change this shortly... ok kettenis@
2010-05-06Ansify functions and use "clock" rather than the CPU name for clockJoel Sing
interrupts. ok kettenis@