maya
3bb853ed54
r_symndx is no longer declared, use symnum and initialize it before use.
...
Completes the changes in the commit:
"Replace COMBREL with just-in-time check in _rtld_relocate_nonplt_objects."
http://mail-index.netbsd.org/source-changes/2017/06/19/msg085496.html
2019-04-15 19:13:03 +00:00
maya
8684462788
Re-do previous:
...
emulate the addition of NETBSD_SUBTARGET_EXTRA_SPECS usually done by
SUBTARGET_EXTRA_SPECS (not used in risc-v) with EXTRA_SPECS.
Go back to using %(netbsd_link_spec) in our link spec, now that it's
a valid string.
Try to mimic other riscv OSes in our LINK_SPEC. they all start with
"-melf" XLEN_SPEC "lriscv" LD_EMUL_SUFFIX
and a definition of LD_EMUL_SUFFIX,
let's copy the LD_EMUL_SUFFIX linux uses.
Now we can link executables.
2019-04-15 18:49:07 +00:00
maya
085f60235e
we need rintl (long double) to link binaries
2019-04-15 18:44:26 +00:00
maya
0f71666ae3
Cargo cult follow the other 128bit long double architecture (sparc64).
2019-04-15 18:41:06 +00:00
kamil
49f0c7e644
Temporarily ifdef out PTRACE_VFORK and PTRACE_VFORKDONE tests
...
It's not reliable on all ports. sparc and evbarm are known to hang.
PR kern/54111 by Martin Husemann
2019-04-15 16:47:47 +00:00
maya
dbcdc1e748
Provide riscv implementation.
...
XXX this is MI, why not use it for everyone?
2019-04-15 15:58:23 +00:00
maya
226aa51e27
Don't build compat libraries for riscv, for now.
2019-04-15 15:56:40 +00:00
maya
04b98926d2
more fake mknative
2019-04-15 14:51:23 +00:00
maya
ab65834a8e
don't redefine types.
...
UINTMAX_TYPE / INTMAX_TYPE are mostly not redefined on netbsd.
These choices contradict typical 64bit archs, perhaps we don't want them.
XXX is the SIZE_TYPE default for riscv reasonable?
(long unsigned int for 64bit abi, unsigned int for 32bit abi)
2019-04-15 14:19:20 +00:00
maya
d7ef8f48dc
Avoid -Wconversion warnings
2019-04-15 14:03:32 +00:00
maya
fc3e881944
Fake mknative
2019-04-15 14:02:23 +00:00
hannken
8cd3219f80
Add reference counting to alias states to prevent them disappearing
...
while still in use.
2019-04-15 13:01:08 +00:00
hannken
d609d7d444
Add support for fifos, character and block devices.
2019-04-15 12:59:38 +00:00
pgoyette
a17761b205
Clean up this mess and simplify, so that all the socket options get
...
handled correctly whether or not the compat_50 module is loaded.
2019-04-15 10:53:17 +00:00
maya
53dcb847d9
$ORIGIN support is now enabled.
...
Thanks martin for the heads up.
2019-04-15 10:17:01 +00:00
msaitoh
346a15db14
Regen.
2019-04-15 09:01:49 +00:00
msaitoh
9bb3402fba
Avoid duplication.
2019-04-15 09:01:28 +00:00
msaitoh
1ab282c613
Regen.
2019-04-15 08:55:11 +00:00
msaitoh
ca0c7246cf
- Add some Intel Xeon Scalable processor's devices.
...
- Add Some Qlogic devices from OpenBSD.
- Rename Qlogic 0x3022's name from ISP3022 to ISP4022.
2019-04-15 08:54:37 +00:00
skrll
ee2e3cd827
Some KNF
2019-04-15 07:48:20 +00:00
abhinav
55eec9d71a
Typo: s/a indirection/an indirection/
2019-04-15 06:42:06 +00:00
skrll
beb0a0c45a
Trailing whitespace
2019-04-15 06:16:42 +00:00
ozaki-r
390d6c3de3
Protect ether_multi list
...
Fix this driver because it can set IFEF_MPSAFE.
2019-04-15 06:00:04 +00:00
pgoyette
4e72e3b958
If the compat code successfully handled an option, don't return an error.
2019-04-15 03:58:29 +00:00
pgoyette
f305bd7248
Actually update the timeout value for the compability sockops
2019-04-15 02:35:28 +00:00
pgoyette
68c01b4b73
Split the COMPAT_50 socket-timeout stuff out of kern/uipc_socket.c
...
and into its own source file, which is now included in the compat_50
module.
(Not sure how this got missed during the original [pgoyette-compat] work)
2019-04-15 02:07:11 +00:00
wiz
a30bc70869
Use more Dv.
2019-04-14 22:09:50 +00:00
maya
9a04775cfa
Note that we now search DT_RUNPATH paths as well.
2019-04-14 20:27:02 +00:00
maya
5377f92471
Provide a definition of quiet NaN for RISC-V, and a reference to where
...
it comes from.
2019-04-14 19:25:27 +00:00
christos
fb007af046
undo previous unlock/relock; it is not needed now that we added the tls model
...
declaration to all externs in jemalloc (suggested by joerg@)
2019-04-14 19:21:37 +00:00
christos
a95af0e167
Declare the tls model in external declarations. Pointed out by joerg.
2019-04-14 19:13:17 +00:00
kardel
a924db8894
PR/53990, PR/52380, PR/52102: UFS2 cylinder group inode allocation botch
...
Fix rare allocation botch in ffs_nodealloccg().
Conditions:
a) less than
#_of_initialized_inodes(cg->cg_initediblk)
- inodes_per_filesystem_block
are allocated in the cylinder group
b) cg->cg_irotor points to a uninterupted run of
allocated inodes in the inode bitmap up to the
end of dynamically initialized inodes
(cg->cg_initediblk)
In this case the next inode after this run was returned
without initializing the respective inode block. As the
block is not initialized these inodes could trigger panics
on inode consistency due to old (uninitialized) disk data.
In very rare cases data loss could occur when
the uninitialized inode block is initialized via the
normal mechanism.
Further conditions to occur after the above:
c) no panic
d) no (forced) fsck
e) and more than cg->cg_initediblk - inodes_per_filesystem_block
allocated inodes.
Fix:
Always insure allocation always in initialized inode range
extending the initialized inode range as needed.
Add KASSERTMSG() safeguards.
ok hannken@
2019-04-14 15:55:24 +00:00
pgoyette
7757535d97
Only need to #include sys/vnode.h once
2019-04-14 11:35:54 +00:00
maxv
797b68a5c2
Add more checks, if the values are negative we hit a KASSERT later in the
...
timeout.
Reported-by: syzbot+662dbeb526303f458255@syzkaller.appspotmail.com
2019-04-14 09:09:55 +00:00
skrll
2dd15d3a9b
Trailing whitespace
2019-04-14 08:23:20 +00:00
abhinav
496b8ce373
Set the snippet_length field of the callback_args
...
Because of this field not being set, apropos was failing to show snippet when piped to a pager
or when used with -p argument.
2019-04-14 07:59:56 +00:00
skrll
1bf937cba6
Create a RPI compatible image which cn be used with
...
kernel_address=0x10000040
in config.txt.
XXX alignment requirement needs fixing
2019-04-14 07:57:51 +00:00
isaki
6fa2353a65
Fix build error. size locater is gone.
...
Thanks mrg@.
2019-04-14 04:16:32 +00:00
christos
f2519f7f77
ifix uninialized pid
2019-04-14 01:45:30 +00:00
maya
4e988105a7
Remove unused declaration of __BIT and __BITS
...
it's defined already, tested with #error.
2019-04-13 21:39:46 +00:00
maya
2c4214cba2
Omit mention of old vnd(4) bug, now resolved.
...
Via elge, thanks.
2019-04-13 19:29:27 +00:00
jmcneill
32689f21d5
If an enable-method property is present on the cpu node and not supported
...
by the kernel, try to use the enable-method from the cpus node instead.
2019-04-13 19:15:25 +00:00
christos
213dbbf596
add missing files
2019-04-13 18:04:23 +00:00
christos
6e1bd08549
regen
2019-04-13 18:04:04 +00:00
christos
d02c3a6c2b
fix typo, unused variable
2019-04-13 18:02:37 +00:00
christos
c9793efd5f
fix core stack traces (missing register 25)
2019-04-13 18:02:05 +00:00
maya
4dfcde7b82
build the generic 128bit long double code.
2019-04-13 17:54:13 +00:00
jmcneill
c2ecc879e4
Fix build w/o PSCI
2019-04-13 17:34:38 +00:00
jmcneill
8eb52256cf
The spin-table CPU enable method is only valid for 64-bit kernels.
2019-04-13 17:21:49 +00:00
maya
a0aab386b6
Don't alias the long double version to the double version.
...
We now have 128bit long double (by the upstream GCC changing things)
2019-04-13 17:18:26 +00:00