Commit Graph

2446 Commits

Author SHA1 Message Date
christos 72fae1ce63 Add NO variables for the things that boot block does not support
(SSP/PIE/DEBUG/FORTIFY)
2016-03-13 17:48:53 +00:00
christos d84c286204 expose the kernel types for standalone code. 2016-01-23 22:31:19 +00:00
christos 4d497c90e6 Hide {p,v}{addr,size}_t and register_t (and a couple more types that
are machine-specific) from userland unless _KERNEL/_KMEMUSER and a
new _KERNTYPES variables is defined. The _KERNTYPES should be fixed
for many subsystems that should not be using it (rump)...
2016-01-23 21:22:13 +00:00
tsutsui db6b7e2af5 Enable LIBSA_CREAD_NOCRC. PR/50638
Bump version to denote user visible change.
Tested on simh 4.0-Beta1 emulationg MicroVAX 3900.
2016-01-17 04:53:16 +00:00
tsutsui d943d96739 Make this build without installed DESTDIR files. 2016-01-17 03:08:39 +00:00
christos b88569ce68 For processors that have memory breakpoints, add macros for them to help
libproc
2015-09-25 16:05:17 +00:00
christos 5020ab68d5 Provide access to pc/sp/syscall-return registers like we have for mcontext 2015-09-15 15:49:02 +00:00
jklos df1053a2d2 Cosmetic fix for VAXstation 4000/90, 90a, 96 dmesg output from Felix
Deichmann.
2015-08-27 17:18:58 +00:00
pooka 01d7ebdd80 Fix PTHREAD_FOO_INITIALIZER for C++ by not using volatile in the relevant
pthread types in C++ builds, attempt 2.

The problem with attempt 1 was making assumptions of what the MD
__cpu_simple_lock_t (declared volatile) looks like.  To get a same type
except non-volatile, we change the MD type to __cpu_simple_lock_nv_t
and typedef __cpu_simple_lock_t as a volatile __cpu_simple_lock_nv_t.
IMO, __cpu_simple_lock_t should not be volatile at all, but changing it
now is too risky.

Fixes at least Rumprun w/ gcc 5.1/5.2.  Furthermore, the mpd application
(and possibly others) will no longer require NetBSD-specific patches.

Tested: build.sh for i386, Rumprun for x86_64 w/ gcc 5.2.

Based on the patch from Christos in lib/49989.
2015-08-27 12:30:50 +00:00
maxv e99716e305 Remove KMEMSTATS. 2015-08-12 07:53:56 +00:00
maxv b74522aae1 Remove KMEMSTATS. 2015-08-08 06:36:24 +00:00
matt 5141ec2a3c Typo fxi. 2015-07-05 04:53:26 +00:00
matt e95f8d8cf9 Revamped QVSS (VCB01) support. (from Charles Dickman) 2015-07-05 03:07:21 +00:00
matt 7e4aa81e25 Configury support for QVSS (from Charles Dickman) 2015-07-05 03:06:27 +00:00
matt 5227f182c7 Add code to probe the Q-bus/Unibus for memory. (From Charles Dickman) 2015-07-05 03:03:00 +00:00
matt 35583341d8 Reorganize a bit. Add QVSS (from Charles Dickman). 2015-07-05 02:10:53 +00:00
matt 3ea559d297 Hooks needed for QVSS support 2015-07-05 02:03:36 +00:00
martin e743a584de Close the file descriptor used for loading before jumping to the kernel.
Pointed out by Felix Deichmann on port-vax.
2015-06-05 16:01:55 +00:00
abs 81e568b8d1 Add missing break - from Felix Deichmann in PR port-vax/49935 2015-05-31 07:04:18 +00:00
ragge 36f91343b4 PR port-vax/49884
Fixes bug introduced in earlier cleanup.
2015-05-09 13:43:45 +00:00
martin 2135edf023 Handle EINVAL in the fault path and send SIGBUS on mmap'd access past EOF 2015-03-03 13:23:48 +00:00
christos c182898b0d We have three sets of DTYPE_ constants in the kernel:
altq		Drop 		Type
	disklabel	Disk 		Type
	file		Descriptor	Type
