summaryrefslogtreecommitdiff
path: root/sys/arch/hppa64
AgeCommit message (Collapse)Author
2011-09-18A few more fixes to the trap save/restore code.Mark Kettenis
2011-09-18Disable space-ID hashing like we do on hppa.Mark Kettenis
2011-09-18Use an uvm object to keep track of the page table pages, just like we do onMark Kettenis
hppa to reduce the diffs between the two pmaps. Also add cache flushing in places where hppa does them.
2011-09-18Take into account the PIE bits when masking PDEs.Mark Kettenis
2011-09-18Add missing cache and TLB purges.Mark Kettenis
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-19Bring libc and libm in line with the compiler now that we no longer have aMark Kettenis
128-bit long double. Diff committed on behalf of martynas@
2011-08-17Set the PSL_O bit, like we do for 64-bit capable CPUs on hppa.Mark Kettenis
2011-08-17Don't set the PSL_S bit. We generally don't tend to hide CPU counter timersMark Kettenis
from userland, and setting it upsets the sigreturn code.
2011-08-16Use pitlbe and pdtlbe instructions when flushing the entire TLB.Mark Kettenis
2011-08-16The gp value is stored in a different register on hppa64.Mark Kettenis
2011-08-16Old proc is stored in %arg0, not in %arg2.Mark Kettenis
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.
2011-08-16Don't export 'struct pmap' to userland.Mark Kettenis
2011-08-07A few more fixes to the lazy FPU context switching code.Mark Kettenis
2011-08-07Avoid clobbering system call arguments upon system call entry.Mark Kettenis
2011-08-07Enable ssio(4) and com(4).Mark Kettenis
2011-08-07Bring over ssio(4) from hppa for proper serial console support.Mark Kettenis
2011-08-07Recognize 64-bit store instructions.Mark Kettenis
2011-08-07Make sure interrupts are properly masked at the level they're established at.Mark Kettenis
The old code left an interrupt enabled at that level, making spl-protection non functional. Remove __packed from struct hppa_iv. Instead re-order the members to pack things efficient on a 64-bit host. Remove explicit padding.
2011-08-04Make this compile with gcc4. Same fix as for hppa.Mark Kettenis
2011-08-01Synch with hppa. Seems to fix at least one of the remaining pmap bugs.Mark Kettenis
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-09syscall() can be a lot simpler on hpaa64.Mark Kettenis
2011-07-08Don't accidentally mask off the T_USER bit before calling trap().Mark Kettenis
At least mickey was as confused by the backwards hppa bit numbering as I am.
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-07Add missing bits to the syscall entry path. Not perfect yet, but it worksMark Kettenis
for at least the open(2), write(2) and exit(2) system calls. Map the syscall entry page publically. For now the physical address is hardcoded because of toolchain problems. It is somewhat likely to say the same as long as we don't add stuff to the start of locore.S.
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-07Stuff arg0-arg7 in the right slots of the trap frame.Mark Kettenis
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-07Raise the cache aliasing boundary to 4MB like we did on hppa a couple of yearsMark Kettenis
ago.
2011-07-07Bring over a few more cache flushing and TLB purging fixes from hppa.Mark Kettenis
2011-07-07Don't panic if uvm_fault fails, but enter ddb such that we can inspect theMark Kettenis
state that caused the fault.
2011-07-07Set PSL_W bit for forked processes such that they execute in 64-bit modeMark Kettenis
instead of 32-bit mode.
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-07-04Finish ansification.Mark Kettenis
2011-07-04Give each pmap its own space ID. The current algorithm is silly, as we'll wrapMark Kettenis
and might end up with duplicates, but that's not an issue until we're multi-user. Change the TLB miss code to enter mappings with the right protection ID. Properly switch pmaps on context switches. This makes the copyins we do before starting init actually work instead of failing with EFAULT.
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.
2011-06-26if_downall() cannot be done MI in sys_reboot() because vfs_shutdown()Theo de Raadt
might need network (ie. nfs). Move the call to the MD boot() routines. This cause for boot hangs diagnosed by kettenis.
2011-06-24When reading the value from a simple lock, we do not need to ldcws into aJoel Sing
__cpu_simple_lock_t - gcc most likely ignores the alignment for a stack variable anyway. Also remove unnecessary initialisation. ok kettenis@ miod@
2011-06-05Move the bufcachepercent setting code to MI locations -- set it to 42%Theo de Raadt
for now; that is unlikely to hit some of the remaining starvation bugs. Repair the bufpages calculation too; i386 was doing it ahead of time (incorrectly) and then re-calculating it. ok thib
2011-05-30Remove the freelist member from vm_physsegOwain Ainsworth
The new world order of pmemrange makes this data completely redundant (being dealt with by the pmemrange constraints instead). Remove all code that messes with the freelist. While touching every caller of uvm_page_physload() anyway, add the flags argument to all callers (all but one is 0 and that one already used PHYSLOAD_DEVICE) and remove the macro magic to allow callers to continue without it. Should shrink the code a bit, as well. matthew@ pointed out some mistakes i'd made. ``freelist death, I like. Ok.' ariane@ `I agree with the general direction, go ahead and i'll fix any fallout shortly'' miod@ (68k 88k and vax i could not check would build)
2011-05-25Also enclose variable names with external linkage in __BEGIN_DECLS.Martynas Venckus
Doesn't matter much since C++ ABI used by GCC doesn't mangle variable names; however technically is required by Section 7.5 of the C++ spec. Discussed with/OK guenther@, matthew@.
2011-05-24On OpenBSD, we've always attached scsibus(4) to umass(4), even forMatthew Dempsky
ATAPI devices. atapiscsi(4) is only for handling ATAPI devices on an ATA bus, so umass(4) shouldn't care about it. ok krw@, dlg@; no objections from deraadt@
2011-05-21Add pci_intr_map_msi() stub.Mark Kettenis
2011-05-07So long, uvm_pglist.hOwain Ainsworth
This header defined three thing. two of which are unused throughout the tree, the final one was the definition of the pagq head type, move that to uvm_page.h and nuke the header ok thib@. Thanks to krw@ for testing the hppa build for me.
2011-05-05The gateway page (which contains the system call entry point) needs to beMark Kettenis
public such that it is accessable from all userland processes.