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
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