Commit Graph

1714 Commits

Author SHA1 Message Date
uebayasi c692eec272 Use makeoptions_COPY_SYMTAB via opt_copy_symtab.h in sources. Remove a hack
to set -DCOPY_SYMTAB from sys/conf/Makefile.kern.inc.  Remove unnecessary
dependencies too.
2015-08-30 01:46:02 +00:00
nonaka 5e4eaa25ce Added rtwn(4) for Realtek RTL8188CE/RTL8192CE PCIe 802.11b/g/n wireless network
devices.  Ported from OpenBSD.
2015-08-27 14:04:07 +00:00
pooka 01d7ebdd80 Fix PTHREAD_FOO_INITIALIZER for C++ by not using volatile in the relevant
pthread types in C++ builds, attempt 2.

The problem with attempt 1 was making assumptions of what the MD
__cpu_simple_lock_t (declared volatile) looks like.  To get a same type
except non-volatile, we change the MD type to __cpu_simple_lock_nv_t
and typedef __cpu_simple_lock_t as a volatile __cpu_simple_lock_nv_t.
IMO, __cpu_simple_lock_t should not be volatile at all, but changing it
now is too risky.

Fixes at least Rumprun w/ gcc 5.1/5.2.  Furthermore, the mpd application
(and possibly others) will no longer require NetBSD-specific patches.

Tested: build.sh for i386, Rumprun for x86_64 w/ gcc 5.2.

Based on the patch from Christos in lib/49989.
2015-08-27 12:30:50 +00:00
uebayasi 54882650b0 Have MI genassym.cf. 2015-08-26 03:00:52 +00:00
uebayasi 8742062199 Fix previous; do include assym.h. 2015-08-25 08:07:24 +00:00
uebayasi 4d97440fb3 Replace COHERENCY_UNIT in ldscript. 2015-08-25 08:04:31 +00:00
uebayasi db0ac56ebf Define ${LINKSCRIPT} in one place. 2015-08-24 14:04:24 +00:00
uebayasi 38e0d764a5 Don't need to specify OUTPUT_FORMAT/OUTPUT_ARCH in linker scripts. 2015-08-22 02:23:58 +00:00
pooka aba2ad8151 Make it possible to explicitly disable MSI/MSIX with NO_PCI_MSI_MSIX.
Some platforms, e.g. linux uio-pci-generic, do not support MSI at all.

XXX: does MSI being defined intentionally depend on _KERNEL_OPT on amd64
but not i386?
2015-08-21 14:22:14 +00:00
uebayasi 474df19dac ${KERN_LDSCRIPT} -> ${KERNLDSCRIPT} 2015-08-21 02:02:00 +00:00
uebayasi 5589ad2eee Simplify these by relocating only .text. 2015-08-20 08:53:31 +00:00
uebayasi ae79402a58 Do =0 (zero-fill) only once. 2015-08-20 08:51:01 +00:00
uebayasi 7650f78dd3 Simplify this by splitting absolute relocation directives from other
relative, position-independent directives.  Since all sections are
relocated in parallel, specifying the address of .text is sufficient.
2015-08-20 08:36:42 +00:00
uebayasi 100ae2f1dc Indent. 2015-08-20 08:25:33 +00:00
uebayasi 185745d477 Indent with 2 spaces. 2015-08-20 07:00:48 +00:00
uebayasi 025c56a84f Kill trailing whitespaces. 2015-08-20 06:48:25 +00:00
uebayasi 774506b607 ${KERN_LDSCRIPT} -> ${KERNLDSCRIPT} 2015-08-18 10:18:20 +00:00
msaitoh f5fe29e986 Compile ixv(4) by default. 2015-08-13 04:58:03 +00:00
maxv e99716e305 Remove KMEMSTATS. 2015-08-12 07:53:56 +00:00
maxv b74522aae1 Remove KMEMSTATS. 2015-08-08 06:36:24 +00:00
mrg e2348ed97e allow MPVERBOSE to be set to a value that sets the "mp_verbose" variable. 2015-08-05 07:01:10 +00:00
mrg 69f3e6744c properly copy regs for kgdb, and define the number of registers properly.
from openbsd via Vicente Chaves and PR port-amd64/50091.
2015-07-26 10:49:05 +00:00
bouyer a73da94644 Uncoment options IPSEC, as requested by Gary Duzan in PR port-amd64/50052 2015-07-16 15:43:10 +00:00
msaitoh 500e70284d Add comment (ACPI_WAKEUP_ADDR). 2015-07-15 04:10:02 +00:00
kamil 823ff58d56 Improve spelling: regsister -> register
This change is non-functional.

Approved by <riastradh>, <pgoyette>
2015-07-11 10:15:33 +00:00
christos 5eab5ca5f2 handle PIC compilation (if we are building a PIE system; this is used by tests) 2015-06-30 21:08:24 +00:00
alnsn 1ad4508f49 Include <i386/sljit_machdep.h> for i386 compat build. 2015-06-10 23:16:27 +00:00
christos 0c472000e5 When in Rome... use true or false, instead of TRUE and FALSE. 2015-05-12 23:16:47 +00:00
msaitoh 8fccbbaabd Catch up FreeBSD and OpenBSD's changes. Not completed but it's better than
before:
- Add support rdrand, rdseed, fxrstor, ldmxcsr, stmxcsr, xsare, xrstor,
  xsaveopt, cflush and some others.
