summaryrefslogtreecommitdiff
path: root/sys/arch/hppa64
AgeCommit message (Collapse)Author
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.
2011-05-05Make sure we restore sr4 at the very end (just before we go physical) otherwiseMark Kettenis
further loads from the trapframe will be done from the wrong address space.
2011-05-03We need a little more room for out kernel stack, at least for now.Mark Kettenis
2011-05-03Properly save and restore the space registers to/from the trap frame.Mark Kettenis
2011-04-28Expose pmap_prefer parameters.Ariane van der Steldt
This will enable future uvm_map to make intelligent allocation decisions.
2011-04-28fenv improvements and cleanupsMartynas Venckus
2011-04-21Provide a HPPA_FRAME_ARGS macro. This only works correctly for theJoel Sing
first eight arguments saved, due to the layout of the call frame. ok kettenis@
2011-04-21Move interrupt related defines and prototypes from cpu.h to intr.h.Joel Sing
ok kettenis@
2011-04-21Revert the ``remove the `skip splraise/splx for IPL_NONE mutexes' optimization''Miod Vallat
change. It seems to have unexpected side effects, especially on MP systems, and drahn@ disagrees with the way this change has been done and think there is a better way to solve the original problem of msleep() fiddling with mutex internals.
2011-04-18Revert the sigacts diff: NFS can apparently retain pointers to processesPhilip Guenthe
until they're zombies and then send them signals (for intr mounts). Until that is untangled, the sigacts change is unsafe. sthen@ was the victim for this one
2011-04-16Move the FPU state out of 'struct pcb' like we did for hppa since it causesMark Kettenis
evil problems with non-equivalent aliases.
2011-04-16Move the FPU state out of 'struct pcb' like we did for hppa since it causesMark Kettenis
evil problems with non-equivalent aliases.
2011-04-16Use 'CLR(<buf>->b_flags, B_READ | B_WRITE | B_DONE)' regardless ofKenneth R Westerback
what the previous IO was. Less chance of copy and paste errors. Suggested by miod@.
2011-04-15In days of yore one could arbitrarily whack buffer flags. Those daysKenneth R Westerback
are past. Use CLR() and SET() to modify necessary flags while leaving the flags used by the buffer cache in peace. Should make bufcache code much less confused about the state of the bufs used in reading/writing disklabels. Other such flag abuses no doubt await a visit. Errors in original diff found by miod@. ok beck@ deraadt@
2011-04-15Correct the sharing of the signal handling state: stuff that shouldPhilip Guenthe
be shared (p_sigignore, p_sigcatch, P_NOCLDSTOP, P_NOCLDWAIT) moves to struct sigacts, wihle stuff that should be per rthread (ps_oldmask, SAS_OLDMASK, ps_sigstk) moves to struct proc. Treat the coredumping state bits (ps_sig, ps_code, ps_type, ps_sigval) as per-rthread until our locking around coredumping is better. Oh, and remove the old SunOS-compat ps_usertramp member. "I like the sound of this" tedu@
2011-04-15Convert the kernel Makefiles to autogenerate dependencies during compilationPhilip Guenthe
using the -MD option to cc, with -MP, -MT, and -MF where needed, converting "make depend" to a no-op. This increases parallelism for those using "make -j" and keeps the dependencies up to date with each compilation automatically. sparc and vax users will need to rebuild gcc with support for the -M[PTF] options before config'ing with this diff.
2011-04-14Make spstrcpy actually copy strings.Mark Kettenis
2011-04-14Get rid if pcb_uva, like we did on hppa a while ago since it creates evilMark Kettenis
non-equivalent aliases.
2011-04-14Fix copy_on_fault by decrementing the stack pointer before restoring theJoel Sing
return pointer.
2011-04-14Ansify.Joel Sing
2011-04-13Export ENAMETOOLONG such that kernels compile again.Mark Kettenis
2011-04-13Make spstrcpy() work as advertised.Joel Sing
ok kettenis@
2011-04-13Enable siop, scsibus and sd.Joel Sing
No objection from kettenis@
2011-04-13Remove some very noisy debug code.Joel Sing
2011-04-13Do not use a virtual address whilst in physical mode. Instead save the spJoel Sing
and iir in the physical trap save area and copy into the trap frame once back in virtual. ok kettenis@
2011-04-10hppa64 does not have a libspmathTheo de Raadt
2011-04-07Make $syscall_return work for real.Mark Kettenis
ok jsing@
2011-04-07Make sure the ALIGN() macro uses u_long on all platforms for consistency, andMiod Vallat
update the comment block accordingly.
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-04-07Sync apic code from hppa.Joel Sing
ok kettenis@
2011-04-07Initial interrupt handling implementation for hppa64.Joel Sing
ok kettenis@
2011-04-06Sync cpu_match() and cpu_hardclock() with hppa.Joel Sing
ok kettenis@
2011-04-06Move CPL to struct cpu_info.Joel Sing
ok kettenis@
2011-04-06The various read*label() have stopped returning error strings for quiteMiod Vallat
some time, and return errnos instead. Fix or remove out-of-date comments mentioning the error strings, and make their callers check the return value against zero, not NULL.
2011-04-05Provide macros for ssm/rsm.Joel Sing
2011-04-05Implement syscall_return.Joel Sing
"Go ahead" kettenis@
2011-04-05Move PSW in struct cpu_info. Also ensure that we leave interrupts disabledJoel Sing
when switching to virtual mode in the trap handler. Re-enabling interrupts whilst in the trap handler for an interrupt makes life interesting. ok kettenis@