Commit Graph

751 Commits

Author SHA1 Message Date
yamt
bc21da4cfb bus_dmamem_map: honour BUS_DMA_NOWAIT. noted by Manuel Bouyer.
bus_space_map: always do NOWAIT allocation as it used to be before yamt-km.

we have too many copies!
2005-11-24 13:08:32 +00:00
chs
8b17730eac put mcount.c in the normal object list, so that "make depend" works.
use a gcc attribute to prevent it from being instrumented.
2005-10-02 15:34:17 +00:00
he
6f5b98e680 Another file needing <compat/sys/signal.h> and <compat/sys/signalvar.h>
for native_sigset_to_sigset13().
2005-09-14 19:30:45 +00:00
he
e1e0525260 Another set of files needing <compat/sys/signal.h> and
<compat/sys/signalvar.h> for native_sigset13_to_sigset().
2005-09-14 19:27:48 +00:00
drochner
8311fb86aa namespace sanity: don't expose compatibility sigcontext stuff
unnecessarily
2005-09-07 19:42:51 +00:00
kleink
e2cef34883 signed -> __signed 2005-09-06 19:18:23 +00:00
he
f35ed2ac89 Include <sys/time.h> before <sys/signalvar.h> so that copyinout_t is
defined before it is used in the second of these.

Fixes a build problem for several of our m68k ports.  I've been
waiting for a better fix, but now my "proper fix timeout" triggered.
2005-08-13 05:38:45 +00:00
christos
3e061b04ef new file 2005-07-11 13:05:33 +00:00
christos
f1461c7e8a No point in declaring syscall_intern and syscall in a zillion places. 2005-07-10 00:45:52 +00:00
he
34cf717530 Delete now unused "bad" label. 2005-07-02 23:08:21 +00:00
christos
6d30dcee75 PR/29607: Christian Biere systrace doesn't handle interrupted syscalls properly
Instead of jumping to the default "bad" case, jump to the error handling
switch, so that we can deal with ERESTART/EJUSTRETURN properly.
2005-07-01 18:01:44 +00:00
matt
e1245a3c46 Rework the coredump code to have no explicit knownledge of how coredump
i/o is done.  Instead, pass an opaque cookie which is then passed to a
new routine, coredump_write, which does the actual i/o.  This allows the
method of doing i/o to change without affecting any future MD code.
Also, make netbsd32_core.c [re]use core_netbsd.c (in a similar manner that
core_elf64.c uses core_elf32.c) and eliminate that code duplication.
cpu_coredump{,32} is now called twice, first with a NULL iocookie to fill
the core structure and a second to actually write md parts of the coredump.
All i/o is nolonger random access and is suitable for shipping over a stream.
2005-06-10 05:10:12 +00:00
scw
e3896510e9 Fix const fallout when DEBUG is defined. 2005-06-03 08:55:33 +00:00
tsutsui
e29ae5bc6f Fix one more shadow warning in #ifdef DIAGNOSTIC. 2005-06-02 16:47:42 +00:00
tsutsui
a4c79ce346 Fix a shadow warning. 2005-06-02 14:56:58 +00:00
tsutsui
4b933e86cb Adapt to ddb constification. 2005-06-02 14:51:32 +00:00
tsutsui
096dae56ce Fix hexstr() for -Wwritable-strings. 2005-06-02 14:29:02 +00:00
tsutsui
e240af5cd6 Add consts and fix a shadow warning. 2005-06-02 14:24:26 +00:00
scw
8f4aee207b Declare the second arg of process_write_{fp,}regs() to be const.
This permits sh5 to continue to re-use those functions in cpu_setmcontext()
with the recent change to Makefile.kern.inc (revision 1.62).
2005-06-01 13:01:35 +00:00
he
57ef378309 Adapt to recent constification of db_interface.h and db_sym.h. 2005-05-30 21:15:28 +00:00
christos
362a4a0bd5 Yes, it was a cool trick >20 years ago to use "0123456789abcdef"[a] to
implement, xtoa(), but I think defining the samestring 50 times is a bit
too much. Defined HEXDIGITS and hexdigits in subr_prf.c and use it...
2005-05-17 04:14:57 +00:00
kleink
b2cb7fcd8a Push back the descriptions of NaN formats, and descriptions of the
distinction between signalling NaNs and quiet NaNs back into the
machine-dependent headers; treat the implementation of __nanf in the
same spirit.

IEEE 754 leaves the distinction between signalling NaNs and quiet NANs
to the implementation, and unlike our headers used to suggest they're
not identical in the interpretation of the fraction's MSb; in due
course, make those of hppa, mips, sh3, and sh5 reflect reality.
2005-04-15 22:39:10 +00:00
matt
1b5520b3d6 For GCC3 and beyond, use the __builtin_va_* types and functions to
deal with variable argument lists.
2005-04-14 20:06:15 +00:00
scw
54e140a9bb In m68k_make_fpu_idle_frame(), replace fmove.x with fmove.d as the former
is not supported natively by the 060's FPU.

