Commit Graph

9112 Commits

Author SHA1 Message Date
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
christos
e761cdd8b6 Explain what is going on with the 64 bit atomic ops, and restore them
for pure kernel use.
2014-04-24 19:23:00 +00:00
christos
9c5e3a7ee9 we don't really have 64 bit atomic ops. 2014-04-22 14:09:19 +00:00
christos
0497175db6 disable assert for lint. 2014-04-21 19:13:22 +00:00
christos
b00e83788b forward decl for struct pcb. 2014-04-21 19:12:11 +00:00
chs
821ef2eef9 add malo at pcmcia. 2014-04-21 16:35:38 +00:00
matt
8ed9a6d892 Since all our compilers support __DBL_* and __FLT_*, use them to define
{DBL,FLT}_{DIG,MIN,MAX}
2014-04-21 10:53:47 +00:00
uebayasi
e9a654c6e7 Use ldscript. Identical output confirmed. 2014-04-14 15:05:19 +00:00
uebayasi
3645dc518b Other boot loaders name ELF *.sym, not *.syms. Follow that convention. 2014-04-14 13:04:44 +00:00
riastradh
a86b8eb298 Remove FFS_NO_SNAPSHOT from x86/ALL so we do compile the snapshot code. 2014-04-08 22:04:15 +00:00
christos
b1909c04e2 add ixg 2014-04-08 19:40:57 +00:00
christos
8e3bf1eb2b make this more attractive (to me). 2014-04-08 15:34:18 +00:00
joerg
3c74afcfc8 Unbreak clang build by restricting -O0 hack to gcc. 2014-04-08 13:56:04 +00:00
christos
ad33dd774c XXX: gcc-4.8 bug. Passes wrong arguments to biosdisk_read(). Turn optimization
off.
2014-04-07 21:09:55 +00:00
jakllsch
62a5b099db Misc WARNS=4 fixes. 2014-04-06 19:18:00 +00:00
jakllsch
ee69c9e8f4 Use __dead. 2014-04-06 19:11:26 +00:00
christos
d18a4ca216 PR/48701: Timo Buhrmester: spurious messages while booting silently (gpio,
glxsb); use aprint_normal()
>Category:       kern
>Synopsis:       spurious messages while booting silently (gpio, glxsb)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
2014-04-04 14:47:26 +00:00
riastradh
b6491a1417 Copy NO_DRM and DRMKMS kernels for i386. 2014-04-03 19:18:51 +00:00
christos
bbbd837d1e we have cpu_bootconf() 2014-04-03 15:22:19 +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
93100edccb kill sprintf. 2014-03-26 17:58:57 +00:00
szptvlfn
a66bf66641 fix manual section numbering of sysctl.
thanks wiz@
2014-03-24 14:15:37 +00:00
christos
0f521138e3 remove unused 2014-03-23 02:57:20 +00:00
christos
5c08b734f4 allow LS to be commented out 2014-03-20 01:15:29 +00:00
nonaka
c3077021ad Add a driver for Realtek RTS5209/RTS5229 Card Reader.
Ported from OpenBSD.
2014-03-19 15:26:41 +00:00
jakllsch
fd777306a7 Disable xpci(4) PCI passthrough in XEN3_DOMU kernels by popular demand. 2014-03-16 18:04:56 +00:00
martin
309e4238f1 Add umcs(4) 2014-03-16 09:35:05 +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
martin
2ed142f223 Mark a variable diagnostic-only, from John D. Baker. 2014-03-12 18:59:07 +00:00
nonaka
b6d26a1dd9 fix to pass collect memory address to xrstor. 2014-03-06 12:30:24 +00:00
joerg
9c3fd52490 Introduce GENASSYM_CPPFLAGS for options during genassym processing.
Consistently drop assembler flags.
2014-03-04 14:58:14 +00:00
skrll
dd7bb1e0a8 G/C sys/simplelock.h includes 2014-02-28 10:16:51 +00:00
dsl
3a107b0ac4 Add support for saving the AVX-256 ymm registers during FPU context switches.
Add support for the forthcoming AVX-512 registers.
Code compiled with -mavx seems to work, but I've not tested context
  switches with live ymm registers.
There is a small cost on fork/exec (a larger area is copied/zerod),
  but I don't think the ymm registers are read/written unless they
  have been used.
The code use XSAVE on all cpus, I'm not brave enough to enable XSAVEOPT.
2014-02-25 22:16:52 +00:00
dsl
de8f31be61 Avoid unnecessary (and pointless) references to pcb->pcb_savefpu.
They were all in asserts.
2014-02-23 22:36:43 +00:00
dsl
21ead8e9af Add fpu_set_default_cw() and use it in the emulations to set the default
x87 control word.
This means that nothing outside fpu.c cares about the internals of the
  fpu save area.
New kernel modules won't load with the old kernel - but that won't matter.
2014-02-23 22:35:27 +00:00
dsl
f9cd6e68d1 Determine whether the cpu supports xsave (and hence AVX).
The result is only written to sysctl nodes at the moment.
I see:
machdep.fpu_save = 3 (implies xsaveopt)
machdep.xsave_size = 832
machdep.xsave_features = 7
Completely common up the i386 and amd64 machdep sysctl creation.
2014-02-23 12:56:40 +00:00
dsl
8b623c15d9 Move the amd64 and i386 pcb to the bottom of the uarea, and move the
kernel stack to the top.
Change the pcb layouts so that fpu save area is at the end and is
  64byte aligned ready for xsave (saving the ymm registers).
Welcome to 6.99.32
2014-02-20 18:19:09 +00:00
dsl
480bf53618 Add explicit #include <x86/fpu.h> instead of relying on pcb.h including it. 2014-02-19 21:23:01 +00:00
christos
7588fedb3f CID 1175795: Unused pointer value 2014-02-18 01:00:57 +00:00