Commit Graph

3860 Commits

Author SHA1 Message Date
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
tsutsui
4e54a2cc7c - Rename options NEW_BUFQ_STRATEGY -> options BUFQ_READPRIO.
(still commented out)
- Add (also commented out) options BUFQ_PRIOCSCAN.

Suggested by perry and soda on tech-kern.
Please refer options(4) for details for these options.
2005-06-09 14:43:29 +00:00
jdc
b8c3b4e026 Add volatile to make rtc_{g|s}ettime match todr_chip_handle_t. 2005-06-05 21:31:30 +00:00
he
aafdb08c5a Fix the various todr_gettime() and todr_settime() fallouts from
-Wcast-qual differently, by instead changing the signatore of those
"functions" to take a "volatile struct timeval*" instead of a
"struct timeval*".  Many places, these functions are called with
&time, and time is declared as volatile in <sys/kernel.h>.  This
way we can get rid of all the ugly casts which now also triggered
warnings, and caused more code to be added to work around the
problem.

Reviewed by thorpej.
2005-06-04 20:14:24 +00:00
tsutsui
d8cd8ed200 fkbyte() is in locore.s and accoring to its description it's used
only for work around unexplained transient bus errors when reading
the VME interrupt vector in vmeintr4m(), so change the prototype
declaration of fkbyte() in vmeintr4m() to appease gcc -Wcast-qual.
2005-06-04 04:59:18 +00:00
tsutsui
5304f91e7a Add const. 2005-06-04 04:40:57 +00:00
tsutsui
d922af0c4b Remove an unneeded cast to appease gcc -Wcast-qual. 2005-06-04 04:39:34 +00:00
tsutsui
b22c03af41 Fix a shadowing variable. 2005-06-04 04:35:27 +00:00
tsutsui
678f8e2213 Fix for gcc -Wshadow. 2005-06-04 04:34:49 +00:00
tsutsui
b46aab6178 - Add const.
- Remove parameter names from prototype declarations.
2005-06-04 04:34:12 +00:00
tsutsui
7b7c4cbf2d Fix for gcc -Wcast-qual. 2005-06-04 04:32:11 +00:00
martin
32c7c3a692 Sprinkle some const 2005-06-03 22:17:18 +00:00
martin
14fb304246 Rename ncpu to ncpus (as other ports call it), to avoid shadow warnings.
Sprinkle some const.
2005-06-03 22:15:49 +00:00
martin
a3c4cc0039 Rename ncpu to ncpus (as other ports call it), to avoid shadow warnings.
Sprinkle some const.
2005-06-03 22:15:48 +00:00
tsutsui
296114a214 Add const. 2005-06-03 22:06:24 +00:00
blymn
a872e97dcf Remove verified exec major, now a MI one. 2005-06-03 13:15:04 +00:00
martin
c111fbbb32 constify 2005-06-03 07:11:20 +00:00
martin
cb09c74620 constify 2005-06-03 03:58:36 +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
martin
3829274a1e Adapt to constification 2005-06-01 03:51:58 +00:00
christos
f6b4c20f18 s/GENASSYM/GENASSYM_CONF/ so we can use "GENASSYM" as the program name. 2005-05-31 04:03:08 +00:00
christos
f69f7eea28 add missing const 2005-05-31 00:57:07 +00:00
christos
6334595660 - sprinkle const
- change to ansi prototypes
2005-05-31 00:55:45 +00:00
christos
69809b648c - sprinkle const
- convert to ansi prototypes.
2005-05-31 00:54:57 +00:00
christos
be19dad5b6 - sprinkle const
- remove parameter names from function declarations
2005-05-31 00:54:05 +00:00
thorpej
db352e3490 Use TOOL_GENASSYM. Part of PR toolchain/30350 2005-05-30 23:30:57 +00:00
chs
b519d44134 adapt to const changes. 2005-05-30 16:04:53 +00:00
chs
94622623d8 in pmap_enter(), preset the mod/ref bits based on the flags argument.
fixes 25640.
2005-05-29 15:56:59 +00:00
kleink
4a6a03b162 Include <sys/cdefs.h> for __signed; related to lib/30072. 2005-05-25 20:58:00 +00:00
macallan
4fa7e1c545 uncommented the wd entry since there are a few ways to get IDE hardware into
a SPARC machine.
2005-05-22 16:31:07 +00:00
martin
3132f37cb4 Ooops, missed this file when changing the bootdevice signature.
Pointed out by Juergen Hannken-Illjes.
2005-04-28 12:47:45 +00:00
martin
0ad90d21c9 Do not rely on strings to which pointers are returned by promlib functions
to persist accross further promlib calls.
This fixes (at least) bootjs.net.
2005-04-27 07:59:47 +00:00
lukem
3fd1802e62 Move the MI printing of `copyright' to the MD cpu_startup() code
where the printing of `version' is already performed.
This has the benefit of allowing the copyright to be available
via dmesg(8) on platforms which need the `msgbuf' to be setup
in cpu_startup() before printed output is remembered.
2005-04-25 15:02:02 +00:00
matt
f854ad4125 For GCC3 and later, use the __builtin_va* constructs. 2005-04-20 05:15:15 +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
perseant
8d71ddbc4d Ensure that "align" is a power of two before passing it as an argument
to uvm_map().  Approved by pk@.
2005-04-11 05:56:11 +00:00
yamt
66013b128b alloc_cpuinfo_global_va: don't bother to specify alignment to uvm_map.
we'll do a partial unmap dance later anyway.  PR/29924.
2005-04-09 07:16:38 +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
dsl
94015fc9d6 Fix convertion of seconds to nanoseconds.
Add the usec to the secs before subtracting the usec offset - otherwise
I suspect the value can do horribly wrong!
Change all T_SVR4_GETHRESTIME to return sec + nanoseconds (I've not sure
this is correct, but I doubt the 32bit emulation in a 64bit kernel should
act differently to a 32bit kernel!)
Untested - I don't even have a sparc compile setup at the moment.
2005-03-12 16:29:59 +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
simonb
ff8f0b23c9 Add COMPAT_20 (and COMPAT_16 in some cases) to kernel config files
that didn't have those options but had other earlier compat options.
2005-02-25 13:46:48 +00:00
dsl
4822cbaae2 Invert FFS_SNAPSHOT to FFS_NO_SNAPSHOT 2005-02-18 21:05:50 +00:00
christos
0ed5e83fbf Don't always increment i, because when we reach the end of the array we'll
die.
2005-02-15 16:10:02 +00:00
dsl
05e2f6ebdb Add 'option FFS_SNAPSHOT' to most of the config files.
Commented out for kernels that appear to hace space constraints.
2005-02-11 08:25:53 +00:00
pk
d1a1682842 turbosparc_cache_enable: record the external cache size for informational
puposes.
2005-02-06 20:22:15 +00:00
jmc
2f6ced07f5 Do the same thing sparc64 does and redefine sbus_promaddr_to_handle to a static
inline'd function. This way prototypes for it still work in the master
dev/sbusvar.h header. Found when the recent de-_P'ing occured
2005-02-04 22:20:55 +00:00
chs
39b340a6f4 add the early-clobber modifier on the destination reg of ldstub.
in some implementations (eg. sun4c), the hardware modifies the destination
reg before checking for write permission on the memory location.  without
this change, gcc was using the same register for the address and the
destination, so if the store part of the instruction faulted, the address
was already gone when the instruction was retried after resolving the fault.
part of PR 25633, PR 25896.
2005-02-03 16:17:21 +00:00
chs
3cee1cf44e sun4c hardware reports faults by the atomic load/store instructions as
read faults even if the problem was that the memory was read-only.
detect this case and relabel the fault as both read and write.
details cribbed from linux and openbsd.
part of PR 25633, PR 25896.
2005-02-03 16:15:06 +00:00
pk
b7ee084cd1 sun4/sun4c sw interrupt entry: check interrupt register to determine to
see whether there is a pending software interrupt at the given level.
If not, it must be a device interrupt sharing that level.
2005-02-01 22:33:02 +00:00
hannken
d5fbb6936f Add file system snapshots to kernel configs.
- Ffs internal snapshots get compiled in unconditionally.

- File system snapshot device fss(4) added to all kernel configs that
  have a disk.  Device is commented out on all non-GENERIC kernels.

Reviewed by: Jason Thorpe <thorpej@netbsd.org>
2005-01-31 16:54:32 +00:00