Commit Graph

604 Commits

Author SHA1 Message Date
uwe 04b13834d6 Drop obsolete bus_space_* compat defs. 2005-09-15 18:34:03 +00:00
kleink aece7a90fd Change the driver open function's conditional for overriding exclusive tty
use from checking the proc's uid to suser(9), and account for the use of
privileges.  Noted by David Holland in PR kern/31126.
2005-09-06 21:40:37 +00:00
drochner 44bf0a7ee2 s/locdesc_t/int/g 2005-08-26 13:19:34 +00:00
nonaka 02d0ebb277 Added SH7751{,R} integrated PCI controller support. 2005-08-16 11:32:26 +00:00
uwe 51d0cd96db Implement syscall_intern for sh3. 2005-07-10 22:27:20 +00:00
uwe b044b5b620 Cosmetic: drop leading underscores from the volatile keyword. 2005-07-10 16:24:29 +00:00
uwe 496eb1f350 Cosmetic: use uintN_t, drop leading underscores from the volatile
keyword, use extern in function declarations.
2005-07-10 16:21:01 +00:00
nonaka ba180bf75f Added EMODE cache operation. 2005-07-07 16:56:50 +00:00
uwe 70d5ff6a8a Make this file suitable for use in asm sources. 2005-07-03 22:18:32 +00:00
uwe a761e60e47 Add SH_INTEVT_WDT_ITI in intc_intr_priority. 2005-07-03 17:59:10 +00:00
nonaka 654f6d544d fix timer prescaler definition. 2005-07-03 12:38:38 +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
drochner 996c273eda adaptions to config_search() change, and minor autoconf fixes, mostly from Havard Eidnes 2005-06-30 17:03:51 +00:00
nonaka f3987f5dbb remove EMODE support code.
- EMODE support doesn't work fine yet.
- This code is broken for dreamcast.
  dramcast call sh4_icache_sync_all() before sh4_cache_config().
  (at locore.S)
2005-06-30 15:14:46 +00:00
christos d3f92bb5dc additions from nonaka's landisk port. 2005-06-29 16:56:58 +00:00
christos 63fcf30b44 more additions from nonaka's landisk port. 2005-06-29 16:51:20 +00:00
christos 104d75eb91 more info for sh4 from nonaka's landisk port. 2005-06-29 16:31:51 +00:00
christos 5caa083144 more register definitions, from nonaka's landisk port. 2005-06-29 16:25:58 +00:00
christos 1c0b7f1f92 Need 2ms delay (from nonaka's landisk port). 2005-06-29 16:23:45 +00:00
dyoung a37289db57 Make disklabel(8) and fdisk(8) into "host tools " last step: build
and install ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-disklabel,
${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk by "reaching over" to
the sources in ${NETBSDSRCDIR}/sbin/{disklabel fdisk}/.

To avoid clashes with a build-host's header files, especially on
*BSD, the host-tools versions of fdisk and disklabel search for
#includes such as disklabel.h, disklabel_acorn.h, disklabel_gpt.h,
and bootinfo.h in a new #includes namespace, nbinclude/.  That is,
they #include <nbinclude/sys/disklabel.h>, <nbinclude/machine/disklabel.h>,
<nbinclude/sparc64/disklabel.h>, instead of <sys/disklabel.h> and
such.  I have also updated the system headers to #include from
nbinclude/-space when HAVE_NBTOOL_CONFIG_H is #defined.
2005-06-12 19:46:15 +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
uwe 9bb93565ec Catch up with constification. 2005-06-04 22:38:24 +00:00
tsutsui 65ae0ba36c Adapt to ddb constification. 2005-06-03 15:01:44 +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
scw a0d939e06d Fix const fallout. 2005-06-01 11:59:13 +00:00
uwe c93f856fa9 Fix shadowing. 2005-05-31 23:12:18 +00:00
uwe 49d5bf28d9 Rename s/newlwp/nlwp/ parameter to cpu_switch_prepare() to avoid
shadowing a function of the same name.  Rename oldlwp to match.
2005-05-31 22:06:51 +00:00
uwe 639d538d14 Constify as -Wcast-qual seyeth. 2005-05-31 22:01:24 +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
chs 6cefe93bda adapt to const changes. 2005-05-31 00:40:17 +00:00
kleink 4a6a03b162 Include <sys/cdefs.h> for __signed; related to lib/30072. 2005-05-25 20:58:00 +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
uwe 5c1237f42d Teach db_stack_trace_print() to step through trap frames so that
backtraces on kernel exceptions are actually useful.  Stop tracing at
traps from user mode for now.
2005-04-20 01:56:17 +00:00
uwe 5eaebcb703 Fix pasto in comment. 2005-04-19 22:26:21 +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
uwe 89f37124c6 Revert previous. It causes df(1) to reset my Jornada 680 sometimes.
And df(1) that is called during /etc/daily run resets it almost always.
2005-04-04 23:15:08 +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 63c819e89c Add missing stream methods (for wdc_pcmcia.c) 2005-03-11 16:16:06 +00:00
matt 124866f5f5 Don't compare scalars against NULL, use 0. 2005-03-11 07:08:33 +00:00
uwe 1fc105ea83 db_stackcheck_cmd: catch up with proc => lwp changes.
This is just a quick fix to make KSTACK_DEBUG kernels compilable.
Formatting needs improvment (group lwps from one process together, etc).
PR port-sh3/29621
2005-03-08 22:04:22 +00:00
uwe b6c480ab6a KNF: use "continue" as explicit empty loop body. 2005-03-08 21:05:47 +00:00
uwe 933cf58cd8 Use uint<N>_t instead of u_int<N>_t. 2005-03-08 20:54:58 +00:00
chs 348f7d206d sh3 no longer abuses cf_unit. 2005-01-18 07:30:49 +00:00
tsutsui e34a3b7f08 Small optimization in vmapbuf()/vunmapbuf().
BTW, should we also pass 'VM_PROT_READ|VM_PROT_WRITE' to flags
with PMAP_WIRED for pmap_enter() in vmapbuf()?
2005-01-09 17:41:34 +00:00
uwe b667c1f82d Fix lint stub for va_start so that lint is actually happy about it. 2005-01-05 23:39:51 +00:00
tsutsui 23bf17808a Protect accesses to PTE/TLB registers with
_cpu_exception_suspend()/_cpu_exception_resume() pair.

Should fix spontaneous reboot problem on heavy load reported by
Christian Groessler on port-dreamcast.
2004-12-30 09:48:30 +00:00
chs 0ded74691b for drivers that support only one instance, use a global variable to ensure
that only one instance is configured rather than requiring that its
unit number be zero.
2004-12-13 02:14:13 +00:00
uwe e9f575c48c First step towards bus_space - wrap register accesses into macros.
Same object code is generated.
2004-10-19 02:12:21 +00:00
uwe 4866d0ee50 KNF cosmetic. Same object code is generated.
Use continue for explicit empty loop body.
Use for (;;) instead of while (1).
Fix an indentation glitch.
2004-10-19 00:10:33 +00:00
yamt 857913deac include sys/cpu_data.h only if defined(_KERNEL) 2004-09-25 22:08:48 +00:00