- Check REX bit correctly.
- Print correct register.
- Fix a lot of bugs.
- KNF.
2015-05-12 19:24:57 +00:00
mrg 4499df58a1 bump CHILD_MAX and OPEN_MAX defaults on several platforms, both to 1024. 2015-05-07 19:14:55 +00:00
pgoyette 653f735c22 For non-modular XEN3_DOMU kernels, include sysmon and all of its
subcomponents.  While the wdog and envsys subcomponents aren't
terribly useful in DOMU environment, this restores functionality
to previous (pre-modularized sysmon) state.
2015-05-05 22:14:24 +00:00
pgoyette 5b9fcd9abb Update to include the tco driver (it was previously included as part of
ichlpcib).
2015-05-03 02:52:50 +00:00
nat 05dec8ff13 Include splash with genfb.
splash.o is only included with options SPLASHSCREEN.
splash_image.o target moved to Makefile.kern.inc.

This commit was approved by matt@
2015-05-01 02:00:41 +00:00
nat 0fbcd67289 Remove unintended whitespace. 2015-04-30 15:22:32 +00:00
nat 65a1cf7fa9 Added a new option for embedding a splash screen into kernel.
Add: options SPLASHSCREEN
     makeoptions SPLASHSCREEN_IMAGE="path/to/image"
to your config file.  So far it will work on amd64 and RPI/RPI2.

This commit was with ideas, help, and OK from jmcneill@.
2015-04-30 13:46:47 +00:00
rjs e955d68624 Add DCCP. 2015-04-28 13:52:49 +00:00
knakahara 8ec1d9400a add x86 MD MSI/MSI-X support code. 2015-04-27 07:03:57 +00:00
mrg a75a305019 remove any pathname for gdb's amd64nbsd-tdep.c, so it doesn't really
matter where it lives.  PR#49859.
2015-04-26 18:49:39 +00:00
christos e9bc88c818 PR/49859: Kamil Rytarowski: Invalid path to amd64nbsd-tdep.c in a comment 2015-04-26 12:44:08 +00:00
khorben 5bf384f347 Also use ACPI shutdown on Xen DOM0
No objection on port-xen@
ok gdt@
2015-04-24 00:04:04 +00:00
pgoyette 37202cb966 Update device dependency information - the sysmon major device now depends on the sysmon module itself, not on the individual components. 2015-04-23 23:22:51 +00:00
pgoyette 33e2fea39c Add a space after "options" and before the <tab> for conformity
with other options.  Among other things, this allows one to
remove the # comment character without breaking the vertical
alignment.
2015-04-23 11:32:55 +00:00
msaitoh 1a393226ee Modify to make Intel Intel 10G Ethernet (ixg(4)) virtual function ixv(4)
compilable. Not completed yet. It's required to use MSI-X.
2015-03-10 09:26:49 +00:00
christos 73994f9f9a add dtrace hooks 2015-03-07 18:41:40 +00:00
riastradh e6fc8fc2b1 Fix tabbing of drm lines. 2015-03-06 15:09:50 +00:00
riastradh 09e70b50a6 Fix commented nouveau in amd64/GENERIC. Add nouveau to amd64/ALL.
Remove NV_DEBUG from amd64/ALL -- it breaks nouveau, and I can't find
any use of it in src/sys outside arch/atari/dev/nvram.c, which surely
has no relevance to amd64.

(Nouveau has an internal NV_DEBUG(...) macro for debug messages.)
2015-03-06 02:55:11 +00:00
christos 3ba84f5404 Tidy up error handling, and return SIGBUS for mmap past the end of file
as required by the spec.
2015-02-27 15:35:10 +00:00
nonaka e6864eda07 Add iwm(4). 2015-02-17 09:21:57 +00:00
nonaka f8baa4e97e iwm(4) works now, but 2.4GHz only.
> iwm0 at pci2 dev 0 function 0: Intel Dual Band Wireless AC 3160 (rev. 0x83)
> iwm0: interrupting at ioapic0 pin 18
> iwm0: hw rev: 0x160, fw ver 25.228 (API ver 9), address XX:XX:XX:XX:XX:XX
> iwm0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
> iwm0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
2015-02-13 18:57:46 +00:00
pooka e11041689b Add a driver for Intel Centrino 7260 and similar wireless cards.
Supported devices should more or less match ones supported
by the Linux iwlwifi mvm driver.  Sponsored by genua mbh for OpenBSD.

This is probably the world's first Canadian cross device driver: it was
created for OpenBSD by writing and porting a NetBSD driver which was
developed in a rump kernel in Linux userspace.

Note: I don't have access to the hardware anymore, so this version is
not tested and not enabled by default.  While I tried to be careful in
adding the NetBSD bits back, it's probable that there's a snafu or two.
Feel free to send private email in case you have the hardware and there
are issues.
2015-02-07 13:20:00 +00:00