Commit Graph

504 Commits

Author SHA1 Message Date
christos
cc8dba5ad2 Don't exclude amd64 from COMPAT < 15. We need it for COMPAT_NETBSD32 a.out 2014-12-14 21:14:06 +00:00
christos
c6e92db606 Add COMPAT_NOMID 2014-12-05 22:22:21 +00:00
lneto
26258645bb lua(4): fixed require 2014-11-30 19:15:03 +00:00
riastradh
9d31117bb7 Move all PCI/AGP code back to drmkms_pci module where it belongs. 2014-11-22 19:18:07 +00:00
pooka
b835110503 allow sharing Makefiles with rump kernel components 2014-11-19 00:17:10 +00:00
jmcneill
7addafef6f padvol.c is no more 2014-11-18 01:56:41 +00:00
joerg
44867f9155 Adjust flags to allow building with clang. 2014-11-13 16:37:39 +00:00
christos
0ed0226f71 this module needs MKLDSCRIPT too now 2014-11-12 03:03:01 +00:00
christos
f89937396a turn on dynamic ldscript creation to handle link set symbol definitions
used in the automatic sysctl creation.
2014-11-12 02:15:16 +00:00
christos
d57571ade8 move agpsupport to drmkms to avoid circular dependencies. 2014-11-12 02:14:17 +00:00
christos
2ffd75f234 make this work: add agpsupport and sysctl code 2014-11-12 02:13:30 +00:00
nonaka
efa7e15617 fix build failure.
>    /tmp/bracket/build/2014.11.10.22.43.46-i386/src/sys/external/bsd/drm2/include/linux/pci.h:36:20: fatal error: acpica.h: No such file or directory
2014-11-11 11:30:21 +00:00
christos
c08531e6a3 dedup and add the drmkms modules 2014-11-10 21:15:19 +00:00
mbalmer
433f0999b0 whitespace, knf, comments, but no functional change 2014-09-24 14:55:48 +00:00
christos
1d41c85dec delete hdaudio_ids. 2014-09-19 18:05:24 +00:00
christos
bb66bc12bd new module 2014-09-19 17:25:47 +00:00
wiz
7bfc8162b1 Per the wiki roadmap, rename the three dtrace modules to have
a "dtrace_" prefix.
amd64 build tested, other set list changes done the same way.
2014-09-18 19:45:24 +00:00
riastradh
2f4c673c6b Remove vestigial drm2pci module, replaced by drmkms_pci. 2014-09-14 20:16:07 +00:00
riastradh
8ed9fea46b Fix module build of drmkms_linux. 2014-09-14 20:09:18 +00:00
jnemeth
3481529578 Add the infrastructure for MODULAR support for Xen kernels. At
the moment, this can only load very simple modules due to missing
symbols.  It is being add at this time to make pullups to the
netbsd-7 branch easier.  It is not enabled by default in any kernels.
2014-08-11 03:43:25 +00:00
joerg
bd383df604 Put GCC/GAS options under ACTIVE_CC == "gcc". 2014-08-10 17:46:54 +00:00
bad
296c04e4e0 Revert most of rev 1.137. Build ubsec module only for i386 and amd64 and
punt on the other arches.
2014-08-10 11:50:15 +00:00
hannken
265f1d8cdb Change hfs from hashlist to vcache.
- use (cnid, fork) as key.
- use pool for hfs nodes.
2014-08-10 08:53:22 +00:00
matt
547b3a3b01 Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only.  While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.
2014-08-10 05:56:36 +00:00
riz
abe84671d3 empty() wants a variable name, not a value. This should un-break
the arm an mips arch builds which were broken by the previous
commit.
2014-08-09 22:10:35 +00:00
bad
f9f5065b39 Build ubsec(4) as a module on all arches where it was obivous how to do so.
That excludes powerpc because evppc OEA is missing definitions for
PPC_INTR_IMPL and PPC_PCI_MACHDEP_IMPL.
Adjust set lists.

Compile tested for most arches only.
2014-08-09 12:34:05 +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
hannken
5d6be57d01 Change efs from hashlist to vcache. 2014-08-07 08:24:23 +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
32189458a8 Rework Intel framebuffer attachment.
Turns out genfb_softc must be at the start of its own device_private,
so we can't have it in the middle of a structure, and certainly can't
have potentially multiple genfbs per graphics device.  Failing to do
this is why entering ddb didn't work with an i915drmkms console.

