summaryrefslogtreecommitdiff
path: root/sys/arch/vax
AgeCommit message (Collapse)Author
2013-01-06acknowlege -> acknowledgeMartynas Venckus
compatability -> compatibility OK jmc@.
2013-01-01<machine/aout_machdep.h> is not used anywhere in the tree, move to the Attic.Miod Vallat
2012-12-05Remove excessive sys/cdefs.h inclusionTheo de Raadt
ok guenther millert kettenis
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-25Avoid using multiline litterals in __asm__ statement, gcc3 complains aboutMiod Vallat
them.
2012-11-25remove the use of cast as lvalue which is verboten with newer gccJonathan Gray
tweaks from/tested by/ok miod@
2012-11-05unifdef -D __HAVE_TIMECOUNTERMiod Vallat
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-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-08Make this compile again.Miod Vallat
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-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-04-23When handling SIGFPE, do the `advance pc if exception is a fault (as opposedMiod Vallat
to a trap)' dance before invoking trapsignal(), which will mess with the pc too. My bug initially, can't believe I never noticed; fixed first in NetBSD. This makes libsqlite3 build.
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-04-10Make the KERN_NPROCS and KERN_MAXPROC sysctl()s and the RLIMIT_NPROC rlimitPhilip Guenthe
count processes instead of threads. New sysctl()s KERN_NTHREADS and KERN_MAXTHREAD count and limit threads. The nprocs and maxproc kernel variables are replaced by nprocess, maxprocess, nthreads, and maxthread. ok tedu@ mikeb@
2012-04-06tedu the raidframe.Joel Sing
ok deraadt@
2012-03-24Missed a reference to the u_stats member when struct pstats was removedPhilip Guenthe
from struct user. Nothing left to zero-out here so the line goes. pointed out by deraaadt@
2012-02-24Correct the spelling of "transferred" and "transferring"Philip Guenthe
from Tobias Ulmer (tobiasu at tmux.org); ok jmc@, krw@
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-08Garbage collect now unused MKDEP definitions. ok deraadt@Matthieu Herrb
2011-11-01Rework disklabel handling to correctly support label spoofing, and thusMiod Vallat
fix DIOCGPDINFO ioctl behaviour in the process. Tested in SIMH only due to the lack of MSCP disks, RX02 floppies untested but shouldn't be affected by this diff.
2011-11-01Remove orphaned comments.Miod Vallat
2011-10-27Specify the TLS variant for each platform.Philip Guenthe
2011-10-06ccd goes to the atticTheo de Raadt
discussed with jsing and millert
2011-09-29Get size of struct disklabel for the sake of the assembly code with aMiod Vallat
genassym script, instead of relying upon <sys/disklabel.h> to provide them as proper .set statements if _LOCORE is defined. Requested by weingart@ long ago; ok jsing@ krw@
2011-09-27Try to put more sanity in the machine check handling:Miod Vallat
- only handle a machine check as caused by badaddr() if the local `memtest' variable is nonzero, instead of abusing `cold'. And be sure to clear `memtest' upon returning from badaddr, of course. - do not write to the MCESR register on microVAX II and SOC processors, as this register is not implemented on those models. - get rid of the `write the SBIFS and EHSR registers depending upon the cpu model' chunk, since these only matter on true 11/780 and 86x0 models, support for which has been removed recently.
2011-09-26Notify ifmedia layer of loss of link on SGEC interfaces (which only getsMiod Vallat
detected upon failure to transmit if it is indeed lost), so that `ifconfig ze0' reports the correct state of the link instead of always pretending it is up.
2011-09-20Don't bother checking for SPX on KA410 (VS2000), since the only colour optionMiod Vallat
for this machine is good'ol'GPX.
2011-09-19Try and clean system type constants a bit:Miod Vallat
- save the second byte of vax_siedata into a new variable, vax_cpustype, and use it instead of (vax_siedata >> 8) & 0xff or other similar constructs. - the VAX_SIE_KAxxx constants are duplicates of the VAX_STYP_xx constants. Standardize on the latter and kill the former. - only keep VAX_VTYP_xx constants for KA46 and KA47, those are the only systems which use these constants and are told apart by a different SIE byte. No functional change intended.
2011-09-19Print 64 bit values with %ll to get a meaningful message at attach time.Miod Vallat
2011-09-19Fix obvious cut'n'paste error in a comment.Miod Vallat
2011-09-18Missing error printf argumentMiod Vallat
2011-09-16Fix a bunch of typos: manaul, monnitor, machiune, autload.Miod Vallat
2011-09-15Switch vax to timecounters. There are three different clock sources:Miod Vallat
- ICR/NICR on most systems (1MHz counter resolution). - diagnostic timer on KA46/KA48 (1kHz counter resolution, counter is actually running at around 1024 kHz but is not guaranteed to be monotonic at this rate). - 100Hz clock on VXT (nothing but the 100Hz clock interrupt). Tested on KA49 (ICR style), KA46, KA48 (diagtmr style), VXT2000+ (VXT {empty,hopeless}ness'r'us style).
2011-09-13On KA43:Miod Vallat
- silence noisy print of cache control registers at cache initialization time (but not during memory errors or machine checks). - correctly access the prom mailbox register, so that halt and reboot work as intended (from NetBSD).
2011-09-11Define symbolic constants for the addresses of the vsbus devices onMiod Vallat
512KB PROM systems (e.g. KA49), or 256KB PROM systems built after KA49 (e.g. KA5[234]), and use them instead of pouring magic numbers all over the (md) tree. No functional change.
2011-09-11Fix inverted test when selecting resolution on the 1024x864 VLC frame buffer.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-09-04Add emulation support for slinear:8, ulinear:8 and alaw. Written by jason@Miod Vallat
more than 8 years ago; allows aucat (and sndio users) to happily use amd7930-based audio devices. Verified by playing an mp3 file on vax.
2011-09-03Driver for the audio chip found on VAXstation 4000. Tested on VLC, /60 andMiod Vallat
/90.
2011-08-31Report VXT cpu as `VXT', not `KA48', to match what the PROM says.Miod Vallat
2011-08-31Don't pretend to `enable floating point' and fiddle with PR_ACCS register onMiod Vallat
KA45 and KA48. The FPU is built-in, and PR_ACCS is not implemented (as the PROM will tell you if you try to EX it). This was copied from KA46 and for some reason KA45 and KA48 ignore writes to PR_ACCS (unlike VXT which hangs). Tested on KA45 and KA48.
2011-08-29Only provide FLT_EVAL_METHOD for C99. Add missing DECIMAL_DIG for C99.Mark Kettenis
ok guenther@
2011-08-26Be sure to write to the 7990 address register between two consecutive readsMiod Vallat
of the data register, while waiting for the chip initialization to complete. This seems to prevent spurious disappearance of le0 on some systems.
2011-08-26Be sure not to try to match lcg, and to bail out early in cnprobe as well,Miod Vallat
if we are running on a KA45 system. These share the KA48 board type but, unlike KA48, can not sport frame buffers. Prevents a bogus lcg device from attaching on KA45, and also repairs console operation if the S3 switch is down (console on serial #0).
2011-08-26Make vsbus_search() return the value of the cf_match function it is a wrapperMiod Vallat
for, instead of zero. Makes verbose autoconf output meaningful again.