matt
f84bd2a971
white space cleanup.
2011-07-08 18:49:48 +00:00
dyoung
a8f6593d47
Use <sys/bus.h> not <machine/bus.h>.
2011-07-08 18:49:27 +00:00
matt
eee38be7e4
Major update of algor.
...
Now uses generic mips bus_space.h bus_dma.h isa_machdep.h pci_machdep.h
Now uses evbmips versions of cpu.c isadma_bounce.c mcclock_isa.c
2011-07-08 18:48:55 +00:00
mrg
f8f0c6c2d6
avoid uninitialised variable warnings.
2011-07-08 09:42:16 +00:00
mrg
f2acb6463d
don't use -msoft-float for GCC 4.5. -msoft-float passes down -mno-float
...
to the assembler, which barfs, and i can't see any way to disable it just
for sun3/fpu.c.
2011-07-08 09:34:51 +00:00
mrg
bc7506b1cc
avoid some uninitialised variable warnings.
2011-07-08 09:32:45 +00:00
matt
729b0b87d7
Add extu_fraclm and extu_frachm
2011-07-08 05:55:23 +00:00
mrg
58e3c9ef87
initialise chuck_rptr as well, instead of chuck_read twice.
2011-07-08 03:29:15 +00:00
dyoung
367d0d5ad9
Update bus_space_tag_create(9) declaration.
2011-07-08 03:24:42 +00:00
dyoung
5b0b4c98b3
Bring bus_space_tag_create(9) up-to-date with doco.
...
Fix overrides of bus_space_unmap(9) et cetera.
2011-07-08 03:23:14 +00:00
matt
81af42b2d5
Include <sys/cdefs.h> to get __GNUC_PREREQ__
2011-07-07 22:52:48 +00:00
matt
d099c37fe4
Use a builtin __FOO__ for FOO if >= GCC 3.3
...
If C99, use hex floating point.
2011-07-07 18:23:18 +00:00
reinoud
b2a0605256
English checked and corrected, courtisy of
...
Igor Sobrado <sobrado@orion.ciencias.uniovi.es> as noted in OpenBSD that has a
copy of this file.
2011-07-07 17:45:38 +00:00
matt
2be346e54d
If GCC 4.1 or newer (or clang), use __LDBL__*__ builtins otherwise if C99
...
use hex floating point.
2011-07-07 17:29:31 +00:00
manu
9f214ee2a6
Fix locking protocol to avoid a panic on extattrctl stop and on umount.
2011-07-07 14:56:45 +00:00
mrg
602d34897a
fix an off by one array bounds issue, and also fix a potentially non
...
nul-terminated string.
2011-07-07 08:48:34 +00:00
mrg
0514da4400
adb_kbd.c and adb_ms.c need -Wno-cast-qual due to sysctl const issue.
2011-07-07 08:47:22 +00:00
mrg
869a957f9f
apply some parens around an expression to get the desired behaviour,
...
as suggested by gcc 4.5
2011-07-07 06:02:06 +00:00
mrg
cbb4a4007a
avoid pointer aliasing issues
2011-07-07 06:01:51 +00:00
mrg
06406d0075
apply some -fno-strict-aliasing
2011-07-07 06:01:30 +00:00
mrg
831fb48644
remove inline from some non-inline function prototypes.
2011-07-07 06:01:12 +00:00
matt
81d18a2f73
Revamp / rework the Atheros MIPS SoC support. Add initial support for the
...
AR71xx (MIPS 24K core) SoC and the AR9344 (MIPS 74K core) SoC. Force use
of -mips32 for all Atheros kernels. Make code much more common.
2011-07-07 05:06:44 +00:00
mrg
8f21de0400
port to GCC 4.5.
2011-07-07 01:27:13 +00:00
mrg
1f68493387
avoid a multi-level cast issue
2011-07-07 01:26:55 +00:00
mrg
9b52d8be93
mark heathrow_read_events() and ohare_read_events() static.
2011-07-07 01:26:37 +00:00
mrg
b90ae05b33
add some (uintptr_t) between pointer and uint64_t casts
2011-07-07 01:26:16 +00:00
dyoung
db2ed62f16
Missed another one: #include <sys/bus.h> instead of <machine/bus.h>.
2011-07-06 20:47:05 +00:00
dyoung
f1d6b12f5e
Oops, missed one: #include <sys/bus.h> instead of <machine/bus.h>.
2011-07-06 20:44:47 +00:00
dyoung
f508569201
Bring the bus_space_is_equal() declaration out of the #ifdef
...
__HAVE_NEW_STYLE_BUS_H, since we need it either way.
2011-07-06 20:24:21 +00:00
dyoung
24e681f5cd
Implement bus_space_tag_create() and _destroy().
...
Factor bus_space_reserve(), bus_space_release(), et cetera out of
bus_space_alloc(), bus_space_map(), bus_space_free(), bus_space_unmap(),
et cetera.
For i386 and amd64, activate the use of <machine/bus_defs.h> and
<machine/bus_funcs.h> by #defining __HAVE_NEW_STYLE_BUS_H in
their respective types.h. While I'm here, remove unnecessary
__HAVE_DEVICE_REGISTER #defines.
2011-07-06 18:46:04 +00:00
dyoung
22c58b4530
Add default implementations for new bus_space(9) routines.
2011-07-06 18:24:26 +00:00
dyoung
edd1b42507
Install /usr/include/sys/bus.h for oddball ports whose userland somehow
...
#includes it.
2011-07-06 18:18:07 +00:00
dyoung
6b137c9d39
If __HAVE_NEW_STYLE_BUS_H is #defined, make <sys/bus.h> declare the
...
new MI API for reserving bus space without mapping it, #include
<machine/bus_defs.h>, <machine/bus_funcs.h>, and <sys/bus_proto.h>.
Refine the bus_space_tag_create() API.
2011-07-06 18:11:45 +00:00
matt
223a8c0b87
Make this play nicely with GCC 4.5. While there, make everything static,
...
get rid of global inlines, and move the init function to the end.
2011-07-06 10:01:02 +00:00
matt
dd7c33eb68
Add
...
uint32_t kfetch_32(volatile uint32_t *, uint32_t);
which fetches a 32-bit value from a provided addess or returns
an user supplied value on error.
2011-07-06 09:27:35 +00:00
mrg
2f4b41bf98
add weak aliases for __sdivsi3_i4i and __udivsi3_i4i.
2011-07-06 01:29:54 +00:00
mrg
008b45d2d8
avoid a "multi-level non-const cast" warning from GCC 4.5.
2011-07-06 01:19:45 +00:00
joerg
1329841780
Ensure that _lwp_setprivate has a correct prototype.
2011-07-05 19:30:50 +00:00
njoly
4127bcdacf
Regen for pipe2.
2011-07-05 14:23:26 +00:00
njoly
f85e6e86e8
Add pipe2 syscall now needed for popen(3).
2011-07-05 14:21:46 +00:00
yamt
03e0d01e97
unrelax an assertion
2011-07-05 14:07:12 +00:00
yamt
b456aa6a56
- fix a use-after-free bug in uvm_km_free.
...
(after uvm_km_pgremove frees pages, the following pmap_remove touches them.)
- acquire the object lock for operations on pmap_kernel as it can actually be
raced with P->V operations. eg. pagedaemon.
2011-07-05 14:03:06 +00:00
yamt
7eec89b991
reduce the number of atomic ops in common cases. it's exceptional for
...
anons to remain longer than amap.
2011-07-05 13:47:24 +00:00
matt
24fd276136
Add a sync in badaddr to force an exception so trap can clean it up.
2011-07-05 08:07:53 +00:00
dholland
516f7658cf
The manipulation macros for struct dirent are also used by the ufs/ffs
...
code to manipulate the similar but not identical struct direct. For
this reason they must remain type-polymorphic. Rev 1.25 broke that
property, so put it back by using typeof. Fixes PR 45119.
2011-07-05 07:32:33 +00:00
mrg
166e4479ba
avoid an uninitialised variable warning GCC 4.5 -O3 picks up.
2011-07-05 07:08:17 +00:00
matt
fee0e13d37
If GCC 4.0 or later, use __builtin_offsetof for offsetof.
...
This make GCC 4.5 with offsetof in mbuf.h and kern_cpu.c
2011-07-05 01:56:45 +00:00
sjg
98cc584599
Set FILEMON_VERSION to 3
2011-07-04 23:37:30 +00:00
joerg
b187f964f6
Use integrated assembler with clang for Via PadLock.
2011-07-04 16:20:45 +00:00
joerg
258624699d
Fix memset usage.
2011-07-04 16:06:17 +00:00