Commit Graph

1851 Commits

Author SHA1 Message Date
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
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
tsutsui
5636e147a4 Don't set garbages into BAT registers, which was broken in rev 1.25.
Should fix PR port-macppc/50018 (though there is no response for 3 weeks),
and should be pulled up to netbsd-7.
2015-07-26 14:24:29 +00:00
riastradh
445478ce67 MD rnd.h cleanups. Please let me know if I broke anything! 2015-04-13 21:18:40 +00:00
matt
ef9f2fbe65 Force main into .text 2015-01-09 22:02:18 +00:00
matt
a8f3e959bf Don't strip the .mrg since the symbols can be useful. 2014-12-24 00:36:09 +00:00
matt
dead6a7fe6 Make sure .data/.bss ends/starts on a 4 byte boundary. 2014-12-23 19:03:25 +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
macallan
350f4a6c19 appease gcc 4.8 2014-11-11 23:08:37 +00:00
chs
cf17e2bd8e in the initial asm code, save the interesting caller-saved registers
(containing "arg" and "len") across function calls to C code.
fixes kernels built with gcc 4.8.
2014-11-09 00:05:06 +00:00
macallan
a68d04b633 RADEONFB_MMAP_BARS is no more 2014-10-21 08:48: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
uebayasi
00d19946e2 Probably agp_apple is never used. 2014-10-11 07:03:09 +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
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
wiz
3de47c839c Add missing parameter in printf. From Henning Petersen in PR 49122. 2014-08-17 10:01:49 +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
macallan
99d6352116 if we get garbage from the RTC try again a couple times
this seems to happen more frequently when the PRAM battery goes bad
2014-08-13 10:56:35 +00:00
macallan
7bd75daa63 add PRAM access commands 2014-08-13 09:41:50 +00:00
joerg
26dd58ba65 Bump the ramdisk size on macppc and sandpoint somewhat to compensate for
larger code with LLVM.
2014-08-10 17:58:51 +00:00
joerg
4ca7de0cb3 Put GCC/GAS specific options under ACTIVE_CC == "gcc". 2014-08-10 17:44:26 +00:00
tls
ea6af427bd Merge tls-earlyentropy branch into HEAD. 2014-08-10 16:44:32 +00:00
joerg
0c7d9d4853 Don't set -mmultiple or -mno-string for PowerPC, the difference is too
small to really matter and it sometimes even increases the size.
2014-08-08 16:56:30 +00:00
martin
a845136cfb Make all ramdisk root sizes equal again 2014-08-08 07:45:04 +00:00
gdt
03d5c785ca Get macppc to build again by adjusting sizes.
In addition to the ramdisk size, it is necessary to have matching MD
sizes.  Increase the MD sizes, and leave a comment near the ramdisk
size to ease future changes.
2014-08-07 16:51:56 +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
1c774aacb6 Bump all image sizes slightly again 2014-08-06 14:23:53 +00:00
martin
330a17b1e2 Update all ramdisk sizes 2014-08-05 18:08:02 +00:00
martin
6498d1b893 Adapt to bigger ramdisk image 2014-08-05 16:22:01 +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
alnsn
582402eab5 Rename sljitarch.h to sljit_machdep.h. 2014-07-23 18:19:43 +00:00
christos
e58a356cba make pci_intr_string and eisa_intr_string take a buffer and a length
instead of relying in local static storage.
2014-03-29 19:28:24 +00:00
christos
43ebc39121 kill sprintf 2014-03-26 17:41:15 +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
mrg
f6e33f02a8 remove various set-but-unused variables. 2014-03-14 21:59:41 +00:00
macallan
c5b9afa668 config goop for ppc601 support
GENERIC_601 more or less resembles a Power Macintosh 7200 with a few drivers
thrown in for convenience while keeping the kernel itself smaller than 4MB
2014-03-03 16:09:43 +00:00
macallan
a87f46818f support 601, from scole_mail 2014-02-26 21:42:40 +00:00
macallan
ca179fe165 - don't read beyond array bounds
- break a bunch of long lines
- remove an outdated comment
2014-02-19 12:28:38 +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
alnsn
5345f80ec7 Enable sljit and bpfjit on powerpc. 2013-11-17 14:34:11 +00:00
macallan
6f0c714b5f do what cuda does - if we read garbage from the RTC try a few more times 2013-11-05 11:08:20 +00:00
macallan
e8ea24fe7e add gffb, tweak comments 2013-10-23 09:28:57 +00:00
joerg
55f32eafe3 Strip redundant parenthesis. 2013-07-30 15:31:49 +00:00
rmind
666e919182 G/C PFIL_HOOKS from the kernel configs. 2013-06-30 21:38:55 +00:00
christos
675a21629f catch the escapees of the IPSEC_NAT_T purge. 2013-06-05 23:12:37 +00:00
macallan
dca95b2a79 get rid of mem_region.start_hi - if we can deal with 64bit addresses then
paddr_t is already 64bit anyway
2013-05-13 00:21:56 +00:00
macallan
10afb9e227 add G5 support
from Phileas Fogg
2013-05-01 14:24:48 +00:00