Instead of putting a genfb_softc into each drm_fb_helper, put a
device_t into each drm_fb_helper and create a new intelfb(4) device
for each Intel framebuffer.  This will be more flexible, too, in case
we want accelerated framebuffers later on.  (XXX Need to adapt the
radeon code, which I'm disabling until that happens to avoid breaking
the build.)

While here, defer disabling VGA, vga_cndetach, and genfb_attach until
we're actually ready to do them all together along with the mode
switch.  This should reduce the amount of time during which the
screen is blanked, in case it hangs.
2014-07-24 21:18:40 +00:00
hannken
98fe1e89dc Change kernfs from hashlist to vcache. 2014-07-20 13:58:04 +00:00
christos
b6dbaa1ca5 undo previous 2014-07-19 20:21:52 +00:00
christos
37f625bf5d XXX: remove file that includes userland headers. 2014-07-19 20:15:55 +00:00
lneto
4ab4902eb2 lua: updated from 5.1 to 5.3 work3
* lua(1):
  - changed lua_Integer to intmax_t
  - updated distrib/sets/lists and etc/mtree
  - updated bsd.lua.mk
  - fixed bozohttpd (lua-bozo.c)
  - compatibilized bindings: gpio, sqlite
* lua(4):
  - removed floating-point and libc dependencies using '#ifndef _KERNEL'
  - fixed division by zero and exponentiation
  - libkern: added isalnum(), iscntrl(), isgraph(), isprint() and ispunct()
  - acpica: removed isprint() from acnetbsd.h
  - libc: moved strcspn.c, strpbrk.c and strspn.c to common
  - removed stub headers
  - compatibilized bindings: luapmf, luasystm
* reorganized luaconf.h
* updated doc/CHANGES and doc/RESPONSIBLE
2014-07-19 18:38:33 +00:00
rmind
0621553d21 NPF: partially rewrite the connection tracking mechanism:
- Separate the tracking interface from the storage (state table)
  and thus prepare to use a new data structure for the storage.
- Fix some race conditions in NAT association logic.
2014-07-19 18:24:16 +00:00
lneto
7bdc78426d lua(4): added debug library 2014-07-19 17:21:24 +00:00
lneto
4e28dab90a lua(4): uniformed the KPI name space using 'klua_' prefix 2014-07-19 17:20:02 +00:00
lneto
094cf69fa2 lua(4): using lua_CFunction 2014-07-19 17:14:40 +00:00
lneto
ba791a5e52 lua(4): added support for running Lua scripts in intr context
* using kmem_intr on lua_alloc
* using mutex directly on klua_lock
* added ipl arg on klua_newstate()
* added kluaL_newstate function
* fixed synchronization: locking the Lua state on luaioctl
2014-07-19 17:13:22 +00:00
lneto
f3c23d8032 lua(4): cleaned stubs 2014-07-19 17:10:02 +00:00
riastradh
bc81f6d8be Fix wsmouse at uatp attachment for module. 2014-07-17 17:11:12 +00:00
riastradh
26083f6ccc Remove needless linux_gfp.c.
Trying to make do with Linux's page allocation interface is pretty
much always wrong: either we let uvm allocate pages in uvm objects
for us, or we use bus_dma.
2014-07-17 13:52:22 +00:00
riastradh
77b5597a2b Make it build and boot on my test machines.
Screen blanks on boot on the Ivy Bridge system with

   DRM error in cpt_serr_int_handler: PCH transcoder A FIFO underrun

But after that everything is OK.  Appears to be an upstream problem.
To investigate...

I think there's a cache flushing issue somewhere -- there are little
display artefacts on my T60.
2014-07-16 20:56:24 +00:00
kardel
54c2251d60 add HYT-221/271/939 humidity/temperature I2C sensor
extend envsys(4) framework by %rH (relative humidity)
2014-05-18 11:46:23 +00:00
dholland
7de8c6f8a6 Move lfs_getpages and lfs_putpages to their own file. 2014-05-16 09:34:03 +00:00
hannken
42c8d67c49 Add a global vnode cache:
- vcache_get() retrieves a referenced and initialised vnode / fs node pair.
- vcache_remove() removes a vnode / fs node pair from the cache.

