summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
2011-04-16Initialize %cr30 for proc0 with the address of proc0fpstate. Shouldn't reallyMark Kettenis
matter, since we shouldn't be using the FPU inside the kernel, but we need to initialize %cr30 with something, and this is more consistent than using the address of the pcb.
2011-04-16_LOCORE is already definedTheo de Raadt
2011-04-16Fix kernel build after guenther@'s signal changes.Miod Vallat
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-16another variable left after a commitTheo de Raadt
2011-04-16More than a decade ago, interrupt handlers on sparc started returning 0Theo de Raadt
(interrupt was not for me), 1 (positive interrupt was for me), or -1 (i am not sure...). We have continued with this practice in as many drivers as possible, throughout the tree. This makes some of the architectures use that information in their interrupt handler calling code -- if 1 is returned (and we know this specific machine does not have edge-shared interrupts), we finish servicing other possible handlers on the same pin. If the interrupt pin remains asserted (from a different device), we will end up back in the interrupt servicing code of course... but this is cheaper than calling all the chained interrupts on a pin. This does of course count on shared level interrupts being properly sorted by IPL. There have been some concerns about starvation of drivers which incorrectly return 1. Those drivers should be hunted down so that they return -1. ok and help from various people. In snaps for about a week now.
2011-04-15More than a decade ago, interrupt handlers on sparc started returning 0Theo de Raadt
(interrupt was not for me), 1 (positive interrupt was for me), or -1 (i am not sure...). We have continued with this practice in as many drivers as possible, throughout the tree. This makes some of the architectures use that information in their interrupt handler calling code -- if 1 is returned (and we know this specific machine does not have edge-shared interrupts), we finish servicing other possible handlers on the same pin. If the interrupt pin remains asserted (from a different device), we will end up back in the interrupt servicing code of course... but this is cheaper than calling all the chained interrupts on a pin. This does of course count on shared level interrupts being properly sorted by IPL. There have been some concerns about starvation of drivers which incorrectly return 1. Those drivers should be hunted down so that they return -1. ok drahn
2011-04-15More than a decade ago, interrupt handlers on sparc started returning 0Theo de Raadt
(interrupt was not for me), 1 (positive interrupt was for me), or -1 (i am not sure...). We have continued with this practice in as many drivers as possible, throughout the tree. This makes some of the architectures use that information in their interrupt handler calling code -- if 1 is returned (and we know this specific machine does not have edge-shared interrupts), we finish servicing other possible handlers on the same pin. If the interrupt pin remains asserted (from a different device), we will end up back in the interrupt servicing code of course... but this is cheaper than calling all the chained interrupts on a pin. This does of course count on shared level interrupts being properly sorted by IPL. There have been some concerns about starvation of drivers which incorrectly return 1. Those drivers should be hunted down so that they return -1. (other architectures will follow) ok kettenis drahn dlg miod
2011-04-15Remove dead assignment and newly created unused variable.Charles Longeau
Found by LLVM/Clang Static Analyzer. ok guenther@
2011-04-15Do not check malloc return value against NULL, as M_WAITOK is used.Charles Longeau
ok pirofti@ guenther@
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-15Remove local variables that are no longer used after the last commitClaudio Jeker
and cause build failure. Bad guenther@ no cookies. commitski! mikeb@
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-15die blank line die die dieTheo de Raadt
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-14Sprinkle prototypes, kill unused locals, and stop contributing to globalMiod Vallat
warning.
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-13Unrevert the FS.base diff: the issues were actually elsewherePhilip Guenthe
Additional testing by jasper@ and pea@
2011-04-13do not use NULL in an integer contextTheo de Raadt
2011-04-12A few, hopefully last, NULL-as-an-integer misuses.Miod Vallat
2011-04-10Merge viapm and viaenvAlexandr Shadchin
Pluses: - Add support SMBus for VT82C596, VT82C596B, VT82C686A, VT8231 - Add support ACPI timer for all VIA South Bridges ok deraadt@, tested sthen@
2011-04-10A last few NULL -> 0 corrections.Miod Vallat
2011-04-10Extend the PCI memory address space to 36-bit. The first BIOSen that assignMark Kettenis
addresses >4GB to 64-bit BARs have started to appear. But as long as machines still support running 32-bit operating systems we don't expect to see BARs that aren't addressable using PAE. Fixes a panic reported by william@. ok deraadt@
2011-04-10Add -fno-builtin-exit to CFLAGS to silence gcc4.Miod Vallat
2011-04-10Uninitialized local variable.Miod Vallat
2011-04-10NULL -> 0Miod Vallat
2011-04-10Include <libkern.h> to get proper strrchr() prototype.Miod Vallat
2011-04-10Revert bulk of the FS.base diff, as it causes issues on some machinesPhilip Guenthe
and the problem isn't obvious yet.
2011-04-10hppa64 does not have a libspmathTheo de Raadt
2011-04-10'kernel libraries' always get in the way of the build process. TeachTheo de Raadt
autoconf how to find the spmath files.
2011-04-09don't tell the inline assembly here it will take a 64 bit io portJonathan Gray
value when this isn't possible in practice, use a 32 bit value. ok kettenis@ miod@ oga@
2011-04-09Make this compile without warnings in all modes, and do not use NULL whenMiod Vallat
integer zero is intended.
2011-04-09repair a 32-bit truncation in paddr_t calculation, allowing my 8GBTheo de Raadt
o350 to boot once again ok miod
2011-04-08remove uneeded inlines here as was done in rev 1.24 ofJonathan Gray
the equivalent i386 file ok kettenis@ deraadt@
2011-04-07Make $syscall_return work for real.Mark Kettenis
ok jsing@
2011-04-07%x->%p in various format strings, to avoid truncating values.Miod Vallat
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-07Move a function declaration out of the function since it is used in the nextDale Rahn
function too. 'you should just commit' (without looking at the diff) miod@
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-06Declare and initialize safepri, for the kernel to link.Miod Vallat