Commit Graph

249 Commits

Author SHA1 Message Date
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
nonaka fdb1288869 Added drvctl, putter and PUFFS. 2015-02-05 14:32:31 +00:00
christos 88e5019daf merge common information (fix build) 2015-01-08 01:52:42 +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
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 d4908ddcd5 Use LINKSCRIPT. 2014-11-15 13:34:30 +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
nonaka 2fd9bc605b Avoid "unhandled relocation of type 3 for" error when load module.
"insmod zbsdmod.o" is successful now.
2014-10-14 08:33:38 +00:00
nonaka 94ff29c8fa Apply WM8731 support patch from TOYOKURA Atsushi, arranged by me.
- SL-C700: work fine
- SL-C750: attach failed
- SL-C860: not tested
2014-09-23 14:49:46 +00:00
christos c7032b5d9a Disable BSDLABEL and MBR DKWEDGE methods again since sysinst does not work
with wedges.
2014-09-19 15:24:24 +00:00
matt 1937568221 Don't use ${MACHINE} but zaurus instead. 2014-08-27 03:17:21 +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
christos 409d07743a - Enable Wedge support for MBR/BSDLABEL where it was commented out.
- Add apple partition support where it was missing
- Add comments where missing
2014-08-18 06:31:24 +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 2275423cea Add "no options COMPAT_70" to all kernel configuration files that
already had "no options COMPAT_60".
2014-08-16 17:57:02 +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
isaki 7b2cf7659d Unify all arch/*/stand's atoi() to MI libsa.
lib/libsa/atoi.c was separated from lib/libsa/bootcfg.c.
PR/49084
2014-08-10 07:40:49 +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 c7a671b4d6 Adapt to increased ramdisk size 2014-08-04 20:59:19 +00:00
martin 7cf306591b Add a few missing netbsd32_machdep.h files 2014-08-03 16:16:27 +00:00
martin 6954c566c4 Add COMPAT_NETBSD32, following the switch to eabi by default. 2014-08-03 08:53:56 +00:00
skrll 1a756f61d4 unifdef -U__OLD_INTERRUPT_CODE 2014-07-27 08:55:39 +00:00
alnsn 582402eab5 Rename sljitarch.h to sljit_machdep.h. 2014-07-23 18:19:43 +00:00
rtr e9c95bf579 patch posted to tech-kern@ 2014/06/25 for review with minor changes
resulting from feedback.

move multiple copies of code for parsing boot.cfg file from sparc, i386
and zaurus into libsa/bootcfg.{h,c}. largely retained i386 parsing logic
in addition to keeping sparc dispatch function while remaining consistent
with boot.cfg(5).

previous sparc64 file format has been obsoleted but only used by boot
CDs distrib/sparc64/bootfs/boot.cfg has been updated to compensate.

exported names have been prefixed with either BOOTCFG_ or bootcfg_ as per
feedback from christos@

tested on amd64 & sparc64 but not zaurus.
2014-06-28 09:16:18 +00:00
alnsn be10a58478 Add sljit support to arm. 2014-06-17 06:36:39 +00:00
christos dc14a65969 use snprintf 2014-03-26 08:02:38 +00:00
skrll 88252f7deb Remove unused variable 2014-03-08 17:05:08 +00:00
joerg a9d09c60a9 Don't overwrite MACHINE_ARCH if it is already set. 2014-03-02 16:18:41 +00:00
joerg 56e90cb43e Typo 2014-03-01 12:40:50 +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 69fd5d473d Move flags for ARM's APCS ABI into a common variable. Add some forces to
deal with limitations in the Clang <-> LLVM backend interaction to pick
the correct ABI and target assembler.
2013-12-15 18:08:37 +00:00
joerg 13bf828c30 Use -marm for clang builds, too. 2013-12-05 16:26:04 +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
joerg e768fe990b Use format string. 2013-12-01 02:54:53 +00:00
christos 8a6fbebf2f fix unused variables 2013-11-04 21:59:15 +00:00
christos 1b59fcd58b fix more -mno-thumb. 2013-11-04 21:30:16 +00:00
christos c4e471c49f delete eh_frame gunk, which hopefully will make the kernel small enough to boot. 2013-10-03 23:48:34 +00:00
christos 6e8e96a525 disable more stuff. 2013-09-13 15:00:47 +00:00
matt 046aded495 Fix more <arm/locore.h> lossage 2013-08-18 21:42:16 +00:00
matt 50192497ae Add CPPFLAGS+= -mno-thumb -mno-thumb-interwork 2013-08-15 21:41:08 +00:00
matt 6dfcb7e808 Add -fno-unwind-tables 2013-08-12 22:50:51 +00:00
he 626b3edbd1 Bump the INSTALL ramdisk by 100k so that the contents fits again.
Approved by nonaka@
2013-06-28 19:24:28 +00:00
matt c16586211c Make all ports use a common disklabel.h with MAXPARTITIONS set to 16.
Only RAW_PART varies between ports.
2013-05-07 20:42:45 +00:00
matt 5695f408d6 use KLINK_MACHINE 2013-05-02 04:22:44 +00:00
matt 5f058922b3 This change arm, armeb, earm, earmeb, earmhf, earmhfeb so all builds that
share a MACHINE_ARCH for userland so that except for etc, will produce
identical sets.

usr/include/machine now points to usr/include/arm
2013-05-02 03:56:38 +00:00
matt b9022c47e4 Force abi/float-abi/cpu
Only allow to build on little-endian.
Force MACHINE to be zaurus.
2013-05-01 22:16:15 +00:00
christos 1cc8b68d4b the bogus number police 2013-04-27 21:43:10 +00:00
nonaka 8a6a7696a3 Apply patch from steleto, arranged by me.
- Avoid chattering for SL-C7x0/860
- Add more stuck keys.
2013-03-30 08:35:06 +00:00