On cache miss vcache_get() calls new vfs operation vfs_loadvnode() to
initialise a vnode / fs node pair.  This call is guaranteed exclusive,
no other thread will try to load this vnode / fs node pair.

Convert ufs/ext2fs, ufs/ffs and ufs/mfs to use this interface.

Remove now unused ufs/ufs_ihash

Discussed on tech-kern.

Welcome to 6.99.41
2014-05-08 08:21:53 +00:00
christos
2e7413fc9c add atomic.c 2014-04-22 15:12:52 +00:00
njoly
4eb3dbc504 Move a few compat 50 syscalls, not applicable to rump kernels, out of
kern_time_50.c to a new source module.
2014-04-04 18:17:36 +00:00
riastradh
f8b17fdc8b Remove vestigial modules/apple_smc/apple_smc.ioconf. 2014-04-01 17:52:26 +00:00
riastradh
9456e37730 Rework Apple SMC attachment goo and split into multiple modules.
The four modules are apple_smc for the core functions, apple_smc_acpi
for attachment at acpi, and apple_smc_fan & apple_smc_temp for stuff
on the SMC.

Seems like there's a lot more bookkeeping necessary to maintain
children of an applesmc device implemented by loadable modules.
Maybe there's a better way I just haven't figured out yet.
2014-04-01 17:48:39 +00:00
riastradh
0396c57641 First draft of drivers for the Apple System Management Controller.
Device interface derived by reading the Linux driver source code and
<http:///www.parhelia.ch/blog/statics/k3_keys.html> as of 2012-12-05.

Includes support for attaching fan and temperature sensors to sysmon.
No accelerometer yet.

Compile-tested only, based on some run-testing of experiments from
userland.  Module attachment is not quite finished, so it won't work
yet.
2014-04-01 17:47:36 +00:00
riastradh
579dbc3bf5 Make drmkms find header files from sys/external/bsd/common. 2014-04-01 15:08:58 +00:00
christos
fc1afab118 use cpu_getmodel() 2014-03-24 20:21:02 +00:00
riastradh
6cb10275d0 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +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
ozaki-r
e5e9a71f64 Tidy up Makefile of cyclic and dtrace modules to support ARM 2014-03-05 06:40:45 +00:00
joerg
9c3fd52490 Introduce GENASSYM_CPPFLAGS for options during genassym processing.
Consistently drop assembler flags.
2014-03-04 14:58:14 +00:00
ozaki-r
ad9c17e02b Remove unnecessary files.i2c inclusion
files.i2c is already included in conf/files. So we don't need to include
it in this file.

This fix shuts up many warnings on building sys/modules/iic.
2014-03-04 00:54:55 +00:00
pooka
4f6fb3bf35 Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.
2014-02-25 18:30:08 +00:00
pgoyette
f496b70ec7 Undo previous - it still needs a lot more work.
For now, we'll use the hand-crafted cf* structures and directly
call all the config routines.
2014-02-03 23:11:40 +00:00
pgoyette
a5060d0c64 Provide ioconf file to generate config data structures 2014-01-31 18:12:15 +00:00
pgoyette
183540fff2 Add hifn(4) and ubsec(4) to the NOTYET section, and note that they can
be successfully built only on architectures that have PCI.
2014-01-03 16:16:10 +00:00
pgoyette
cdd7b47598 Add module glue for hifn(4) 2014-01-03 16:12:49 +00:00
pgoyette
2dd4f4d91a Modularize the opencrypto components and link to the build 2014-01-01 16:06:00 +00:00
pgoyette
f45c6e8a3c Create modules for software crypto components. 2014-01-01 15:18:57 +00:00
pgoyette
09c7634540 Start modularizing the opencrypto framework. 2013-12-29 18:20:42 +00:00
pgoyette
77b8800e73 Re-sort in alphabetic sequence. 2013-12-29 16:32:32 +00:00
pgoyette
1b0023ef9a Modularize net/zlib so it can be used by the vnd module (and, eventually,
by an opencrypto module).
2013-12-29 08:09:44 +00:00
pgoyette
1b9d1cab87 Descend into ccd 2013-12-28 19:45:13 +00:00
pgoyette
e5a29159a9 Make dksubr.c into a module, and make the cgd and dm modules depend on
it.

