summaryrefslogtreecommitdiff
path: root/sys/arch/vax
AgeCommit message (Collapse)Author
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.
2011-07-17Backout a bunch of my SCSI commits from c2k11. At least one of theseMatthew Dempsky
is causing problems when trying to boot sparc64 from an isp(4). Verified to fix the sparc64/isp(4) regression by krw@; ok deraadt@
2011-07-10Move the vax/boot code to vax/stand. A cvs 'mv' with de-tagging has beenTheo de Raadt
done behind the scenes to retain history. Having all the bootblocks in the same architecture sub-directory satisfies several principles. ok miod
2011-07-09begone, fucking rotten appletalk shit. ok roomHenning Brauer
2011-07-08First batch of converting SCSI HBAs from setting saa_targets andMatthew Dempsky
saa_luns instead of adapter_buswidth and luns in the prototype link. ok dlg@, miod@
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-06Renumber root busses symbolic values, and drop more fields from struct bp_conf,Miod Vallat
soon to become struct generic_attach_args.
2011-07-06These files no longer need to include <machine/nexus.h>Miod Vallat
2011-07-06Drop cpu_dep.cpu_subconf routine, which is no longer used after KA820 supportMiod Vallat
removal.
2011-07-06Remove support for non-microVAX, non-VAXstation, non-VXT hardware in theMiod Vallat
VAX port. This means, 11/7xx, VAX6000 and VAX8x00 systems, as well as SBI, CMI, BI, XMI and MASSBUS drivers. Most of these files were not being compiled or kept in compilable state over the years anyway.
2011-07-06Eliminate redundant buf validation checks in xxstrategy() methods nowMatthew Dempsky
that they're implemented consistently in bounds_check_with_label(). Also, per krw's request, change bounds_check_with_label() to return 0 if the checks succeed, and change the drivers to test == -1 instead of <= 0. (Man page update to follow; intentionally omitting arch/vax/mba/hp.c from this commit because it doesn't even build currently and miod@ promises to kill it soon.) ok krw@
2011-07-06make clean should clean .d files, so as to leave a fresh canvas.Ted Unangst
ok beck deraadt
2011-07-05Add DIOCGPDINFO to rxioctl(), as a synonym for DIOCGDINFO, the lastKenneth R Westerback
place it was missing. Delete now redundant calls to DIOCGDINFO when getting physical disk info in disklabel(8) and fdisk(8). Reminded by a fdisk discussion with Andres Perera on tech@. ok 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@