(not to mention constants that contain the string DTYPE).
Let's make them two, by changing the disklabel one to be DisK TYPE since the
other disklabel constants seem to do that. Not many userland programs use
these constants (and the ones that they do are mostly in ifdefs). They will
be fixed shortly.
2015-01-02 19:42:05 +00:00
christos d1cb0983ac return error 2014-12-31 20:37:52 +00:00
christos 2758cd718c declare error 2014-12-31 20:37:10 +00:00
christos c60db2e923 make more drivers use disk_ioctl, and add a dev parameter to it so that
we can merge the "easy" disklabel ioctls to it. Ultimately all this will
go do dk_ioctl once all the drivers have been converted.
2014-12-31 19:52:04 +00:00
jklos aff60d99ba Remove autoconf.h include from am7930.c as per Matt Thomas so
vax/include/autoconf.h isn't necessary.
2014-12-20 23:36:21 +00:00
jklos 770eddc13a Enable lcg0 framebuffer support for VAXstation 4000/30, 60, 90 and friends. 2014-12-20 13:16:04 +00:00
jklos 8f1807a987 Added as a placeholder so kernels compile until a better fix is found. 2014-12-20 13:13:58 +00:00
jklos 0a59efa4ee Add audio support for VAXstation VLC, 60 and 90 machines. Originally rom
Blaz Antonic and ported from OpenBSD by Björn Johannesso. Tested on VLC
and 4000/60.
2014-12-19 04:44:13 +00:00
jklos 5ebf3ef3c3 Add small fix from Björn Johannessonwhich makes framebuffer woth with X11. 2014-12-18 22:46:53 +00:00
jklos 7e580c6e29 Adds VAXstation VLC and 4000/60 framebuffer support. From Blaz Antonic
and updated by BjörnJohannesson.
2014-12-16 11:34:17 +00:00
jklos 6c82a2cbc1 Fix leds.h include. 2014-12-16 11:23:11 +00:00
christos a95736d447 PR/49207: Kamil Rytarowski: Add sys/clock.h with generic time macros
(derived from clock_subr.h). Keep clock_subr.h with the kernel structures
and functions to reduce diffs, and have clock.h only include standalone
constants and macros.
2014-11-17 02:15:48 +00:00
manu 239cf5506d Remove unused extended attributes kernel options
As Masao Uebayashi pointed to me, UFS_EXTATTR_AUTOSTART, LFS_EXTATTR_AUTOSTART
and UFS_EXTATTR_AUTOCREATE are not used anywhere in the code. Remove them
as they have been obsolete for a long time:
UFS_EXTATTR_AUTOSTART was replaced by mount -o extattr
LFS_EXTATTR_AUTOSTART was created to match obsolete UFS_EXTATTR_AUTOSTART
UFS_EXTATTR_AUTOCREATE was replaced by sysctl vfs.ffs.extattr_autocreate
2014-11-16 16:01:39 +00:00
manu 2cab231d44 Support for UFS1 extended attributes in GENERIC and GENERIC-like kernels
This change just brings UFS1 extended attribute *support* in the kernel,
extended attributes are not enabled unless three conditions are met:
1) filesystem is UFS1 (newfs -O1)
2) .attribute/system and .attribute/user directories are created at fs root
3) filesystem is mounted with -o extattr

Some GENERIC kernels are obviously memory constrained, the extended
attributes options were not enabled for them, but just added commented out.
(kernel were considered memory constrained if QUOTA option was disabled)
2014-11-12 10:47:20 +00:00
snj f0a7346d21 src is too big these days to tolerate superfluous apostrophes. It's
"its", people!
2014-10-18 08:33:23 +00:00
dholland 4acb6306f5 Systematize (and in many cases, fix) the comments on options COMPAT_NN.
There are quite a few configs that are missing some COMPAT_NN options
in ways that don't make sense; this should probably get cleaned up
too, but for the time being I've not added or removed anything.
2014-08-23 20:26:56 +00:00
matt b6a0909548 Revert back to 1.7. 2014-08-21 06:48:04 +00:00
apb 30a0368950 Add "options COMPAT_70" to all kernel configuration files that
already had "options COMPAT_60".
2014-08-16 17:56:30 +00:00
matt 0e582fedb6 Fix SCN?FAST{8,16} formats to match reality (int) in gcc4.8.3 2014-08-14 14:21:03 +00:00
martin 9842fff13a Revert previous changes, gcc configuration will be adapted instead. 2014-08-14 11:28:13 +00:00
martin b209a3f1b9 intptr_t and uintptr_t are not long any more. 2014-08-14 09:17:32 +00:00
martin 66ee8b8898 Previously we used unsigned long int as __uintptr_t, but gcc prefers
__UINTPTR_TYPE__ as unsigned int, and now we use that for __uintptr_t
as well, so adapt MUTEX_CAS() accordingly.
2014-08-14 09:02:18 +00:00
matt 82a12988ef Include <sys/common_int_types.h> if __UINTPTR_TYPE__ is defined. 2014-08-13 22:56:56 +00:00
matt 0b2cac531b Include <sys/common_int_const.h> if __INTMAX_C_SUFFIX__ is defined. 2014-08-13 22:51:58 +00:00
matt 7c5094c243 Include <sys/common_init_limits.h> if __SIG_ATOMIC_MAX__ is defined. 2014-08-13 22:31:06 +00:00
matt 2534797f07 include <sys/common_int_mwgwtypes.h> if __UINT_FAST64_TYPE__ is defined. 2014-08-13 22:25:39 +00:00
matt efe99ca41d include <sys/common_int_fmtio.h> if __INTPTR_FMTd__ is defined 2014-08-13 19:48:17 +00:00
martin cc0e5017b6 Remove atoi() prototype 2014-08-10 16:53:22 +00:00
joerg eb6cc7528a Consistently define WARN in a way that passes format string checks, i.e.
always uses the same number of arguments as given in the format string.
2014-08-06 21:57:48 +00:00