Commit Graph

238695 Commits

Author SHA1 Message Date
christos
05e58339da Apply the GNU-stack fixes to the old branch. 2015-11-07 16:53:59 +00:00
christos
bb5915f98c Fix inconsistencies with GNU-stack note:
- always use __ELF__ && __linux, not just __ELF__ or just __linux__
- remember to pop back to the previous section where it is missing
XXX: need to file this bug with the GNU folks.
2015-11-07 16:53:07 +00:00
nros
b16a5c9dec Add the C11 function aligned_alloc to libc. 2015-11-07 16:21:42 +00:00
phx
e99c9b55dd Improved wscons support. Virtual screens are now working. 2015-11-07 14:29:10 +00:00
christos
addac9ec10 don't compile with SVC_LEGACY 2015-11-07 14:21:32 +00:00
joerg
df21656eae Remove duplicate entry. 2015-11-07 13:28:05 +00:00
martin
d8e5477643 Fix kmem_free() size mismatch 2015-11-07 11:47:09 +00:00
christos
68e3906c09 simplify more. 2015-11-07 03:06:32 +00:00
christos
841c77b99c Introduce a binary compatible __fd_set_256 that is what the original fdset
size was for libc. Now we can bump it.
2015-11-07 00:42:04 +00:00
joerg
f80193c0ce Install stdalign.h and stdnoreturn.h for clang as well. 2015-11-07 00:12:57 +00:00
christos
01b6ad43e7 Cleanup and simplify.
undef svc_fdset and svc_maxfd to get to the real data for the compat code.
2015-11-06 23:11:09 +00:00
joerg
76218c7768 Don't use macros as types or variable names. 2015-11-06 23:05:09 +00:00
christos
05ff38fa20 initialize npcb; founds by brainy 2015-11-06 21:33:07 +00:00
szptvlfn
ba86449ebf remove redundant \ 2015-11-06 21:32:22 +00:00
christos
099f03595b PR/50411: Rin Okuyama: fix two bugs:
- clear blocks in the 0 row, otherwise the pile up forever.
- black (white) blocks are not shown as "next shape":
2015-11-06 19:53:37 +00:00
christos
cdf9ad9883 Switch to the size-unlimited fd_set. Some code will need to change to be
able to use this if the code allocates its own fd_set's.
2015-11-06 19:42:57 +00:00
christos
fa13c0f43d - provide accessor functions for the fdset's used internally.
- add getreqset2 method that takes a setsize.
2015-11-06 19:35:40 +00:00
christos
2f904d5a7a - Provide multi-threaded fdset's for everyone not just rump if requested.
- Abstract fd_set access, and don't limit the fd_set size.
- Maintain binary compatibility by keeping the old global variables around.
2015-11-06 19:34:13 +00:00
christos
46615f7efe - Use -1 for the fake raw fd since we will be able to go beyond FD_SETSIZE.
- Poster boy for why it is bad to initialize in declarations :-)
2015-11-06 19:32:08 +00:00
christos
608ac2df87 Generalize the length macro, and also provide a macro that returns the size
in bytes needed for a given fd.
2015-11-06 15:41:25 +00:00
martin
28e1335091 Basically revert r1.246 of locore.s and r1.73 of vm_machdep.c:
Remove special case handling for userland lwps from cpu_lwp_fork,
	instead do it in lwp_trampoline when we first return to userland.

which was a stupid idea - since we did now set all fork child's %tstate
(and thus %pstate when back in userland) to the current kernel's userland
default. This meant we lost the address mask bit for 32bit processes and
all memory model details for 64bit ones.

Move it back to cpu_lwp_fork and fix the condition to only do it once when
forking init.
2015-11-06 15:30:59 +00:00
christos
b2d56358fc make this compile for tests. 2015-11-06 15:30:47 +00:00
martin
79ee181a4a Add a few assertions to verify non-privileged processor state for userland
and 32bit address mapping for 32bit processes.
2015-11-06 15:25:42 +00:00
christos
6e1ae27534 Add a test for the raw transports which are currently busted. 2015-11-06 15:23:23 +00:00
nonaka
1d319b6d93 Always use pci_intr_alloc(9)/pci_intr_release(9). 2015-11-06 14:22:17 +00:00
kiyohara
a1a73c5e5c Add mvsocts. 2015-11-06 14:16:11 +00:00
kiyohara
7be4e0d889 Add mvsocts to mvsoc_periph for Armada XP. 2015-11-06 12:54:52 +00:00
kiyohara
539f878cb2 Support Armada XP. 2015-11-06 12:50:30 +00:00
jnemeth
3980f190ce typo 2015-11-06 12:49:06 +00:00
nonaka
11ffb1c15b regen 2015-11-06 12:05:49 +00:00
nonaka
c80f6a3eb9 Add some ATI/AMD devices. 2015-11-06 12:05:18 +00:00
ozaki-r
e72fec577e Fix db_print_llinfo
rt_llinfo is now struct llentry.
2015-11-06 08:55:49 +00:00
skrll
aa81845426 Trailing whitespace 2015-11-06 08:44:35 +00:00
ozaki-r
60defe31a6 Fix inappropriate rt_flags check
It depended on either RTF_CLONED or RTF_CLONING must be set, however,
the assumption didn't meet for userland problems that create a route
via RTM_ADD.

