msaitoh
c67bb3dce4
Add support for some fxp devices from FreeBSD and OpenBSD.
...
{Free,Open}BSD say that we have to do some work to make fxp
stable.
2011-09-02 03:16:18 +00:00
msaitoh
0488e3f6ff
regen.
2011-09-02 03:10:37 +00:00
msaitoh
5662272cdd
Add some fxp devices.
2011-09-02 03:09:48 +00:00
fair
432469e3d6
Clarify the history and add proper attribution.
2011-09-01 23:13:16 +00:00
jym
b0471da334
Make strnlen(3) accessible in kernel. ok christos@.
2011-09-01 22:35:17 +00:00
christos
158bd4bab3
fix the build for rumpserver.
2011-09-01 21:09:07 +00:00
matt
f68e927f9b
Allocate a color compatible VA for the page we are entering.
2011-09-01 18:33:11 +00:00
matt
39830f9f2f
Allocate a color compatible page to the VA we are going to use.
2011-09-01 18:29:29 +00:00
matt
da98893a6f
Print syscall name on syscall exit (when using SYSCALL_DEBUG).
...
XXX this should use kernhist.
2011-09-01 18:25:44 +00:00
matt
dfe7b794ce
Always make sure that kte_entry is aligned appropriately so register_t can
...
be stored there. (not really a problem right now since time_t is now 64bit
bit and it just works but it's better to be explicit).
2011-09-01 18:24:19 +00:00
reinoud
0e730cfa32
Use a alternative dedicated signal stack for the sigsegv errors; the userland
...
stack like that of ld.elf_so can be too short to allow for such deep
stacktraces.
2011-09-01 18:20:20 +00:00
reinoud
922d253ed2
Implement thunk_sigaltstack() so an alternative signal stack can be used
2011-09-01 18:19:00 +00:00
matt
2c6de4b409
Use the new UVM_KMF_COLORMATCH flag to get a congruent mappings of the user
...
buffer so we can use unmanaged mappings (pmap_kenter_pa/pmap_kremove).
2011-09-01 16:55:08 +00:00
plunky
fa3d1b9a20
pcc cpp(1) does not understand the '-undef' and '-traditional' long form
...
arguments, use $(CC) -E instead of $(CPP) for these
2011-09-01 16:41:48 +00:00
reinoud
217e28ce9c
Oops used the wrong page flag for referenced and modified check
2011-09-01 16:23:55 +00:00
yamt
acf0c89366
redo vfs_lookup.c rev.1.126.
...
when crossing a mount point, don't keep the parent vnode locked.
ie. don't lock a vnode while holding another vnode which belongs to a
different filesystem. otherwise we propagate slowness (or deadness) of a
filesystem to another via vnode lock chain.
2011-09-01 15:31:27 +00:00
reinoud
ea45349705
Hack register setup for __i386__. This now seems to start up the code a lot
...
further.
2011-09-01 15:15:06 +00:00
reinoud
d69647f4d4
Prevent thunk_mmap() to mmap a page outside the box; just as a precaution.
2011-09-01 15:13:33 +00:00
christos
05ec717ee7
Add bus_dma overrides. From dyoung
2011-09-01 15:10:31 +00:00
reinoud
fc8de2b005
Enhance debugging capabilities of NetBSD/usermode by allowing `trap.c' to
...
write a system image of the memory it traps. Its extremely dirty but at least
you can look at the data and code thats giving the trouble. Its memory or
state is NOT saved in the coredump of the NetBSD/usermode program.
2011-09-01 15:03:41 +00:00
jakllsch
c41a9ea5e1
It seems mvsata_bio_ready() is actually needed, and it seems
...
to work better if we always poll for completion for the
duration of this function.
2011-09-01 14:55:58 +00:00
jakllsch
883c2687f6
We occasionally will try to set up the multicast filter in a context that
...
kmem(9) is unusable (such as transmit timeout). Thus, put the filter table
on the stack instead, all 528 bytes of it.
2011-09-01 14:46:23 +00:00
jakllsch
74623c9c5f
Initialize MVGBE_MTU to 0, as suggested by the Orion databook.
...
If the platform firmware did not initialize this to 0 for us,
we were unable to transmit frames.
2011-09-01 14:39:03 +00:00
macallan
56ad028526
a driver for the gdium's ST7 microcontroller
...
so far it only reports AC and lid switch events to sysmon
2011-09-01 14:07:36 +00:00
macallan
b9372d64bc
some i2c devices we're going to deal with need a little delay after each
...
write. Also make sure the gpios we're using are outputs.
2011-09-01 14:04:55 +00:00
joerg
12da85b5f0
static + __dead
2011-09-01 13:37:33 +00:00
joerg
223a11b436
static + __dead
2011-09-01 13:25:02 +00:00
plunky
4a5403fbdd
update set list for pcc-20110901 (libpcc is not required)
2011-09-01 13:08:17 +00:00
plunky
041e420ed1
update build machinery for pcc-20110901
2011-09-01 13:00:14 +00:00
plunky
ee4a1aaa9c
fix conflicts created by new import
2011-09-01 12:55:29 +00:00
plunky
1641c82fac
Update pcc snapshot to 1.1.0.DEVEL 20110901
...
Continual development has happened since the previous 0.9.9
snapshot of 20100603 and the full commit log is too long to
include here, but can be seen at
http://pcc.ludd.ltu.se/fisheye/changelog/~date=2011-09-01T06%3A00%3A00/pcc
Many bugs were reported and fixed, along with reworks of the compiler
internals in several areas, notable milestones were
* more builtins, libpcc is no longer required on NetBSD
* improved gcc compatibility (eg gnu-inline semantics)
* NetBSD/VAX kernel compiles and boots
* using cpp as backend for lint now fully working
* PIC support seems complete
* NetBSD/i386 kernel can be compiled and booted
* better float/double/complex support
* amd64 support on OSX
* reworked Makefiles
* pcc 1.0.0 was release on April 1 2011
* several xasm improvements
* FreeBSD/amd64 system can be compiled with very few changes
* DragonFly fixes from downstream
* rewritten #pragma support
* TLS support added
* many regression tests
* rewrite of internal attribute handling
2011-09-01 12:46:15 +00:00
njoly
e6b8e35e92
Make linux_sys_getdents64 fails with ENOTDIR instead of EINVAL, when fd
...
does not refer to a directory.
2011-09-01 12:44:10 +00:00
christos
e55bb25ea6
undo previous
2011-09-01 12:29:41 +00:00
joerg
03242f8218
Simplify, --analyze gives the same settings as default
2011-09-01 12:25:10 +00:00
joerg
f0eca48ed1
Update LLVM/Clang snapshot to r138875. Primarily to get the rewritten
...
temp file handling fixing boost-jam build.
2011-09-01 12:24:35 +00:00
christos
aa94a89d3e
fix typo.
2011-09-01 12:15:07 +00:00
christos
d98d733735
explain NULL casts
2011-09-01 09:33:01 +00:00
christos
c20851872a
Check for v_type before v_rdev because it is cheaper and safer.
2011-09-01 09:04:08 +00:00
christos
a84933c836
add a couple of asserts
2011-09-01 09:03:43 +00:00
martin
7716a7e464
In pmap_unwire() fix an obvious editor mishap - enable kernel preemption
...
before returning, not the other way around.
Might fix PR kern/45137.
2011-09-01 08:47:56 +00:00
martin
9a1b6b7c8b
Minor nit: avoid kpreempt_disable() if cold (as we return early and do
...
not reenable it; actually makes no difference but looks more balanced
this way)
2011-09-01 08:43:24 +00:00
plunky
acae68523e
reinstate NULL cast by request, where the NULL was being passed as a vararg
2011-09-01 07:18:50 +00:00
matt
8f6531abed
Use UVM_KMF_COLORMATCH and switch to pmap_kenter_pa for vmapbuf/vunmapbuf.
2011-09-01 06:41:38 +00:00
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