Commit Graph

9232 Commits

Author SHA1 Message Date
christos
512ffbb6fc expose __vaddr_t for segments.h since it is a userland api. 2016-01-24 18:21:50 +00:00
christos
d84c286204 expose the kernel types for standalone code. 2016-01-23 22:31:19 +00:00
christos
d77af8a6d9 We'll define the kernel types for standalone code. 2016-01-23 22:29:29 +00:00
christos
ffeb8dbf4e Define _KERNTYPES for things that need it. 2016-01-23 21:22:45 +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
riz
9ed3ff4a08 Enable KDTRACE_HOOKS on i386 and amd64 GENERIC. 2016-01-22 21:56:56 +00:00
christos
f99428016a PR/50668: David Binderman: Don't compare unsigned to -1 2016-01-17 14:57:18 +00:00
ryo
c2acaf5fa5 __mcount_lock is moved to MI from MD.
because it is needed for all MULTIPROCESSOR arch, but it is exists only in i386 and amd64.

ok christos@, on tech-kern@
2016-01-10 09:04:32 +00:00
msaitoh
0c27f9bb62 Add ismt(4). 2016-01-05 11:33:18 +00:00
christos
8b50aec9fa revert, this has to do with the bootloader protocol version and should
stay the same until there is a reason for it to change.
2016-01-04 18:17:31 +00:00
christos
c4c05f8e97 change 60 to 70 which is the current release. Noticed by Rares Aioanei. 2016-01-03 20:59:47 +00:00
maxv
38eb13bf9e Extend SMEP support to i386 (does not require PAE). 2015-12-16 18:54:03 +00:00
christos
035ebb230e one default is better than two 2015-12-13 21:03:31 +00:00
christos
317883ba5f better than returning random errors. 2015-12-13 19:51:53 +00:00
mlelstv
75a9f56358 PR 50516 bad switch statement.
Adding some comments.
2015-12-11 08:04:20 +00:00
maxv
5f9c9faaae KNF 2015-11-28 18:08:40 +00:00
mrg
9884c86a80 make sure MSGBUFSIZE can't expand strangely by using parens. 2015-10-27 22:28:56 +00:00
khorben
142dd55d17 Remove references to SPLASHSCREEN_PROGRESS
To my knowledge this feature is no longer supported at the moment. The
manual page for wsdisplay(4) should probably also be updated to reflect
this situation.
2015-10-25 22:48:23 +00:00
maxv
87ee1fdec1 Disable PAX_SEGVGUARD.
We actually have a big problem: the fileassocs are never deleted.
Therefore, if a user generates a lot of buggy binaries and launches them
all, the kernel will allocate memory again again and again for all these
entries and will never free them (unless the files are deleted from the
disk). Which means that a user can too easily put the kernel under memory
pressure.
2015-09-26 16:33:16 +00:00
maxv
d42b2b5ae7 Remove KMEMSTATS. Normally it's ok now. 2015-09-26 11:16:12 +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
nonaka
ac3789be33 PR/50261: Added newer Toshiba hotkeys support. 2015-09-21 12:32:06 +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
uebayasi
ea72de740f Order library object build. 2015-09-07 03:44:19 +00:00
uebayasi
9068ec741b Sprinkle more done messages. 2015-09-07 03:20:18 +00:00
uebayasi
dd204a345e In kernel lib build, print message when things not only start bug also end. 2015-09-06 15:34:55 +00:00
uebayasi
c692eec272 Use makeoptions_COPY_SYMTAB via opt_copy_symtab.h in sources. Remove a hack
to set -DCOPY_SYMTAB from sys/conf/Makefile.kern.inc.  Remove unnecessary
dependencies too.
2015-08-30 01:46:02 +00:00
nonaka
5e4eaa25ce Added rtwn(4) for Realtek RTL8188CE/RTL8192CE PCIe 802.11b/g/n wireless network
devices.  Ported from OpenBSD.
2015-08-27 14:04:07 +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
uebayasi
54882650b0 Have MI genassym.cf. 2015-08-26 03:00:52 +00:00
uebayasi
1bd1d5c3d1 Replace a constant in ldscript. 2015-08-25 12:56:58 +00:00
uebayasi
db0ac56ebf Define ${LINKSCRIPT} in one place. 2015-08-24 14:04:24 +00:00
uebayasi
6ecada7d3b .rel/.rela should not be generated in kernels. 2015-08-22 23:49:54 +00:00
uebayasi
38e0d764a5 Don't need to specify OUTPUT_FORMAT/OUTPUT_ARCH in linker scripts. 2015-08-22 02:23:58 +00:00
pooka
aba2ad8151 Make it possible to explicitly disable MSI/MSIX with NO_PCI_MSI_MSIX.
Some platforms, e.g. linux uio-pci-generic, do not support MSI at all.

XXX: does MSI being defined intentionally depend on _KERNEL_OPT on amd64
but not i386?
2015-08-21 14:22:14 +00:00
uebayasi
474df19dac ${KERN_LDSCRIPT} -> ${KERNLDSCRIPT} 2015-08-21 02:02:00 +00:00
uebayasi
7fe7089a02 Add pseudo-device ksyms' where options DDB' is used, because
config(1)/config(5) can't handle module dependency correctly at this
moment.

(This is another proof that shared file definition (`file xxx.c a|b')
is a bad idea.)
2015-08-21 01:52:07 +00:00
christos
e7ae23fd9e include "ioconf.h" to get the 'void <driver>attach(int count);' prototype. 2015-08-20 14:40:16 +00:00
uebayasi
6e07de399e Do AT () relocation once. 2015-08-20 11:42:56 +00:00
uebayasi
0b2ec30cdb ${PROG} depends on ${LDSCRIPT}. 2015-08-20 11:38:27 +00:00
uebayasi
c0a580b524 Simplify these by doing AT () relocation once. 2015-08-20 09:34:54 +00:00
uebayasi
185745d477 Indent with 2 spaces. 2015-08-20 07:00:48 +00:00
uebayasi
774506b607 ${KERN_LDSCRIPT} -> ${KERNLDSCRIPT} 2015-08-18 10:18:20 +00:00
maxv
e99716e305 Remove KMEMSTATS. 2015-08-12 07:53:56 +00:00
maxv
02aebf5ed4 Remove KMEMSTATS. 2015-08-07 13:53:28 +00:00
mrg
e2348ed97e allow MPVERBOSE to be set to a value that sets the "mp_verbose" variable. 2015-08-05 07:01:10 +00:00
bouyer
a73da94644 Uncoment options IPSEC, as requested by Gary Duzan in PR port-amd64/50052 2015-07-16 15:43:10 +00:00
martin
e7a3928268 Make clock_t unsigned int everywhere.
Ok: matt@, mrg@
2015-06-17 14:32:31 +00:00
khorben
64a1eb60ad Also document the "splash" command in boot(8) 2015-06-11 15:56:53 +00:00
maxv
4bdaaf7678 Disable COMPAT_FREEBSD. The implementation is poor, not well tested and
almost irrelevant. People who need it (for tw_cli for example) can still
recompile their kernels with this option.

Discussed on tech-kern@
2015-05-23 18:13:31 +00:00