Now that cgd is completely modularized, descend into modules/cgd to
actually create the module.
2013-12-28 19:25:07 +00:00
christos
e0f5dac1bf Remove strncat now that it is part of the kernel anyway. 2013-12-27 22:09:43 +00:00
lneto
ae5a3d714d added luasystm files (for some reason it wasn't done in the last commit) 2013-12-17 00:02:22 +00:00
lneto
1c57b8e8aa renamed luacore to luasystm 2013-12-16 23:54:26 +00:00
lneto
b716fbc627 using luaL_register() in luapmf 2013-12-16 23:35:48 +00:00
lneto
a8dd600bee fixed lua(4) alloc (nsize can be lesser than osize) 2013-12-04 02:12:01 +00:00
joerg
3f8cd6d0ba Let's use a format string, shall we? 2013-12-02 12:29:44 +00:00
lneto
2421e2bfaa merged luaconf.h of kernel and userspace Lua 2013-12-02 06:07:22 +00:00
lneto
f371334bc2 using Lua auxlib in luacore module 2013-12-02 05:06:32 +00:00
lneto
f4a57b49a2 put Lua auxlib and some stdlibs in lua(4) 2013-12-02 04:57:41 +00:00
lneto
c4a02e0a12 changed lua_Number to int64_t 2013-12-02 04:39:10 +00:00
mbalmer
b345b17fdd switch from malloc(9) to kmem(9) 2013-11-23 15:53:37 +00:00
bad
0e35e79f53 ubsec is not a MI buildable module. disable it for now. 2013-11-18 16:23:47 +00:00
alnsn
870a203eea Build and install sljit.kmod and bpfjit.kmod iff ${MKSLJIT} != "no". 2013-11-17 18:58:28 +00:00
bad
456912e1a9 Make ubsec(4) loadable as kmod. 2013-11-17 17:16:24 +00:00
skrll
e516de1ff2 Build a module for usmsc(4). 2013-11-16 16:59:03 +00:00
jmcneill
d4b8b63b38 set GENASSYM_DIR for arm and earm 2013-11-09 17:30:46 +00:00
rmind
a79812ea10 NPF: add support for specifying the interfaces before they are attached.
If an interface is or gets detached, all associated rules and connections
will be deactivated (it might be useful to have an option to invalidate
the associated connections).  Once the interface is reattached they will
become active.

Bump NPF_VERSION.
2013-11-08 00:38:26 +00:00
mbalmer
ceb424979d fix build on arm 2013-10-31 16:50:14 +00:00
mbalmer
3b5eeb2ba0 initialize variables 2013-10-29 17:35:04 +00:00
mbalmer
96982b85d5 check parameters 2013-10-29 09:18:45 +00:00
mbalmer
da8619577e linke pmf(9l) to the build 2013-10-28 20:32:14 +00:00
mbalmer
35b872f5c4 Initial Lua binding for pmf(9) 2013-10-28 20:06:05 +00:00
mbalmer
36d11e8a36 link core(9l) (docs pending) to the build 2013-10-28 19:18:54 +00:00
mbalmer
23d8d59a58 link the lua(4) module to the build 2013-10-28 18:51:13 +00:00
nonaka
87abaea977 Add driver for ASIX AX88178a and AX88179 Ethernet interface.
Ported from OpenBSD.
2013-10-26 09:16:19 +00:00
mbalmer
c1f5fe0a62 use MODULE_CLASS_MISC for Lua modules 2013-10-23 18:57:40 +00:00
mbalmer
762ff41435 fix CVS marker and copyright year 2013-10-18 07:49:06 +00:00
mbalmer
15d6254306 check lua_tostring()'s return value 2013-10-18 07:46:55 +00:00
alnsn
e20531c13e Use "%s" to panic. 2013-10-16 21:55:56 +00:00
mbalmer
e9ea606005 core module for lua(4) 2013-10-16 19:47:19 +00:00