Commit Graph

9150 Commits

Author SHA1 Message Date
uebayasi
634cfde5a0 Use LINKSCRIPT. 2014-11-15 12:20: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
christos
b5c931e8d2 switch to DRMKMS drivers 2014-11-02 23:14:20 +00:00
uebayasi
739f155d2f Revert previous per joerg@'s request.
According to him, exposing .data.{read_mostly,cacheline_aligned} is
intentional so that people can easily see which variables are optimized.
2014-11-02 17:58:14 +00:00
uebayasi
11d4b6746a amd64, i386: Don't expose .data.{read_mostly,cacheline_aligned} sections 2014-11-01 11:58:55 +00:00
msaitoh
3a7d62f9b4 Add support for sysenter, sysexit, vmptrld, vmptrst and getsec. 2014-10-23 10:01:53 +00:00
joerg
dd37d699b8 Disable SSE and AVX for kernel modules too. 2014-10-19 15:41:05 +00:00
uebayasi
c0e750b9f1 Install agp_* drivers where pchb(4) is installed except INSTALL_FLOPPY.
XXX
Config around agp(4) is done in quite wrong direction.
	"pchb <- (agpbus) <- agp <- agp_*"
should be:
	"pchb <- (pcibus) <- agp_* <- (agpbus) <- agp"
2014-10-18 16:56:51 +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
msaitoh
a479fc28f6 Fix bugs:
- aaa and daa were reversed. Same as *BSDs.
- fix operand order of shld and shrd. Same as *BSDs.
2014-10-09 18:34:24 +00:00
msaitoh
41b9704662 No functional change.
- 0 -> NULL
- Don't use cast.
- Style fix.
- Fix typos in comment.
2014-10-07 15:34:05 +00:00
christos
d7039df44d adjust for the new findvendor 2014-09-21 17:59:52 +00:00
christos
95c08e48f4 Add HDAUDIOVERBOSE 2014-09-19 17:30:03 +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
wiz
6623c7d147 Add commented out KDTRACE_HOOKS line. 2014-09-18 14:58:21 +00:00
mrg
06c8f8ccd8 fix an END() marker to match the function. 2014-09-16 09:42:47 +00:00
msaitoh
966fce455d KNF. No binary change. 2014-09-12 12:30:20 +00:00
apb
db44b2018a __USE(id) in the !PCIBIOSVERBOSE case.
Fixes PR 49181.
2014-09-09 06:38:33 +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
fe275f49d7 Add missing COMPAT_{50,60,70} lines, commented out or not as per the
COMPAT_40 line.
2014-08-23 21:10:20 +00:00
dholland
9abf1a6b70 Add options COMPAT_44, which controls mostly MD code but should be in
here anyway.
2014-08-23 21:05:39 +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
30a0368950 Add "options COMPAT_70" to all kernel configuration files that
already had "options COMPAT_60".
2014-08-16 17:56:30 +00:00
tls
ea6af427bd Merge tls-earlyentropy branch into HEAD. 2014-08-10 16:44:32 +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
ceedb5b733 GCC sets up u?int_fast8_t to be int, so be consistent with it. 2014-07-28 11:22:46 +00:00
riastradh
6bfd56b042 Rename radeondrmkms to just plain radeon.
radeondrmkmsfb will stay as is until the name radeonfb is available
(currently taken by legacy dev/pci/radeonfb.c).
2014-07-26 07:36:09 +00:00
joerg
d87708c52a Add generic versions of machine/int_*.h for compilers providing
appropiate macros for all necessary types.
2014-07-25 21:43:13 +00:00
dholland
ed9d9bd49c Fix description of DIAGNOSTIC in x86 kernels. 2014-07-25 15:01:14 +00:00
riastradh
c33e688be3 Hook up radeondrmkmsfb code.
Builds, not testable yet.
2014-07-25 12:35:03 +00:00
riastradh
6569e94804 Add intelfb to i386/DRMKMS too. 2014-07-25 11:51:21 +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
riastradh
c5f3dfcf35 Add a FIRST1G page freelist to x86, for old graphics devices. 2014-07-24 13:42:28 +00:00
alnsn
582402eab5 Rename sljitarch.h to sljit_machdep.h. 2014-07-23 18:19:43 +00:00
erh
a57dc65e45 Fix bootxx_* and boot on machines where the bios sets high bits of %eax on success. 2014-07-19 14:50:21 +00:00
prlw1
efb45e7161 drmkmsbus has gone away 2014-07-18 16:01:07 +00:00
ozaki-r
2fef08800f Add NET_MPSAFE to ALL 2014-07-02 07:18:32 +00:00
tsutsui
694848a27b Add gffb(4) at pci. 2014-06-29 03:44:33 +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
maxv
b042e45033 Remove dead code. The kernel already checks for PT_INTERP sections, and puts
their content into "itp". There's no need for re-reading the whole binary and
trying to find this section again. Just use "itp".

DEBUG_FREEBSD_ELF is now unused, so remove its references in amd64/conf/ALL
and i386/conf/ALL.
2014-06-24 11:59:10 +00:00
dsl
3396d1716a Comment out the xhci entries.
The driver really doesn't work well enough to be generally useful.
2014-06-16 19:08:17 +00:00
riastradh
cd2156f4c2 Tweak x86 page freelists and add x86_select_freelist.
- Add 4G freelist to i386 -- there may be higher addresses if PAE.
- Add 64G and 1T freelists to amd64.
- Simplify freelist setup code and condense it into a table.
- Add x86_select_freelist to get a freelist guaranteed to yield
addresses no greater than a prescribed maximum address.

x86_select_freelist takes a uint64_t, not a paddr_t or bus_addr_t, so
that you can pass in, e.g., a 36-bit maximum address without needing
to write conditionals for i386/PAE.

No objections on port-x86:

https://mail-index.netbsd.org/port-i386/2014/05/21/msg003277.html
https://mail-index.netbsd.org/port-amd64/2014/05/21/msg002062.html
2014-06-12 19:02:35 +00:00
hikaru
73c29dd7cc Add VMware VMXNET3 ethernet driver from OpenBSD, vmx(4). 2014-06-10 01:42:38 +00:00
dholland
a6869e0836 add MPVERBOSE, noted missing in PR 48733. 2014-06-02 02:11:51 +00:00
christos
1244ef9a11 enable IPSEC 2014-05-29 14:48:40 +00:00
jakllsch
e5bfbf44f0 Now that GCC 4.8 on i486 has stolen the frame pointer, do like amd64 and
add -fno-omit-frame-pointer to kernel DEFCOPTS and modules CFLAGS.
2014-05-24 18:39:04 +00:00
dsl
2ea4518b97 Add -fno-asynchronous-unwind-tables -fno-exceptions to gcc builds.
One of these (probably the first) is needed to stop the eh-frame
section being created.
The eh_frame section is loadable and bloats the boot images.
This might be enough to make pxeboot work.
2014-05-01 18:37:26 +00:00
riastradh
9b5b162102 Add applesmc(4) to {i386,amd64}/ALL. 2014-04-25 18:25:52 +00:00