Fixes a problem on MVME177 reported by Matt Thomas on port-mvme68k@
2005-04-14 12:35:42 +00:00
yamt
6b2d8b66a4 merge yamt-km branch.
- don't use managed mappings/backing objects for wired memory allocations.
  save some resources like pv_entry.  also fix (most of) PR/27030.
- simplify kernel memory management API.
- simplify pmap bootstrap of some ports.
- some related cleanups.
2005-04-01 11:59:21 +00:00
matt
a6db24a485 Add a dm_maxsegsz public member to bus_dmamap_t. This allows a user of the API
to select the maximum segment size for each bus_dmamap_load (up to the maxsegsz
supplied to bus_dmamap_create).  dm_maxsegsz is reset to the value supplied to
bus_dmamap_create when the dmamap is unloaded.
2005-03-09 19:04:43 +00:00
chs
589a29e548 fix an off-by-on in pmap_check_wiring(): we increment the PTP refcount
before calling this, so it's ok to see the max value here.
2005-02-14 02:15:43 +00:00
atatat
a076957818 Convert the PMAP_PREFER() macro from two arguments (offset and hint)
to four (adding size and direction).

In order for topdown uvm to be an option on ports using PMAP_PREFER,
they will need to "prefer" lower addresses if topdown is being used.
Additionally, at least one port also needs to know the size.
2005-01-17 04:37:20 +00:00
yamt
95c82bfee4 introduce vm_map_kernel, a subclass of vm_map, and
move some kernel-only members of vm_map to it.
2005-01-01 21:02:12 +00:00
chs
6bd8ed04bb add cases for '040 and '060 FPUs. from Radek Kujawa. 2005-01-01 17:11:39 +00:00
thorpej
7a60e77293 bus_dmamap_load_mbuf(): Skip zero-length mbufs.
kern/24811
2004-11-28 17:34:45 +00:00
christos
527610e2db moved from x86k/x68k 2004-11-16 01:21:45 +00:00
skrll
f7155e40f6 There's no need to pass a proc value when using UIO_SYSSPACE with
vn_rdwr(9) and uiomove(9).

OK'd by Jason Thorpe
2004-09-17 14:11:20 +00:00
rumble
b1a9752c01 Correct a few comment typos that have propagated through the
tree.
2004-09-16 03:57:10 +00:00
thorpej
6c08646cb8 Garbage-collect pagemove(); nothing use it anymore (YAY!!!) 2004-08-28 22:12:40 +00:00
thorpej
605050704a Use ANSI function decls and static. 2004-08-28 22:06:28 +00:00
thorpej
cfc755477e Minor style nit. 2004-08-28 21:56:00 +00:00
thorpej
606336a153 De-__P 2004-08-28 21:31:07 +00:00
thorpej
63a3547c69 - De-__P.
- Also define DB_ELF_SYMBOLS and DB_ELFSIZE.
2004-08-28 21:24:20 +00:00
skrll
adf5c92842 Include <sys/cdefs.h> once. 2004-08-10 07:35:53 +00:00
is
fae5cbad97 Revert last change. It breaks the build due to interactions with
frame.h.
2004-07-29 12:54:46 +00:00
is
3f5c400809 For a while, we exported symbols in the user namespace (which should only
be interesting for the kernel), thus breaking (e.g.) vim. (PR 26048)
2004-07-28 11:39:37 +00:00
wiz
1249084227 "panicking" needs a k. 2004-05-16 15:44:10 +00:00
drochner
19f047f8d0 SIGTRAMP_VALID() should not pollute the user namespace 2004-05-10 21:51:49 +00:00
kleink
7b3b647647 Factor out W{CHAR,INT}_{MAX,MIN} into their own header file. 2004-05-08 21:51:47 +00:00
drochner
c83eb997b8 nothing cares about __HAVE_SIGINFO anymore, so nuke it 2004-03-26 21:39:57 +00:00
wiz
f0d2889eb5 Move
(c) TNF
line from 4-clause UCB to 3-clause UCB license; in other words,
remove UCB's ad clause from the license TNF grants.
There is no point in TNF demanding that UCB's ad clause be followed
when even UCB doesn't demand it any longer.

Ok'd by board@ and agc@.
2004-03-24 15:38:41 +00:00
nathanw
797c90374e Centralize identical copies of proc_trampoline code.
(lots more opportunites here for the bored hacker, such as rei and trap0...)
2004-03-04 19:53:44 +00:00
wiz
dc4cc98b15 becuase -> because. From Peter Postma. 2004-02-24 15:05:53 +00:00
wiz
d20841bb64 Uppercase CPU, plural is CPUs. 2004-02-13 11:36:08 +00:00