summaryrefslogtreecommitdiff
path: root/sys/arch/hppa
AgeCommit message (Collapse)Author
2013-02-12Back out per-CPU kernel profiling, it shouldn't modify a public headerMartin Pieuchot
at this moment.
2013-02-11Fix kernel profiling on MP systems by using per-CPU buffer. PreviouslyMartin Pieuchot
various CPUs were iterating over the same global buffer at the same time to modify it and never ended. This diff includes some ideas submited by Thor Simon to NetBSD via miod@. ok mikeb@, haesbaert@
2013-02-09Do not bother defining cpu_exec_aout_makecmds() on platforms where we no longerMiod Vallat
(or never did) support a.out binaries (i.e. where _KERN_DO_AOUT is not defined).
2013-01-16cpu_coredump() also needs to invoke vn_rdwr() without IO_NODELOCKED; onlyMiod Vallat
affects a.out binaries' core dumps.
2012-12-31Remove emulation errno mapping code from platforms that no longer havePhilip Guenther
non-native emulations. ok miod@
2012-12-02Determine whether we're currently on the alternative signal stackPhilip Guenthe
dynamically, by comparing the stack pointer against the altstack base and size, so that you get the correct answer if you longjmp out of the signal handler, as tested by regress/sys/kern/stackjmp/. Also, fix alt stack handling on vax, where it was completely broken. Testing and corrections by miod@, krw@, tobiasu@, pirofti@
2012-11-05unifdef -D __HAVE_TIMECOUNTERMiod Vallat
2012-10-26Properly clear trap frame in setregs() to avoid leaking registers across exec.Mark Kettenis
ok jsing@
2012-10-08Revamp the sequences for suspend/hibernate -> resume so that the codeTheo de Raadt
paths are reflexive. It is now possible to fail part-way through a suspend sequence, and recover along the resume code path. Split DVACT_SUSPEND by adding a new DVACT_POWERDOWN method is used after hibernate (and suspend too) to finish the job. Some drivers must be converted at the same time to use this instead of shutdown hooks (the others will follow at a later time) ok kettenis mlarkin
2012-10-07Align the stack on a 64-byte boundary as required by "The 32-bit PA-RISCMark Kettenis
Run-time Architecture Document". GCC relies on this to properly align stack variables. ok guenther@, beck@
2012-09-27enable smscJonathan Gray
2012-09-27remove the zlib rfc text: these pages already point to gzip(1), whichJason McIntyre
has the references, and the rfc is not that relevant anyway;
2012-09-11Remove the 'OLF method' used for the transition from a.out to ELF andTheo de Raadt
for all the compat layers which are now gone. Linux compat still works because it always used another method in any case, and nothing looks at p_os anymore. ok jsing
2012-09-02Make profiling actually work on hppa.Mark Kettenis
2012-08-31Kill NOPIE and NOPIE_FLAGS in hppa/stand.Pascal Stumpf
ok deraadt@
2012-08-29Change "struct reg" to include a few more registers. We now use the sameMark Kettenis
layout as NetBSD.
2012-08-29Handle T_IPROT traps from userland by call vm_fault() instead of doing anMark Kettenis
unconditional SIGSEGV. Fixes random SIGSEGVs during single-stepping. ok miod@
2012-08-28Add -nopie to LINKFLAGS on ELF architectures. Note that this needs anPascal Stumpf
updated gcc and ld to understand the new -nopie flag. ok deraadt@
2012-08-28Implement pci_min_powerstate().Mark Kettenis
2012-08-23kill nnpfs deadTheo de Raadt
2012-08-22Build the kernel with -fno-pie. Just getting Ms out of my tree; this will bePascal Stumpf
cleaned up later. ok deraadt@
2012-08-21Add NOPIE= bits for sys/arch/*/stand to ensure that bootblocks will always bePascal Stumpf
built with -fno-pie. This gets the hairiest part of PIE out of the way ... ok deraadt@
2012-08-15use Lk for links;Jason McIntyre
2012-08-10simplify pckbc_xt_translation()Alexandr Shadchin
* call only for set translation on (once in /sys/dev/pckbd.c) therefore we can delete unused code. * change behavior (more standard) - return zero on success ok miod@
2012-08-07Don't include <sys/ktrace.h>; makes this file compile again.Mark Kettenis
2012-08-07Move the common bits of syscall invocation and return handling intoPhilip Guenthe
an MI file, <sys/syscall_mi.h>, correcting inconsistencies and the handling when copyin() of arguments fails. Tested on i386, amd64, sparc64, and alpha (thanks naddy@) Any issues with other platforms will be fixed in tree. header name from millert@; ok miod@
2012-06-26do not assume that sys/param.h is pulling in the world; pull in what isTheo de Raadt
needed by hand.
2012-06-26param.h (like landisk and alpha before) was still trying to include tooTheo de Raadt
much of the kernel world when it did not need to
2012-06-26create new machine/_float.h which is namespace clean. create a newTheo de Raadt
MI float.h which pulls in and defines the values that are needed from there, and repair sys/limits.h so that it defines the values it needs as well (depending on POSIX version, XPG version, etc). guenther has a more exact selection of that coming for limits.h. this also fixes a few mistakes for the vax. reviewed by kettenis and guenther.
2012-06-25Turns out this file not need machine/float.h at all, since it definesTheo de Raadt
all the goop it needs by itself ok millert
2012-06-21__tfork() needs to set the stack address of the new thread in the kernel,Philip Guenthe
so that it can't get a signal while still running on the parent thread's stack. Also, pass in sizeof(struct __tfork) to provide forward compat when more members are added. This is an ABI change, so switch syscall numbers and bump lib majors this time. ok deraadt@ matthew@
2012-06-03Avoid the unlikely but possible use of an uninitialised variable.Joel Sing
ok kettenis@
2012-06-01Ansify function definitions, fix some style(9) and whitespace issues.Joel Sing
2012-04-11The first ktrace record for a newly spawned thread is a returnMike Belopuhov
from a fork syscall done by the parent. Use __tfork, not rfork here to match the ktrace records for the parent (CALL __tfork, RET __tfork). ok guenther
2012-02-25:%s,DEBUGBUG,DEBUG,Miod Vallat
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.
2012-01-02Enable arcofi(4), tested on 705 by Tobias Ulmer.Miod Vallat
2011-12-30Fix encoding of DIAG instructions in the MFCPU_T and MTCPU_T macros. MTCPU_TMiod Vallat
was encoded as a read instruction, while MFCPU_T was encoded as a read-through-TH instruction, although the only uses of it concern registers read through CH. (You are not supposed to understand this, this is a dark corner of undocumented rotten PA-RISC bowels). Cache SID hashing will now correctly be disabled on PCXS, PCXT and PCXT' processors. Proper encoding from the old PA-RISC mklinux sources; tested on 720 (PCXS) and 715/75 (PCXT); ok kettenis@
2011-12-23Fix arcofi interrupt number by counting bits from the right side; still untestedMiod Vallat
2011-12-21Work-in-progress driver for the HP ``Audio1'' device found on the HP 9000/425eMiod Vallat
(hp300) and the HP9000/705 and 9000/710 (hppa). 8-bit mono, 8KHz, no surprise since it is based upon a digital phone chip. Tested on 425e only so far, and playback only; configured in, but disabled, on hppa kernels until there are positive test reports (I am not sure the interrupt assignment on hppa is correct). And now people no longer can joke about audio on hp300.
2011-11-16oops, need a prototype for ast()Theo de Raadt
2011-11-16Make userret() MI. On architectures which jammed stuff into it in theTheo de Raadt
past, pull that code out seperately. ok guenther miod
2011-11-15label_t is the kernel setjmp buffer. It should simply be an array ofTheo de Raadt
the right type, noone will ever fiddle with the internals. discussed with jsing
2011-11-14went a bit far...Theo de Raadt
2011-11-14merge various differences between hppa and hppa64Theo de Raadt
ok jsing
2011-11-10Eliminate more useless differences between hppa and hppa64Theo de Raadt
2011-11-10mindless unification with hppa64; remove meaningless differences beforeTheo de Raadt
attacking the complicated stuff
2011-11-08Garbage collect now unused MKDEP definitions. ok deraadt@Matthieu Herrb
2011-11-08Save and restore cr27 and add the necessary glue to use it as the userlandMark Kettenis
thread register. ok guenther@, jsing@
2011-11-08On PCXS processors, reading %cr26 and %cr27 from userland causes aMiod Vallat
privileged register trap. Cope with this in the trap handler to let userland use these registers; this will be necessary in the not-so-distant future.