summaryrefslogtreecommitdiff
path: root/sys/arch/hppa
AgeCommit message (Collapse)Author
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.
2011-10-27Specify the TLS variant for each platform.Philip Guenthe
2011-10-12Remove all MD diagnostics in cpu_switchto(), and move them to MI code ifMiod Vallat
they apply. ok oga@ deraadt@
2011-10-10Introduce pci_probe_device_hook(pci_chipset_tag_t, struct pci_attach_args *).Miod Vallat
This mandatory function will get invoked in pci_probe_device(), and allows a pci host driver to alter the pci_attach_args passed to a device when attaching. This function will also, if returning non-zero, cause the device to be skipped completely during all the phases of the PCI device discovery (i.e. ressource enumeration, ressource assignment, and actual attachment). This particular feature is experimental and might be reverted in the future (or the scope narrowed to device attachment only). A dummy #define pci_probe_device_hook() 0 is added to all platforms except sgi, where real functions (currently only returning 0) are added; real meat will be added shortly. Discussed at s2k11, no objection from the usual suspects.
2011-10-06ccd goes to the atticTheo de Raadt
discussed with jsing and millert
2011-09-20calee -> calleeMiod Vallat
2011-09-20Remove unused MD_CACHE_CTL() macro and related defines.Miod Vallat
2011-09-20Clear RB_POWERDOWN early in boot() on systems which can not powerdown andMiod Vallat
which firmware does not send spin up commands to the disks, in case the operator changes his mind and reboots instead of manually powering down after the system has halted. ok kettenis@
2011-09-19%b format strings take the value before the bitname string, not the otherMiod Vallat
way around.
2011-09-16Fix a bunch of typos: manaul, monnitor, machiune, autload.Miod Vallat
2011-09-08Provide namespace-safe alignment macros in <machine/_types.h>, withPhilip Guenthe
compat names kept in <machine/param.h>. In <sys/socket.h>, pull in <sys/_types.h> instead of the namespace polluting <machine/param.h> and completely eliminate __CMSG_ALIGN, replaced by _ALIGN ok deraadt@
2011-09-08Make the INT_FAST*_{MIN,MAX} macros match the types they're defined to.Philip Guenthe
Since the underlying types of the int_fast types are set by machine/_types.h, put internal macros in that same file and define the exposed INT_FAST*_{MIN,MAX} macros from those. ok millert@, kettenis@
2011-08-29Only provide FLT_EVAL_METHOD for C99. Add missing DECIMAL_DIG for C99.Mark Kettenis
ok guenther@
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-07-22Fix PMAPDEBUG compileMiod Vallat
2011-07-11Revert art@'s moving around of the KERNEL_LOCK()/KERNEL_UNLOCK() calls,Philip Guenthe
as it causes hangs in some ports, including libsigsegv's configure script confirmed by krw@, landry@
2011-07-10If there is recognized MD disk partitioning info, use it to determineKenneth R Westerback
where to write the OpenBSD disklabel even if there isn't yet a valid OpenBSD disklabel at that location. Alpha/Mac68k/Sparc/Sparc64 to come.
2011-07-09Unbreak hppa boot(8) after zlib update.Joel Sing
ok deraadt@
2011-07-08When reading dos labels use DOS_LABELSECTOR and don't use LABELOFFSET. For ↵Kenneth R Westerback
all these arch's LABELSECTOR == DOS_LABELSECTOR == 1, and LABELOFFSET == 0. Thus, to quote bob, "This is a no-op". Makes the expression used when writing label the same as the one used in readdoslabel().
2011-07-07deraadt says disable bluetooth everywhere else tooTed Unangst
2011-07-07Take more care to write 'dos' labels in the same place readdoslabel()Kenneth R Westerback
will look for them. Without changing native label handling. Compile tested on hppa by kettenis@. "I see no issues" deraadt@
2011-07-07The drahn memorial bad kernel build fix: prevent blood pressurePhilip Guenthe
spikes in other developers by making it so that removal of a .d file without removing the corresponding object will result in the latter being treated as out of date. ok beck@ art@ drahn@
2011-07-07There is a bunch of places in the kernel entry points where we don'tArtur Grabowski
hold the kernel lock, but still need call one function that needs it. Instead of grabbing the lock all over the place, move the locks into the affected functions: trapsignal, scdebug*, ktrsyscall, ktrsysret, systrace_redirect and ADDUPROF. In the cases we already hold the biglock we'll just recurse. kettenis@, beck@ ok
2011-07-06Clean up after P_BIGLOCK removal.Artur Grabowski
KERNEL_PROC_LOCK -> KERNEL_LOCK KERNEL_PROC_UNLOCK -> KERNEL_UNLOCK oga@ ok
2011-07-06make clean should clean .d files, so as to leave a fresh canvas.Ted Unangst
ok beck deraadt
2011-07-05Recommit the reverted sigacts change now that the NFS use-after-freePhilip Guenthe
problem has been tracked down. This fixes the sharing of the signal handling state: shared bits go in sigacts, per-rthread bits goes in struct proc. ok deraadt@
2011-06-29Replace all instances of "scsibus* at hba?" with a single "scsibus* atMatthew Dempsky
scsi?" rule, similar to how ethernet PHY drivers attach at mii. Discussed on icb.