Commit Graph

506 Commits

Author SHA1 Message Date
jmcneill
ff4525543b remove tlb_flush define and change callers to use cpu_tlb_flushID directly, ok matt@ 2015-10-17 16:34:43 +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
dholland
25d3b9e7cb Final bit of PR 41200: headers that declare ioctls should include sys/ioccom.h.
This covers most if not all of the MD headers.

XXX: a lot of the ioctl definitions in some of these files are cutpasted.
2015-09-07 03:49:44 +00:00
uebayasi
db0ac56ebf Define ${LINKSCRIPT} in one place. 2015-08-24 14:04:24 +00:00
uebayasi
3b60f8ec0c Don't need to specify OUTPUT_FORMAT/OUTPUT_ARCH. 2015-08-23 08:57:24 +00:00
uebayasi
bb3b67b090 According to matt@, .ARM.{extab,exidx} are no longer used. 2015-08-22 23:19:55 +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
uebayasi
185745d477 Indent with 2 spaces. 2015-08-20 07:00:48 +00:00
uebayasi
42ef6285ce Write the rule of ldscript generation. 2015-08-19 05:47:38 +00:00
maxv
b74522aae1 Remove KMEMSTATS. 2015-08-08 06:36:24 +00:00
maxv
02aebf5ed4 Remove KMEMSTATS. 2015-08-07 13:53:28 +00:00
maxv
d22da207ed Remove the KMEMSTATS option. It no longer exists. 2015-08-07 07:29:33 +00:00
macallan
4762e3e045 don't map the framebuffer as cacheable 2015-06-30 03:52:54 +00:00
riastradh
445478ce67 MD rnd.h cleanups. Please let me know if I broke anything! 2015-04-13 21:18:40 +00:00
martin
2a9d1bb24d Put -fno-unwind-tables into CFLAGS instead of COPTS - the old version caused
DEFCOPTS not to be propagated into COPTS, which means no optimization
for the kernel - ooops!
2015-03-03 09:23:02 +00:00
joerg
9642a6c30f Use default PAGER_MAP_DEFAULT_SIZE for ARM and PowerPC, exception
acorn26. This bumps the KVA reservation from 4MB to 16MB and avoids
long hangs on my Cubietruck under IO. acorn26 is kept as it does have a
ridiculous low 32MB KVA limit.
2015-02-23 20:34:37 +00:00
martin
f00316cced Explicitly set LOADADDRESS, the linker script hack is overriden by
command line arguments now.
2014-11-25 07:42:35 +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
uebayasi
31da12f323 Set dependency via KERNLDSCRIPT. Don't touch SYSTEM_DEP from outside. 2014-11-16 12:02:55 +00:00
uebayasi
7c8e115825 Use LINKSCRIPT. 2014-11-15 13:41:16 +00:00
uebayasi
4c0e1c7bb3 Missing dependency on ldscript files. 2014-11-13 15:03:06 +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
christos
46923cbe5b fix leak 2014-09-21 15:48:29 +00:00
jnemeth
ee79d5b0e4 Create an "options MODULAR_DEFAULT_AUTOLOAD" config option and add
it to all kernel configs that contain "options MODULAR".  This
option turns on module autoloading by default (which is the current
default).  This allows people who don't want module autoloading on
by default to disable it by simply removing/commentting this line.
2014-08-24 07:59:22 +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
joerg
a26164117a Reorganize symbol table embedding. The existing option SYMTAB_SPACE is
replaced by the make option COPY_SYMTAB set to any value. The copy of
the symbol table is no longer put into a buffer in kern_ksyms.o, but a
small helper object. This object is build first with a dummy size, then
the kernel is linked to compute the real dimension of the symbol table
buffer. After that, the helper object is rebuild and the kernel linked
again.
2014-08-17 21:17:43 +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
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
martin
6954c566c4 Add COMPAT_NETBSD32, following the switch to eabi by default. 2014-08-03 08:53:56 +00:00
dholland
9a78d593a7 "internally consistency checks" -> "internal consistency checks" 2014-07-27 03:34:41 +00:00
dholland
f9228f4225 Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
2014-07-25 08:10:31 +00:00
joerg
8e870b303d Bump SYMTAB_SPACE to allow clang to build this kernel. 2014-06-24 12:17:33 +00:00
dholland
a68f9396b6 Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.
2014-03-16 05:20:22 +00:00
matt
53872253af include <arm/locore.h> 2014-02-22 18:56:25 +00:00
matt
13df20be52 Deal with non-4K page sizes. 2014-02-22 18:55:53 +00:00
matt
723d94f9f2 use kenter_pa/kremove 2014-02-22 18:55:18 +00:00
matt
5d3d9da11e Put EHABI exception tables at the end of text.
provide __exidx_start and __exidx_end symbols.
2014-01-30 15:36:43 +00:00
tsutsui
8c436a9898 Add empty LIBCRTI= as LIBCRT0 to build sa programs without installed DESTDIR.
XXX: probabry we should have bsd.saprog.mk or something.
2014-01-12 15:26:28 +00:00
joerg
9b97293f31 Fix const use. 2014-01-02 19:00:39 +00:00
matt
a49db314d1 Bump SYMTAB_SPACE 2013-12-27 22:13:32 +00:00
joerg
8b058f850e Don't use cpsr_all/spsr_all with mrs, it doesn't take a mask. 2013-12-02 18:36:10 +00:00
christos
db0f5e00f8 remove unused variables 2013-11-06 02:41:12 +00:00
christos
d5b0045acb move code inside ifdef 2013-11-06 02:35:26 +00:00
matt
f8945ff921 Bump STMRAB_SPACE 2013-08-27 03:41:59 +00:00
martin
95493a6fed Re-add -fno-unwind-tables, otherwise eabi kernels fail to boot (bug in
objcopy?)
2013-08-22 20:03:15 +00:00
matt
f71ef68b03 Use <bsd.klinks.mk> 2013-08-21 06:24:42 +00:00
matt
db7576897d Use <arm/locore.h> 2013-08-18 07:01:45 +00:00
martin
dcdb4c97c4 Do not explicitly prevent unwind table generation 2013-08-15 12:45:06 +00:00
martin
1185a86909 Do not output unwind tables, they make no sense for the kernel.
Do not force MACHINE=arm, to allow building eabi kernels with MACHINE=earmv4
2013-08-14 14:45:12 +00:00