This fixes an issue that running rarpd causes the following kernel panic
reported by nonaka@:
  panic: kernel diagnostic assertion "(la->la_flags & LLE_STATIC) == 0"
  failed: file "/usr/src/sys/netinet/if_arp.c", line 1339
2015-11-06 08:38:43 +00:00
ozaki-r
3eb9896334 Improve test stability
"deprecated" flag may not be reflected immediately. We need to add some
delay before checking the result.
2015-11-06 02:54:37 +00:00
pgoyette
462d797f59 In sysv_sem.c, defer establishment of exithook so we can initialize the
module code from module_init() rather than waiting until after calling
exec_init().  Use a RUN_ONCE routine at entry to each sys_sem* syscall
to establish the exithook, and no longer KASSERT that the hook has
been set before removing it.  (A manually loaded module can be unloaded
before any syscalls have been invoked.)

Remove the conditional calls to the various xxx_init() routines from
init_main.c - we now rely on module_init() to handle initialization.

Let each sub-component's xxx_init() routine handle its own sysctl
sub-tree initialization;  this removes another set of #ifdef ugliness.

Tested both built-in and loadable versions and verified that atf
test kernel/t_sysv passes.
2015-11-06 02:26:42 +00:00
jmcneill
01606544ce Build xf86-video-modesetting on evbarm 2015-11-06 01:17:08 +00:00
pgoyette
98a4e6195c As long as we still claim to build each subcomponent separately, make
sure we properly define the (sub)set of syscalls we're building.
2015-11-06 01:00:41 +00:00
pgoyette
513f488856 Update to keep up with reality. In NetBSD 7, the vnconfig command was
renamed.  So add this fact to the HISTORY section and remove BUGS.

XXX Pull-up to NetBSD-7 !
2015-11-05 22:35:24 +00:00
palle
449de9ce0b mpt: add missing debug strings to the Error_Map IOC_Event array 2015-11-05 21:08:18 +00:00
mrg
cfc4a92dd2 set the "width" and "height" parameters from the surface_width and
surface_height members.  idea from the intel code and jmcneill@.

this makes the fb on my RV370 use the full display size, not the
(not actually connected) 800x600 the svideo output supports.

X still starts up at 800x600 mode, but xrandr can fix that.
2015-11-05 20:52:46 +00:00
riastradh
18ad84c50a Paranoia about mmio register mapping size. 2015-11-05 20:32:39 +00:00
riastradh
dfa2d2a702 Return error from bus_space_map. 2015-11-05 20:31:26 +00:00
riastradh
2faf0f97dd Fix bogus output parameter for bus_space_map.
We stored the bus space handle in nv_subdev(device)->mmioh, which we
then overwrote with whatever was in the mmioh local variable -- maybe
garbage, maybe an old mapping, almost certainly wrong either way.

Instead store it in mmioh so that the subsequent assignment
nv_subdev(device)->mmioh = mmioh actually works as intended.
2015-11-05 20:26:10 +00:00
macallan
1e3e6fea31 generate iic* entries 2015-11-05 16:47:29 +00:00
macallan
97dca9d210 create tty* entries for wsdisplay1-3 2015-11-05 16:46:22 +00:00
wiz
f46449d46b Sort options in SYNOPSIS.
Order is: 0123.9AaBbCc...Zz;
options without arguments in a block first, then the ones with arguments.
2015-11-05 14:02:07 +00:00
martin
f5cad80b32 Ooops, pilot error - revert last 2015-11-05 10:43:42 +00:00
martin
2f1599bef8 Fix expected output to match -current NetBSD reality (port "255" is not
mapped to "reserved")
2015-11-05 10:35:58 +00:00
martin
d8d66c3c56 Most of the time return_from_trap already got called with tf->tf_tstate
loaded in register %g1 - make it so for two more callers and remove
the reload of that value.
2015-11-05 10:11:51 +00:00