Commit Graph

670 Commits

Author SHA1 Message Date
phx 4b0f549af2 Enable cfi/nor/flash devices as reading from flash seems to work now. 2015-09-07 23:01:08 +00:00
phx fe7eab31af Fix nor-flash bus space: extent limit should not be zero and bus space is
definitely big-endian. Reading the flash via /dev/flash0 works now.
Writing is untested.
2015-09-07 23:00:08 +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
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
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 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 bd383df604 Put GCC/GAS options under ACTIVE_CC == "gcc". 2014-08-10 17:46:54 +00:00
joerg d617742404 Use __unreachable(). 2014-08-08 21:18:10 +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
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
joerg c30561b5e9 Don't use non-literal strings as format strings.
XXX Switch to strlcpy.
2014-08-05 17:55:20 +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
phx d08eccdb32 mc146818's sc_flag indicates the time is stored in binary format, not BCD.
So we should configure the chip's REGB for binary format as well.
This makes the BeBox RTC finally work reliable for me.
2014-06-20 09:47:15 +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 360bdb9d7b fix sprintf. 2014-03-26 17:35:08 +00:00
jakllsch 035a7c5fd0 drop trailing whitespace 2014-03-22 18:54:28 +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
phx 005f3fb199 Enabled SYSV* options, which all ports have (and which is needed by 3rd
party software like SANE, e.g.).
Added ugen*.
2014-03-05 14:13:20 +00:00
phx f2a6e499cb Replaced enable/disable_intr by splhigh/splx. 2014-02-07 09:22:02 +00:00
phx 9f8b6ff2ae Remove enable_intr() and disable_intr(), which are unused. 2014-02-07 08:51:34 +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
jakllsch b21d55811d sprinkle const 2014-01-05 21:10:50 +00:00
jakllsch 99a7467c78 Drop duplicate and unused extern global variable. 2014-01-05 21:09:33 +00:00
alnsn 5345f80ec7 Enable sljit and bpfjit on powerpc. 2013-11-17 14:34:11 +00:00
nisimura 9e18f2cee2 shut off gcc 4.8 unused variable warnings. 2013-11-07 14:51:36 +00:00
phx 159a4dcdce New version can read the MAC address for QNAP systems from flash. 2013-09-15 18:22:57 +00:00
matt 61ef18cf91 Use <bsd.klinks.mk> 2013-08-21 06:41:52 +00:00
rmind 666e919182 G/C PFIL_HOOKS from the kernel configs. 2013-06-30 21:38:55 +00:00
christos e46f5f0078 remove obsolete networking options 2013-06-05 23:07:59 +00:00
phx 390967f8ed Added another three NH23x compatible products. 2013-05-25 15:07:49 +00:00
christos 2ec4fd84ba Complete the dosparts -> mbrparts conversion. Only x86k new uses dosparts
because it also uses struct dos_partition.
2013-05-16 19:06:44 +00:00
christos 1cc8b68d4b the bogus number police 2013-04-27 21:43:10 +00:00
christos dc14ae835f remove confusing numeric locators where they are unused. 2013-04-27 18:19:19 +00:00
kiyohara cd4f72f266 Fix hangup to interrupt on cascading PIC.
tested on bebox and evbppc/OPENBLOCKS600.
2013-04-21 15:42:11 +00:00
christos 2c1aa36c3d Under FAST_IPSEC, IPSEC_ESP is mandatory; GC it. 2013-03-02 02:42:07 +00:00
joerg e240adbd0b Retire OSI network stack. OK core@ 2013-03-01 18:25:13 +00:00
phx fd320b596a Implement real hardware power-off for DSM-G600 using the "ZWC" command.
It seems that not all microcontrollers support the command, though, so
the old solution to flash the power LED is still present as a fallback.
2013-02-19 15:58:19 +00:00
phx c97d3b4ef3 QNAP V200 boards have no EEPROM for the MAC address, so all devices default
to the same address (00:e0:4c:69:20:01).
Now we read the real MAC address from the flash ROM. It is stored at the
beginning of a 512-byte block in ASCII format. Some QNAP's have a broken
ext2 file system, so we cannot look for the file ETH0.MAC_ADDR therein,
but have to search the whole flash in 512-byte steps for candidates...
2012-12-25 17:07:06 +00:00
phx eed17668b3 Add a DEBUG function to search the Flash for byte-streams, as U-Boot usually
doesn't offer a search function.
2012-12-25 17:02:35 +00:00
phx 5bb0fdf44e Add another NH-231 clone to the list: Vibe NS-349-S 2012-11-26 17:56:17 +00:00
apb f3929b106b Add "options COMPAT_60" to all kernel configuration files
that already had "options COMPAT_50".
2012-10-17 14:48:07 +00:00
mlelstv 8ce4433821 Do not call setroot() from MD code and from MI code, which has
unwanted sideeffects in the RB_ASKNAME case. This fixes PR/46732.

No longer wrap MD cpu_rootconf(), as hp300 port stores reboot information
as a side effect. Instead call MI rootconf() from MD code which makes
rootconf() now a wrapper to setroot().

Adjust several MD routines to set the global booted_device,booted_partition
variables instead of passing partial information to setroot().

Make cpu_rootconf(9) describe the calling order.
2012-07-29 18:05:39 +00:00
matt 927b8a6c6e Fix -fno-common fallout. 2012-07-28 23:08:56 +00:00
dsl 6a03bb6b37 Remove the code that tries to load the "ffs" kernel module during boot.
This is in line with the core decision than even modular kernels should
  contain the ffs code.
I've left in the code that tries to load "nfs" and "ext2fs", but it
  isn't clear that is necessary.
Removes a warning message that (usually) flashes past to fast to read.
AFAICT all the relevant kernels contain ffs (and nfs for that matter).
2012-05-21 21:34:16 +00:00
nisimura 0e26a28956 A temporaly fix to avoid a lockup by KBT4 DISP button. Not sure
the real fix.  Curse on the every poorly written engineering
documents on Earth.
2012-05-15 02:14:13 +00:00