summaryrefslogtreecommitdiff
path: root/sys/arch/hppa
AgeCommit message (Collapse)Author
2014-11-18(except for the arm architectures...) unify the way the ld.script isTheo de Raadt
used and depended, mimicking new changes by guenther to amd64.
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-31remove a duplicate pckbdvar.h include under NGSCKBD > 0Jonathan Gray
gsckbd was removed back in 2008 so this was never defined.
2014-10-26Don't forget to free() the malloc()s.Miod Vallat
2014-10-25Remove vmmap; it isn't used.Mark Kettenis
ok jsing@
2014-10-25Another uvm_km_valloc(9) -> km_alloc(9) conversion.Mark Kettenis
2014-10-23Correctly set up the HPMC trap entry: according to the PA-RISC FirmwareMiod Vallat
Architecture Reference Specification, the sum of the 8 trap entry words *and* of the payload which address and length are to be set at well-known positions in the aforementioned trap entry, needs to be zero; the existing code was only enforcing that the sum of the trap entry words is zero. This matches what Linux and NetBSD do. ok kettenis@
2014-10-23In the various desidhash_*() functions, make sure we clear the `set to clear'Miod Vallat
bit fields with their right sizes (the L2PARERR field on PCXL processors being 4 bits wide, not 1 bit), and make comments consistent accross these functions. ok kettenis@
2014-10-23Revert limiting physmem to 2GB; the culprit was likely in uvm and uvm hasMiod Vallat
changed a lot in the last 5 years; verified to work on a 3GB system, in snapshots for a few weeks already.
2014-10-15Do not panic when attempting to decode invalid condition codes, or ifMiod Vallat
the disassembler initialization fails. Correctly compute the destination of pc-relative branches.
2014-10-14Do not skip saving callee-saved registers in trap frames if compiling withoutMiod Vallat
option DDB; some parts of trap() depend upon the whole frame being populated (especially when running on PCXS processors). ok 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-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-08#ifndef DDB, correct a format string..Theo de Raadt
2014-10-08remove an unused file that is a duplicate of arch/hppa/gsc/mongoose_gsc.cJonathan Gray
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-10-01all ramdisks should use SMALL_KERNEL and NO_PROPOLICE. basically, allTheo de Raadt
RAMDISK kernels have reduced functionality compared to GENERIC. which kind of sucks but so it is. At least if we are going to reduce functionality, reduce it in the same way on all architectures, because that makes our debugging burden less (the margin is too narrow for me to prove this)
2014-09-30Add the QLogic SCSI/FC drivers.Brad Smith
ok miod@
2014-09-24jmatthew@ points out atomic_swap_foo takes two arguments, not three.David Gwynne
2014-09-24Replace a few malloc() calls with reallocarray() so it checks for overflow.Doug Hogan
ok deraadt@
2014-09-22implement atomic_{cas,swap}_{uint,ulong,ptr} andDavid Gwynne
atomic_{add,sub}_{int,long}_nv. sys/atomic.h turns these into the rest of the atomic api. on uniprocessor hppa systems "atomic" operations are implemented as a non-interruptable sequence by disabling all interrupts on the cpu, doing the operation, and then restoring the interrupt mask. this isnt enough on MP systems, so we added a global atomic memory mutex that is taken inside the interrupt disabling above to coordinate operations between cpus. this is a lot of overhead though cos mutexes dance around with ipls, which is unecessary in our case because of the interrupt disabling that is already done. also, hppa spinlocks are implemented with ldcw which requires the word it operates on to be 16 byte aligned. mutexes arent guaranteed to have this alignment so they compensate by having lots of words inside themselves so they can hit the appropriate one to use for the ldcw op. with this in mind, this change pulls __cpu_simple_locks, which are simply ldcw spinlocks with a 16 byte aligned word, out of src/sys/arch/hppa/include/lock.h into src/sys/arch/hppa/include/atomic.h so atomic.h can use them. lock.h includes atomic.h, so it still gets and provides the same functionality as before. finally, this also pulls the rwlock cas implementation apart. cas ops now share the same serialising lock on MP systems as the other memory operations, and rw_cas is defined as a wrapper around atomic_cas_uint. ok kettenis@
2014-09-19Use config_suspend_all(9).Mark Kettenis
2014-09-15Remove non-standard <sys/dkstat.h> header. It has not contained anythingMiod Vallat
related to disk stastics for almost 17 years, and the remaining userland-visible defines duplicate those found in <sys/sched.h>. Move the remaining _KERNEL defines to <sys/tty.h> where they belong, and update all users to cope with this. ok kettenis@
2014-09-14Clean up isp(4) from kernel configs with the new drivers alreadyBrad Smith
added. The new drivers match at a higher priority.
2014-09-04Revert previous change, but use curcpu()->ci_schedstate.spc_cp_time[] insteadMiod Vallat
of global cp_time[] for live information, as loadavg is not updated fast enough for hz/16 blinking rate. Prompted by feedback from mickey@
2014-08-30Fix format strings in STIDEBUG code.Miod Vallat
2014-08-29Use the load average from averunnable.ldavg[] instead of bogus cp_time[]Miod Vallat
arithmetic to display the load average in leds 5-8 of 8 led systems.
2014-08-20unlink crypto(4) pseudo device from the architecture dependant characterMike Belopuhov
device tables and kernel config files. ok deraadt
2014-08-18dont rely on mbuf.h to provide pool.h.David Gwynne
ok miod@, who has offerred to help with any MD fallout ok guenther@
2014-07-22boot(9): Reduce diffs between hppa & hppa64 (& others)Masao Uebayashi
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-17immidiatelly -> immediatelyMiod Vallat
2014-07-16zap trailing newlines; "go for it" deraadtOkan Demirmen
2014-07-13boot(9): Cosmetic changes to improve diff'ability.Masao Uebayashi
2014-07-13Cosmetic changes to reduce diffs.Masao Uebayashi
2014-07-13#$%#@$# CONSPEEDMiod Vallat
2014-07-13use nitems() instead of handrolling something identicalJasper Lievisse Adriaanse
ok mpi@ sthen@
2014-07-13move putchar() into libsaJasper Lievisse Adriaanse
"sure" miod@
2014-07-13One missing boot -> prsignal(initprocess) conversionMiod Vallat
2014-07-13These still need <sys/reboot.h> for the RB_ constants.Miod Vallat
2014-07-12unify cnspeed()Jasper Lievisse Adriaanse
2014-07-12reboot(9), panic(9): Call panic(9) for unrecoverable MD H/W errors (NMIs)Masao Uebayashi
Some architectures have ability to detect hardware sanity and notify system (NMI, firmware callback, etc.). Handle these hardware severe errors, same as software errors, with panic(9). According to miod@, SGI IP27 NMI is triggered by pushing some "hidden" button, which "usual" users/admins don't know. Pushing such a button is "RB_USERREQ" (human-triggered) in that the button is pushed by a human, but not "RB_USERREQ" in that no user intervention in system (== no command input) is done. miod@ agreed that changing these from RB_USERREQ to !RB_USERREQ (== panic(9)) is not a big problem. OK miod@ kettenis@
2014-07-12"Dr. Jones. Again we see there is nothing you can possess which I cannotTed Unangst
take away." remove uyap. no effect except on hppa where it was strangely enabled.
2014-07-12move getchar() into libsa where applicableJasper Lievisse Adriaanse
ok miod@
2014-07-12Build kernels at -O2 instead of -Os, as done for userland and on all otherMiod Vallat
architectures. ok deraadt@
2014-07-12revert a few stragglers hiding outTed Unangst
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.