Commit Graph

205039 Commits

Author SHA1 Message Date
matt 207bff18bc Forward some UVM from matt-nb5-mips64. Add UVM_KMF_COLORMATCH flag.
When uvm_map gets passed UVM_FLAG_COLORMATCH, the align argument contains
the color of the starting address to be allocated (0..colormask).
When uvm_km_alloc is passed UVM_KMF_COLORMATCH (which can only be used with
UVM_KMF_VAONLY), the align argument contain the color of the starting address
to be allocated.
Change uvm_pagermapin to use this.  When mapping user pages in the kernel,
if colormatch is used with the color of the starting user page then the kernel
mapping will be congruent with the existing user mappings.
2011-09-01 06:40:28 +00:00
macallan 7f7e1ce392 only attach the i2c bus if the gpio pins we're using are actually
configured as gpio
while there remove some accidentially left in debug code
2011-09-01 00:06:42 +00:00
jmcneill 2db443b160 For PT_SYSCALLEMU, no need to stop again on syscall exit. 2011-08-31 23:42:46 +00:00
jmcneill 9a881a9b98 Document PT_SYSCALLEMU 2011-08-31 23:04:33 +00:00
jmcneill 1904b2b8db PR# kern/45312: ptrace: PT_SETREGS can't alter system calls
Add a new PT_SYSCALLEMU request that cancels the current syscall, for
use with PT_SYSCALL.
2011-08-31 22:58:39 +00:00
rmind 0479426ceb sigispending: simplify a little. 2011-08-31 22:43:19 +00:00
matt 5724a9e8cf Refactor to fix some signedness problems. 2011-08-31 22:36:36 +00:00
christos 9bf741a041 put back the byte swapping code, and remove the double byte swapping. 2011-08-31 22:27:26 +00:00
rmind 8c8246dce6 genfs_do_directio: acquire the lock of page owner for now and fix PR/45177.
Will be revisited to avoid locking dance and be more efficient, e.g. we can
use unmanaged-mapping by allocating with colouring in mind.
2011-08-31 22:16:54 +00:00
riz e14f406cd9 Remove erroneous seq=ntohs(seq) introduced in rev. 1.74, which caused
icmp_seq numbers to increment by 256 instead of 1 on LE platforms.
2011-08-31 22:05:57 +00:00
christos 4aa752a401 fix shadow warnings.
XXX: might be a good idea to kill global 'cpu' and 'version' variables.
2011-08-31 21:57:16 +00:00
dyoung 4f4f4d2e20 Add override members to x86_bus_dma_tag. 2011-08-31 20:21:06 +00:00
plunky f2d8d4c1c1 for multi-cpu machines, cpu_hatch() straddles the init of
__stack_chk_guard, so ensure stack protection is disabled
on x86 architectures (I don't know about other archs)
2011-08-31 20:16:43 +00:00
plunky fdcee79615 extend __clang__ hack for __PCC__ also
(CMSG_SPACE() is not a constant)
2011-08-31 20:13:31 +00:00
dyoung 24aef817b5 Add stub implementations of bus_dma_tag_create()/bus_dma_tag_destroy(). 2011-08-31 20:09:57 +00:00
dyoung a342166c46 Add some definitions for bus_dma(9) overrides. 2011-08-31 20:04:51 +00:00
christos 01dc55f76f fix reversed test. 2011-08-31 18:52:37 +00:00
plunky 7f3d4048d7 NULL does not need a cast 2011-08-31 18:31:02 +00:00
christos 99970cedda on xen we don't initialize memory segment maps, so no sparse dumps for now. 2011-08-31 17:03:17 +00:00
macallan 2e5a77d315 turn kernel output green 2011-08-31 16:58:10 +00:00
macallan 83b2750f5e add voyager, voyagerfb and drivers for Gdium's rtc and temperature sensor 2011-08-31 16:55:41 +00:00
njoly f589e415e2 Regen for dup3. 2011-08-31 16:51:05 +00:00
njoly f1367b80df Add dup3 syscall support. 2011-08-31 16:50:32 +00:00
macallan 92c3702900 the framebuffer part lives on in voyager/voyagerfb.c 2011-08-31 16:48:29 +00:00
macallan d0e648c14a split up voyagerfb into the framebuffer portion and a pseudo bus that we can
attach all the other sub-devices to
while there attach an i2c bus
2011-08-31 16:47:31 +00:00
macallan e871eec89a add a couple more register definitions 2011-08-31 16:45:07 +00:00
christos 218314d564 don't truncate time_t 2011-08-31 16:32:48 +00:00
plunky 9f61b80465 NULL does not need a cast 2011-08-31 16:24:54 +00:00
christos eba2a3cf3e PR/40594: Antti Kantee: Don't call issignal() here to determine what errno
to set for the interrupted syscall, because issignal() will consume the signal
and it will not be delivered to the process afterwards. Instead call
sigispending() (which now returns the first pending signal) and does not
consume the signal.
2011-08-31 16:09:55 +00:00
christos 0330b42b89 Make sigispending() return the signal that is pending, or 0. Fix the comment
that said that it returns true or false (it returned EINTR or 0 before).
Perhaps we should rename the function now?
2011-08-31 16:05:44 +00:00
christos 8cdc46a4a4 make lwp_unstop look like proc_unstop. If p->p_xstat is set, then make it
runnable so that it can receive the signal.
2011-08-31 16:04:39 +00:00
plunky a9b219be41 NULL does not need a cast 2011-08-31 15:48:32 +00:00
mbalmer 468a063f63 Add CWARNFLAGS+= -Wno-unused for clang. 2011-08-31 14:42:18 +00:00
joerg 06cf5ec8d8 Use __dead. Be a bit more consistent about static.__dead. Be a bit more
consistent about static.
2011-08-31 13:38:19 +00:00
joerg 31870c16c9 static + __dead 2011-08-31 13:35:46 +00:00
joerg bec77c5f43 Use __dead 2011-08-31 13:32:36 +00:00
joerg 12e6140314 __dead + ANSIfy 2011-08-31 13:31:29 +00:00
joerg 011ce1522e Use __dead and __printflike 2011-08-31 13:30:44 +00:00
mbalmer 2e4cf7046d Link the gpioow(4) and onewire(4) modules to the build and add them to the
lists.
2011-08-31 13:25:49 +00:00
nakayama 65e58969b4 Fix build on mips (NOAOUT case). 2011-08-31 13:09:10 +00:00
jmcneill ca8d783171 If the host doesn't define LABELUSESMBR, set it to 1 2011-08-31 12:56:13 +00:00
mbalmer 59f6ae0da4 gpioow(4) and onewire(4) can be build as modules. Not linked to the build. 2011-08-31 12:46:36 +00:00
reinoud 769d3a5680 Completely redo R/M emulation and fault handling taking UVM as authorative
answer and not relying on UVM's pmap directions since UVM has its own schemes
for COW etc.
2011-08-31 12:42:41 +00:00
mbalmer aeaf43d1cc Switch von u_int_XY to uintXY 2011-08-31 12:25:05 +00:00
mbalmer 5d1f2a00ee Add glue code to build as module. 2011-08-31 12:23:32 +00:00
mbalmer d020095c80 Remove what I committed accidentally... 2011-08-31 12:20:35 +00:00
mbalmer c16a4100bc Add glue code to build as module. 2011-08-31 12:17:51 +00:00
mbalmer 582e442d26 gpio(4) keeps track of child devices attached using the GPIOATTACH ioctl(),
so remove those references and free the memory in gpio_childdetached().
Protect access to the list of child devices with a kcondvar.
2011-08-31 12:07:26 +00:00
mbalmer bd0e8947c5 Add pwdog. 2011-08-31 10:01:18 +00:00
gson 3d0694be75 Yet another format string fix 2011-08-31 08:15:08 +00:00