Commit Graph

850 Commits

Author SHA1 Message Date
uwe 8025d17cda Fix sh_tlb_update signature for SH3 && SH4 case. 2006-01-23 22:04:04 +00:00
uwe 4dfa629043 Wrap sh3_switch_setup/sh4_switch_setup into the same ifdefs that are
used in vm_machdep.c at their invocation sites.
2006-01-23 21:45:02 +00:00
uwe f8e74829d9 Fix the sense of #else/#endif comments. 2006-01-23 21:39:15 +00:00
uwe 9167514771 In onfault handlers of copyinstr and copyoutstr move EFAULT to the
correct register.  This code worked correctly only because the right
register already contained EFAULT.
2006-01-23 03:17:17 +00:00
uwe e1b83e081d LINTSTUBs. Provide .size (except for the switch maze of jumps). 2006-01-23 01:33:53 +00:00
uwe 622ea6b6fb Fix few labels with dots in the middle that I've missed in previous. 2006-01-23 00:36:04 +00:00
uwe c4d52dce59 Use cpp-safe labels. 2006-01-23 00:31:54 +00:00
uwe 43f9c9c93e Use bsr instead of mova+jsr. 2006-01-22 06:25:25 +00:00
uwe c4ef153e79 LINTSTUBs. 2006-01-22 06:08:51 +00:00
uwe c5b4a6c241 Use macros from <machine/asm.h>. Provide .size
Provide LINTSTUBs.
2006-01-22 05:56:58 +00:00
uwe 722d3e38c8 CONSTCOND. 2006-01-21 22:10:59 +00:00
uwe 530e77af35 Use foo &= ~(type)mask; instead of foo &= (type)~mask; to make lint happy.
While here, convert to uintN_t.
2006-01-21 04:57:07 +00:00
uwe ffc34314e2 Add lint comments. Hide computed goto in cpu_reset() from lint.
Remove infinite loop from cpu_reset(), gcc accepts computed goto as
the sign that function never returns.
2006-01-21 04:26:56 +00:00
uwe a1695713e9 Declare cpu_reset as __attribute__((__noreturn__)). 2006-01-21 04:24:12 +00:00
uwe 2f21a084a1 ANSI'fy. 2006-01-21 04:12:22 +00:00
uwe d0928cda19 Lintable no-ops for LOCKDEBUG macros. 2006-01-21 03:57:48 +00:00
uwe e4f6d0eca3 Hide RUN_P2 and RUN_P1 from lint.
Drop CONSTCOND as lint doesn't see that code now.
While here, tweak them a bit to use less casts.
2006-01-21 03:52:42 +00:00
uwe c4888894b9 Use uint32_t. 2006-01-21 03:42:29 +00:00
uwe 92dfa6358c Tweak the way we compute displacement for bra/bsr.
Makes lint happy, makes code shorter too.
2006-01-21 02:09:06 +00:00
uwe a5480590a9 "if (foo) return;" in one line is bad style. 2006-01-21 01:51:47 +00:00
uwe f57593cc31 Use space in "static\tvoid". 2006-01-21 01:48:36 +00:00
uwe 696dfdc2f6 Use uint16_t instead of u_short for instructions.
There's no reason for buf argument to be unsigned char.
0x7f is not a printing character.
2006-01-21 01:45:34 +00:00
uwe 6167325eb6 Add NOTREACHED after calls to panic(). 2006-01-21 00:56:05 +00:00
uwe de6525a736 There's no need to duplicate cpu type ifdef dance here. cputypes.h
already defines CPU_IS_SH[34] as constants for kernels that support
only single cpu type.
2006-01-21 00:46:36 +00:00
uwe 88d4d97511 Add CONSTCOND to make lint happy. 2006-01-21 00:40:36 +00:00
christos 3ffa241fcd Add a STRONG_ALIAS macro 2006-01-20 22:02:40 +00:00
uwe 24ce06fd0d Provide PIC_EPILOGUE_SLOT that is safe to use in delay slot. 2006-01-06 22:27:53 +00:00
uwe 25d6b3ac57 Introduce PIC_PROLOGUE_NOSAVE for functions that do non-local jumps
and don't need to save/restore r12.  Shaves off two instructions.
2006-01-05 19:18:40 +00:00
uwe d4e9884c9c mova can only have r0 as destination, so PIC_PROLOGUE can not specify
an arbitrary temp register.
2006-01-05 02:45:19 +00:00
uwe 2a12f0da53 Macros for .size directive. 2006-01-05 02:02:56 +00:00
uwe 5b2d014092 Provide defines for offsets into the jump buffer. 2006-01-05 00:50:23 +00:00
uwe ba99e8a02c Nuke __P. 2006-01-03 01:29:46 +00:00
uwe 5804629139 KNF: space after the keyword, blank line between function declarations
and variable definitions.
2006-01-02 23:37:34 +00:00
uwe 6ee797fb71 Prepend "cpu0: " to autoconfiguration messages.
While here move separator space to the beginning of optional messages.
Tweak write-through/back message so that is parses as expected.

PR: port-sh3/31315
2006-01-02 23:32:11 +00:00
uwe e968ab9426 Prepend "cpu0: " to autoconfiguration messages.
While here re-wrap some lines to be more readable.

PR: port-sh3/31315
2006-01-02 23:30:33 +00:00
uwe 3099c2f7de Add space between cpu speed and "MHz" in the attachment message. 2006-01-02 23:16:20 +00:00
uwe 9d461d0045 First cut at PIC macros. 2005-12-31 05:06:33 +00:00
perry 2d542ba1f8 inline -> __inline 2005-12-28 19:09:29 +00:00
perry 50a256a3a0 __asm__ -> __asm
__const__ -> const
__inline__ -> inline
__volatile__ -> volatile
2005-12-24 23:23:59 +00:00
uwe 12ffdb00a2 Implement WARN_REFERENCES. 2005-12-24 22:57:26 +00:00
perry 2d65de2479 bare asm -> __asm 2005-12-24 22:45:33 +00:00
uwe 552b373ffa Prettify. 2005-12-24 21:10:28 +00:00
perry 5f1c88d70d Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:06:46 +00:00
uwe 105ff7167f Declare ddb_regs extern in db_machdep.h and provide the defintion in
db_interface.c.
2005-12-18 22:41:50 +00:00
christos 95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
nonaka 2f7c0c1f96 fix EMODE instruction cache range index op. 2005-10-22 15:13:38 +00:00
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
yamt d2fe4b34bb move some per-cpu data definitions to MI place so that they can be modified
without touching all ports.  discussed on tech-kern@.
2004-09-22 11:32:02 +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
thorpej 6c08646cb8 Garbage-collect pagemove(); nothing use it anymore (YAY!!!) 2004-08-28 22:12:40 +00:00
yamt 3998262d5e defparam HZ. 2004-07-01 12:44:26 +00:00
thorpej e33c2bb5d5 Add the %MAKEOPTIONSAPPEND token at the end of the file, after the
common Makefile.kern.inc has been included.
2004-06-04 04:45:49 +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
uwe c22f771297 Register definitions for sh3 integrated DMA controller. 2004-04-08 21:02:57 +00:00
drochner c83eb997b8 nothing cares about __HAVE_SIGINFO anymore, so nuke it 2004-03-26 21:39:57 +00:00
drochner ae94c80224 fix references to the syscall formerly known as SYS___sigreturn14 2004-03-26 19:05:33 +00:00
uwe 44498073bf intc_intr_priority: map DMAC and IRDA interrupts. 2004-03-25 01:25:08 +00:00
uwe 1cfab0e2a0 INTEVT2 values for DMAC interrupts. 2004-03-25 01:02:30 +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
cl ea5ec0212d add kernel part of concurrency support for SA on MP systems
- move per VP data into struct sadata_vp referenced from l->l_savp
  * VP id
  * lock on VP data
  * LWP on VP
  * recently blocked LWP on VP
  * queue of LWPs woken which ran on this VP before sleep
  * faultaddr
  * LWP cache for upcalls
  * upcall queue
- add current concurrency and requested concurrency variables
- make process exit run LWP on all VPs
- make signal delivery consider all VPs
- make timer events consider all VPs
- add sa_newsavp to allocate new sadata_vp structure
- add sa_increaseconcurrency to prepare new VP
- make sys_sa_setconcurrency request new VP or wakeup idle VP
- make sa_yield lower current concurrency
- set sa_cpu = VP id in upcalls
- maintain cached LWPs per VP
2004-03-14 01:08:47 +00:00
uwe 590efeca88 Wrap "unknown instruction in prologue" in TRACE_DEBUG. gcc3 reorders
instructions so that prologue code and function code get mixed, and
you get a lot of noice from this printf, making traceback very hard to
read if not useless.
2004-02-23 01:06:53 +00:00
uwe 8939f2bdbd Implement proper switch_exit in assembler. Since cpu_switch is
reduced to just a call to switch_exit, g/c the C version and add a one
instruction assembler version that just falls through to switch_exit.

Addresses PR#24007 by Jaromir Dolecek <jdolecek@netbsd> and makes sh3
kernels work again after his elimination of the reaper.  Tested on hpcsh.
2004-01-18 18:54:17 +00:00
martin da4e67accc Do not export __HAVE_RAS to userland. Applications are supposed to try
rasctl() and detect failure with EOPNOTSUPP.
2004-01-18 18:23:19 +00:00
uwe a6ced7eb12 G/c symbols related to structs proc and mdproc. 2004-01-18 05:29:45 +00:00
uwe dcc320b65f s/proc/lwp/ in comments. 2004-01-18 04:59:52 +00:00
tsutsui 74ba66664f MD cpu_lwp_free() should have the second arg. 2004-01-06 19:30:38 +00:00
jdolecek 089abdad44 Rearrange process exit path to avoid need to free resources from different
process context ('reaper').

From within the exiting process context:
* deactivate pmap and free vmspace while we can still block
* introduce MD cpu_lwp_free() - this cleans all MD-specific context (such
  as FPU state), and is the last potentially blocking operation;
  all of cpu_wait(), and most of cpu_exit(), is now folded into cpu_lwp_free()
* process is now immediatelly marked as zombie and made available for pickup
  by parent; the remaining last lwp continues the exit as fully detached
* MI (rather than MD) code bumps uvmexp.swtch, cpu_exit() is now same
  for both 'process' and 'lwp' exit

uvm_lwp_exit() is modified to never block; the u-area memory is now
always just linked to the list of available u-areas. Introduce (blocking)
uvm_uarea_drain(), which is called to release the excessive u-area memory;
this is called by parent within wait4(), or by pagedaemon on memory shortage.
uvm_uarea_free() is now private function within uvm_glue.c.

MD process/lwp exit code now always calls lwp_exit2() immediatelly after
switching away from the exiting lwp.

g/c now unneeded routines and variables, including the reaper kernel thread
2004-01-04 11:33:29 +00:00
pk 70f20a1217 Replace the traditional buffer memory management -- based on fixed per buffer
virtual memory reservation and a private pool of memory pages -- by a scheme
based on memory pools.

This allows better utilization of memory because buffers can now be allocated
with a granularity finer than the system's native page size (useful for
filesystems with e.g. 1k or 2k fragment sizes).  It also avoids fragmentation
of virtual to physical memory mappings (due to the former fixed virtual
address reservation) resulting in better utilization of MMU resources on some
platforms.  Finally, the scheme is more flexible by allowing run-time decisions
on the amount of memory to be used for buffers.

On the other hand, the effectiveness of the LRU queue for buffer recycling
may be somewhat reduced compared to the traditional method since, due to the
nature of the pool based memory allocation, the actual least recently used
buffer may release its memory to a pool different from the one needed by a
newly allocated buffer. However, this effect will kick in only if the
system is under memory pressure.
2003-12-30 12:33:13 +00:00
christos a21fdf3b43 bye, bye _MCONTEXT_TO_SIGCONTEXT and vice versa. 2003-11-25 23:11:52 +00:00
uwe 2d6cce4c99 Cosmetic: in sh_vector_generic use named label instead of numeric
label for the curlwp address.  Same object code is generated.
2003-11-24 23:24:18 +00:00
uwe 0457f27ac6 Old sigcode (to be copied out to the bottom of the user stack) is only
necessary for COMPAT_16.
2003-11-24 04:59:24 +00:00
uwe 139976ff9c Cosmetic: u_int32_t -> uint32_t in comments, trim trailing whitespace.
Add __KERNEL_RCSID.
2003-11-24 04:47:42 +00:00
uwe ce26539142 Add __KERNEL_RCSID. 2003-11-24 04:16:51 +00:00
uwe 62410eae0a Definition of __KERNEL_RCSID for asm files. 2003-11-24 04:07:22 +00:00
uwe 72a0bf93df In db_disasm call get_ascii only if necessary. 2003-11-24 03:33:02 +00:00
uwe 0cfca60cdf general_exception() now receives TEA as a third argument. For user
mode EXPEVT_ADDR_ERR_{LD,ST} traps pass it as ksi_addr, also use it to
decide if this is a SIGBUS (unaliged access) or SIGSEGV (kernel VA
access).

Report EXPEVT_TLB_PROT_LD as SEGV_ACCERR, not SEGV_MAPERR.

While here, consistently use standard uint32_t instead of u_int32_t.
2003-11-24 03:11:16 +00:00
uwe 721c1a1815 Pass TEA to general_exception. While here add a couple of comments. 2003-11-24 03:06:01 +00:00
uwe 9d0d2c7461 Implement siginfo for sh3. 2003-11-23 23:13:11 +00:00
uwe 94c8b6c69f Add _UC_SETSTACK, _UC_CLRSTACK flags. Add __fpr_fpul to __fpregset_t
and redefine __fpr_regs as an array of 32 ints (SH3E has 16, SH4 has
32 32-bit FP registers) to reserve the space for FPU registers - we
will properly redefine this as a union when we do support FPU.
2003-11-22 17:05:53 +00:00
uwe 246d903de4 In intc_intr_priority() don't panic if the evtcode is not one of
those, that have their priority set in IPR registers, e.g. IRL
interrupts on Dreamcast.  Reported by Christian Groessler.
2003-11-20 01:22:19 +00:00
uwe 66008dfef1 Fix cpu_switchto() to correctly prepare new lwp before switching to it.
Fixes PR port-sh3/19956.

Big thanks to Christian Limpach <cl@> for pointing this out and
explaning what the fix is.
2003-11-16 00:07:13 +00:00
uwe 60f0942660 Tweak KDASSERT to avoid double negation. 2003-11-15 23:47:58 +00:00
uwe 81468ece49 Register definitions for SH7709 DAC. 2003-11-05 03:08:13 +00:00
uwe 7dac2eaa7a Add closing parenthesis missed in previous. 2003-11-05 01:43:16 +00:00
dsl 2ffbd2ab99 Remove p_nras from struct proc - use LIST_EMPTY(&p->p_raslist) instead.
Remove p_raslock and rename p_lwplock p_lock (one lock is enough).
Simplify window test when adding a ras and correct test on VM_MAXUSER_ADDRESS.
Avoid unpredictable branch in i386 locore.S
(pad fields left in struct proc to avoid kernel bump)
2003-11-04 10:33:15 +00:00
uwe 399158308d Redo a quick hack for intc_intr_disable() and intc_intr_enable() to have
a saner interface/semantic.
2003-11-04 03:13:48 +00:00
uwe 818209017c In intc_intr_priority init iprreg to pacify gcc. 2003-11-01 02:24:49 +00:00
tsutsui d135aa4588 In swap_endian_disklabel(), don't forget copy members which are not
needed to byteswap.
2003-10-31 17:04:12 +00:00
cl ef56cc40ab Reduce code duplication by adding mi_userret() in sys/userret.h
containing signal posting, kernel-exit handling and sa_upcall processing.

XXX the pc532, sparc, sparc64 and vax ports should have their
XXX userret() code rearranged to use this.
2003-10-31 16:44:34 +00:00
simonb 6d85c5e0d5 Don't pass the (unused) return value args to the
trace_enter()/systrace_enter() functions.
2003-10-31 03:28:12 +00:00
uwe c8e97f8a45 When signaling SIGTRAP for debugger break adjust pc to point back to
the TRAPA instruction.  This makes gdb much happier.
2003-10-31 02:59:29 +00:00
uwe 811af2c58f tlb_exception: pacify -Wuninitialized by adding default case. 2003-10-31 02:46:58 +00:00
kleink a3fabb9e7f Use <sys/ieee754.h> where applicable. 2003-10-26 20:55:30 +00:00
uwe 49fd54d39a Use adcvar.h. 2003-10-22 23:52:46 +00:00
uwe 5846d07065 Don't compare a char to NULL. 2003-10-22 21:13:44 +00:00
uwe ae7219a39a Don't compare an integer to NULL. 2003-10-22 21:10:15 +00:00
uwe 49bb9c9d40 Don't compare an integer variable to NULL. 2003-10-22 21:09:09 +00:00
uwe 437e63c180 __KERNEL_RCSID. 2003-10-19 02:22:56 +00:00
uwe a2a5c1629e Make intc_intr_priority() return old level. While here, make the code
more compact by factoring out register update to happen in one place,
outside the switch statements.

Add intc_intr_disable() and intc_intr_enable().
2003-10-18 23:21:35 +00:00
uwe 15e3e96e71 Config glue for adc(4). 2003-10-18 01:29:05 +00:00
uwe 721e6868b8 Driver for analog->digital converter in sh7709. 2003-10-18 01:27:18 +00:00
uwe 390e87a8b6 Use 'CH' for channel select in the ADCSR bits format string for consistency. 2003-10-15 22:55:07 +00:00
cl e9de14a4d3 add MD part of SA/pthread pagefault handling on sh3 2003-10-13 18:08:45 +00:00
uwe 81428320f3 Register definitions for sh7709 analog->digital converter. 2003-10-10 23:52:30 +00:00
uwe a348eb3a30 Add IPR mappings for remaining sh7709 IRQx.
While here, fix couple of typos.
2003-10-08 23:31:43 +00:00
thorpej 901da40cf9 Add some accessor macros for the ucontext:
* _UC_MACHINE_PC() - access the program counter
* _UC_MACHINE_INTRV() - access the integer return value register
* _UC_MACHINE_SET_PC() - set the program counter (this requires
  special handling on some platforms).
2003-10-08 22:43:01 +00:00
lukem 1c33b4e6a4 Overhaul MBR handling (part 1):
<sys/bootblock.h>:
    *	Added definitions for the Master Boot Record (MBR) used by
	a variety of systems (primarily i386), including the format
	of the BIOS Parameter Block (BPB).
	This information was cribbed from a variety of sources
	including <sys/disklabel_mbr.h> which this is a superset of.

	As part of this, some data structure elements and #defines
	were renamed to be more "namespace friendly" and consistent
	with other bootblocks and MBR documentation.
	Update all uses of the old names to the new names.

<sys/disklabel_mbr.h>:
    *	Deprecated in favor of <sys/bootblock.h> (the latter is more
	"host tool" friendly).

amd64 & i386:
    *	Renamed /usr/mdec/bootxx_dosfs to /usr/mdec/bootxx_msdos, to
	be consistent with the naming convention of the msdosfs tools.

    *	Removed /usr/mdec/bootxx_ufs, as it's equivalent to bootxx_ffsv1
	and it's confusing to have two functionally equivalent bootblocks,
	especially given that "ufs" has multiple meanings (it could be
	a synonym for "ffs", or the group of ffs/lfs/ext2fs file systems).

    *	Rework pbr.S (the first sector of bootxx_*):
	    +	Ensure that BPB (bytes 11..89) and the partition table
		(bytes 446..509) do not contain code.
	    +	Add support for booting from FAT partitions if BOOT_FROM_FAT
		is defined.  (Only set for bootxx_msdos).
	    +	Remove "dummy" partition 3; if people want to installboot(8)
		these to the start of the disk they can use fdisk(8) to
		create a real MBR partition table...
	    +	Compile with TERSE_ERROR so it fits because of the above.
		Whilst this is less user friendly, I feel it's important
		to have a valid partition table and BPB in the MBR/PBR.

    *	Renamed /usr/mdec/biosboot to /usr/mdec/boot, to be consistent
	with other platforms.

    *	Enable SUPPORT_DOSFS in /usr/mdec/boot (stage2), so that
    	we can boot off FAT partitions.

    *	Crank version of /usr/mdec/boot to 3.1, and fix some of the other
	entries in the version file.

installboot(8) (i386):
    *	Read the existing MBR of the filesystem and retain the BIOS
    	Parameter Block (BPB) in bytes 11..89 and the MBR partition
	table in bytes 446..509.  (Previously installboot(8) would
	trash those two sections of the MBR.)

mbrlabel(8):
    *	Use sys/lib/libkern/xlat_mbr_fstype.c instead of homegrown code
	to map the MBR partition type to the NetBSD disklabel type.


Test built "make release" for i386, and new bootblocks verified to work
(even off FAT!).
2003-10-08 04:25:43 +00:00
uwe 576576bafb Add definitions for IRR0 bits. 2003-10-07 01:24:32 +00:00
uwe c313f02140 Whitespace nit. 2003-10-01 21:51:15 +00:00
nathanw 4d59420344 Move __cpu_simple_lock_t and __SIMPLELOCK_{UN,}LOCKED to machine/types.h
so that they can be used in a namespace-friendly way.
2003-09-26 22:45:41 +00:00
simonb 550b4bef88 Fix "constify sendsig/trapsignal" fallout for non-siginfo'd archs. Test
compiled on most architectures.
2003-09-26 12:02:55 +00:00
uwe a1cbc85a2f Bring _PROF_PROLOGUE back. The breakage was caused by calls to
__udivsi3 being treated specially by gcc.
2003-08-27 19:59:57 +00:00
christos 2b16e874b8 I don't understand why there this is here, since we have exec_ecoff.c in kern,
but remove the stack setup function anyway.
2003-08-11 12:58:43 +00:00
chs 78a835abdc fix typos in comments. 2003-08-10 02:03:31 +00:00
uwe e4bd28ac72 Undo previous. It breaks profiling, but I managed to test against the
wrong tree and so missed it.
2003-08-10 01:22:03 +00:00
uwe 147642d466 Real _PROF_PROLOGUE so that assembly language functions can be profiled. 2003-08-10 00:00:26 +00:00
uwe 9cd06ccd7e For ELF put RCSID strings into .ident section. 2003-08-09 23:04:43 +00:00
uwe 8c46e68137 Add more sh7709 interrupt sources. Split sh3 and sh4 specific
switches because of conflicts in exception codes.
2003-08-08 00:52:42 +00:00
agc aad01611e7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
uwe 85fb38b211 When passing &buffers to uvm_map, add a cast to (void *). Without it,
gcc3 with -O2 produces "dereferencing type-punned pointer will break
strict-aliasing rules" warning.
2003-08-03 00:01:44 +00:00
thorpej 063033a023 Since everyone uses clock_subr.c (or should, if they don't currently),
list it in conf/files instead of in every port's files.*.
2003-07-27 01:17:37 +00:00
lukem ed51729135 __KERNEL_RCSID() 2003-07-15 02:54:31 +00:00
uwe 66a03d56d3 Correct the macro name for SCP0DT bit.
Addresses port-sh3/22025 by FURUKAWA Masashi.
2003-07-01 11:49:37 +00:00
fvdl d5aece61d6 Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
2003-06-29 22:28:00 +00:00
darrenr 960df3c8d1 Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V
2003-06-28 14:20:43 +00:00
tsutsui 17418f8476 Allow user pmap to pmap_enter device (bus-space) memory. 2003-06-14 16:27:36 +00:00
tsutsui fee6ce1d9f Fix lack of parentheses bug which causes wrong pte settings. 2003-06-14 16:21:31 +00:00
tsutsui cead6ab903 mmap(2) function on sh3 should return page number, not physical address. 2003-06-14 16:08:09 +00:00
kleink 776138ea69 Rename <sys/float_ieee.h> to <sys/float_ieee754.h>, following libc's
convention for these.
2003-05-12 15:22:53 +00:00
thorpej f4ca0d67fe Include <sys/disk.h>. 2003-05-12 14:48:12 +00:00
thorpej e43fecb228 Change bounds_check_with_label() to take a pointer to the disk structure,
rather than the label itself.  This paves the way for some future changes.
2003-05-10 23:12:28 +00:00
thorpej 36da248c07 Back out the following chagne:
http://mail-index.netbsd.org/source-changes/2003/05/08/0068.html

There were some side-effects that I didn't anticipate, and fixing them
is proving to be more difficult than I thought, do just eject for now.
Maybe one day we can look at this again.

Fixes PR kern/21517.
2003-05-10 21:10:23 +00:00
thorpej b77900c3c2 Simplify the way the bounds of the managed kernel virtual address
space is advertised to UVM by making virtual_avail and virtual_end
first-class exported variables by UVM.  Machine-dependent code is
responsible for initializing them before main() is called.  Anything
that steals KVA must adjust these variables accordingly.

This reduces the number of instances of this info from 3 to 1, and
simplifies the pmap(9) interface by removing the pmap_virtual_space()
function call, and removing two arguments from pmap_steal_memory().

This also eliminates some kludges such as having to burn kernel_map
entries on space used by the kernel and stolen KVA.

This also eliminates use of VM_{MIN,MAX}_KERNEL_ADDRESS from MI code,
this giving MD code greater flexibility over the bounds of the managed
kernel virtual address space if a given port's specific platforms can
vary in this regard (this is especially true of the evb* ports).
2003-05-08 18:13:12 +00:00
christos 6ec2f52f71 rename Locore.c -> locore_c.c so that we can compile on case insensitive
filesystems. (from John Gordon)
2003-05-08 12:37:36 +00:00
dsl d91455ce26 Change return type of readdisklabel() to const char *
I hope I've found all the correct places!
2003-05-02 08:45:10 +00:00
scw 8c5c893bf7 Add a BKPT_ADDR() macro which gives MD code a chance to munge a
breakpoint address before it's used. Currently a no-op on all but sh5.

This is useful on sh5, for example, to mask off the instruction
type encoding in the bottom two address bits, and makes it possible
to do "db> break $rXX" instead of manually munging the address.
2003-04-29 17:06:03 +00:00
bjh21 4be7a2dcf3 Add a new feature-test macro, _NETBSD_SOURCE. If this is defined
by the application, all NetBSD interfaces are made visible, even
if some other feature-test macro (like _POSIX_C_SOURCE) is defined.
<sys/featuretest.h> defined _NETBSD_SOURCE if none of _ANSI_SOURCE,
_POSIX_C_SOURCE and _XOPEN_SOURCE is defined, so as to preserve
existing behaviour.

This has two major advantages:
+ Programs that require non-POSIX facilities but define _POSIX_C_SOURCE
  can trivially be overruled by putting -D_NETBSD_SOURCE in their CFLAGS.
+ It makes most of the #ifs simpler, in that they're all now ORs of the
  various macros, rather than having checks for (!defined(_ANSI_SOURCE) ||
  !defined(_POSIX_C_SOURCE) || !defined(_XOPEN_SOURCE)) all over the place.

I've tried not to change the semantics of the headers in any case where
_NETBSD_SOURCE wasn't defined, but there were some places where the
current semantics were clearly mad, and retaining them was harder than
correcting them.  In particular, I've mostly normalised things so that
_ANSI_SOURCE gets you the smallest set of stuff, then _POSIX_C_SOURCE,
_XOPEN_SOURCE and _NETBSD_SOURCE in that order.

Tested by building for vax, encouraged by thorpej, and uncontested in
tech-userlevel for a week.
2003-04-28 23:16:11 +00:00
christos a2dfb1b570 PR/3012: Greg A. Woods: Write all float.h files [except the vax of course]
in terms of float_ieee.h
2003-04-19 23:05:28 +00:00
bouyer aec10dd80c Nake return values from bounds_check_with_label() conform to the man
page: -1 for error, 0 for EOF, 1 otherwise. Inspired by an OpenBSD commit
message, pointed out by Miod Vallat in private mail.
vax/mba/hp.c: check return value <= 0, not < 0 to be concistent with how
other places handle return values from bounds_check_with_label().
2003-04-16 15:00:59 +00:00
tsutsui dcc0f5a63d Fix typo in printf message. 2003-04-13 04:07:34 +00:00
nathanw ff28c51cc0 Make cpu_getmcontext() run the PC through ras_lookup() so that kernel
getcontext() plus userlevel setcontext() (as used in libpthread) respects
the atomicity of RAS regions.
2003-04-11 22:02:28 +00:00
thorpej cc2c493bc4 Use PAGE_SIZE rather than NBPG. 2003-04-02 07:35:54 +00:00
thorpej d470cda51b Use PAGE_SIZE rather than NBPG. 2003-04-02 02:56:40 +00:00
thorpej f6aabf7609 We use 4K pages on the sh3/sh4; make PAGE_SIZE, PAGE_SHIFT, and PAGE_MASK
compile-time constants.
2003-04-02 02:39:47 +00:00
tsutsui 8d3aeb9abc Rewrite user space access functions which use gcc's "labels as values"
extension in asm to avoid unexpected code omission during optimization
which causes wrong return value on faults.
2003-03-20 17:45:14 +00:00
tsutsui f86b0e1741 In tlb_exception(), don't panic immediately on access at va == 0
from kernel mode if fault hander is set.
2003-03-09 16:14:29 +00:00
tshiozak 31e2cbf0b5 add some ISO C 1995 I18N functions and types:
btowc, wctrans, towctrans, wcscoll, wcsxfrm, wctype_t and wctrans_t.
2003-03-02 22:18:11 +00:00
itohy 850cd09532 - Change __cpu_simple_lock_t from int to unsigned char.
This makes simple lock work on big-endian platforms.
- Assembly-level optimization of __cpu_simple_lock_try().

OK'd by Gregory McGarry.  Closes PR port-sh3/20311.
2003-02-14 03:02:41 +00:00
tsutsui cce861a437 Make sure cache_sh[34]_op_*() functions actually inlined. 2003-01-25 04:21:01 +00:00
thorpej 49784e4bd0 Merge the nathanw_sa branch. 2003-01-18 06:33:41 +00:00
uwe a391e8bea6 Add sh7709 INTEVT2 codes for IRQs, PINTs, IRDA and ADC. 2002-12-29 02:47:07 +00:00
manu 4a06119a9d Pass the system call table to trace_enter() and ktrsys() so that it is
possible to use alternate system call tables. This is usefull for
displaying correctly the arguments in Mach binaries traces.

If NULL is given, then the regular systam call table for the process is used.
2002-12-21 16:23:56 +00:00
thorpej 6ff0a8ba21 Initialize pools in pmap_init(); the low-water mark must be set when
it is safe to allocate pages via the normal mechanism.
2002-12-16 07:18:30 +00:00
thorpej 7affeb0071 Add support for RAS (initially added by me on nathanw_sa branch). 2002-12-16 02:15:58 +00:00
thorpej 9ad045c958 Use MI setrunqueue()/remrunqueue(). 2002-12-16 01:56:47 +00:00
thorpej e8cc3884de Rename __LDPGSZ to AOUT_LDPGSZ, to accurately reflect what it is. 2002-12-10 17:14:02 +00:00
thorpej 78ea2dd367 Use __LDPGSZ (which must be == USRTEXT) as the text address for a.out
executables, and eliminate the USRTEXT constant, which was only used
by the a.out exec code.
2002-12-10 05:14:24 +00:00
lukem 0635de35a3 Remove KDIR=, since SYS_INCLUDE=symlinks and KDIR are not supported any more. 2002-11-26 23:30:07 +00:00
manu d584ed9598 Add a realcode argument to trace_enter and ktrsyscall. realcode is the
original system call number, which can be negative for a Mach trap.
We cannot just replace code by realcode, because ktrsyscall uses it as
an index in the system call table, thus crashing the kernel when the
value is negative.
2002-11-15 20:06:00 +00:00
msaitoh 76c101443c add some definitions for P[VR]R register 2002-11-13 14:00:27 +00:00
tsutsui fe505e00b7 Make sure to stop timer count before writing timer counter registers
in tmu[12]_oneshot(). Otherwise sometimes interrupts would be lost.
2002-11-10 04:30:10 +00:00
tsutsui d7fe782b4f Add _reg_bset_[124]() and _reg_bclr_[124]() macro for
SH embeded device registers.
2002-11-08 14:58:25 +00:00
itohy ba91c01b07 Fix asm usage. "tf" is an output operand, not an input. 2002-11-04 08:12:30 +00:00
itohy babe417446 Initialize UTLB/ITLB data array 1 to zero.
If the VPN / PPN are not aligned to page boundary (the page size
is set by SZ bits in data array 1, which are random when power-up time),
unexpected exception occurs in some rare case, it seems....
Initialize SZ to zero (1KB page).  Also, clear VPN / PPN to zero just in case.

Make __sh4_itlb_invalidate_all() static.
2002-11-04 01:31:43 +00:00
jdolecek e0cc03a09b merge kqueue branch into -current
kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe
2002-10-23 09:10:23 +00:00
chs 993948e989 count executable image pages as executable for vm-usage purposes.
also, always do the VTEXT vs. v_writecount mutual exclusion
(which we previously skipped if the text or data segment was empty).
2002-10-05 22:34:02 +00:00
thorpej 89bf5a8f8e Add trailing ; to CFATTACH_DECL. 2002-10-02 15:52:22 +00:00
thorpej 217c799fe7 Use CFATTACH_DECL(). 2002-10-01 21:24:43 +00:00
thorpej f818766afe Declare all cfattach structures const. 2002-09-27 20:31:45 +00:00
provos 0f09ed48a5 remove trailing \n in panic(). approved perry. 2002-09-27 15:35:29 +00:00
thorpej 6c88de3b53 Introduce a new routine, config_match(), which invokes the
cfattach->ca_match function in behalf of the caller.  Use it
rather than invoking cfattach->ca_match directly.
2002-09-27 03:17:40 +00:00
thorpej d1ad2ac4f2 Rather than referencing the cfdriver directly in the cfdata entries,
instead use a string naming the driver.  The cfdriver is then looked
up in a list which is built at run-time.
2002-09-27 02:24:06 +00:00
simonb 63096043b3 Use "#define\t" instead of "#define ". 2002-09-22 08:30:56 +00:00
chs c081614ea2 it really helps to get the stub right before cutting + pasting it 27 times.
alas, I did not.  doh.
2002-09-22 07:53:39 +00:00
chs 55e1f79335 add pmap_remove_all() hook (empty on most platforms so far). 2002-09-22 07:17:08 +00:00
gmcgarry 45d41256f3 Update for cpu_switch() prototype change. No functional change. 2002-09-22 05:40:35 +00:00
gmcgarry dca80f08fd Add __HAVE_MD_RUNQUEUE flag for MD code to override MI run queue primitives. 2002-09-22 04:11:32 +00:00
gmcgarry 9fdf5b4b9e Implement CPU spinlocks. Compile-tested only. 2002-09-16 09:12:50 +00:00
gehenna 77a6b82b27 Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.
2002-09-06 13:18:43 +00:00
thorpej 139cdc3125 Make nbuf, nswbuf, and bufpages unsigned. Make all operations on these
variables unsigned, and update places where their values are printed.
2002-08-25 20:21:33 +00:00
msaitoh 3bc4d0b5aa remove extra CRLF conversion 2002-08-16 08:56:27 +00:00
briggs 0b956d0b8b Implement pmc(9) -- An interface to hardware performance monitoring
counters.  These counters do not exist on all CPUs, but where they
do exist, can be used for counting events such as dcache misses that
would otherwise be difficult or impossible to instrument by code
inspection or hardware simulation.

pmc(9) is meant to be a general interface.  Initially, the Intel XScale
counters are the only ones supported.
2002-08-07 05:14:47 +00:00
tsutsui b55adcb049 Fix disklabel handling on sh3 ports:
- By default, use disklabels in the native endian.
- With options BSDDISKLABEL_EI, kernels can read/write labels
  in the opposite endian.
- With options COMPAT_MMEYE_OLDLABEL, kernels accept labels
  in format used on old mmeyes.
  (Some old mmeyes have "the bootstrap kernel to load kernel from disks"
   on their flash ROMs and it is not easy to update kernels on the ROMs.)
- While here, use leXXtoh() to read some values in MBR.
2002-07-22 15:11:09 +00:00
mjl 395027b4be Correct obviously switched args to memset() 2002-07-18 02:07:13 +00:00
thorpej 011d4d5f44 Add kernel support for having userland provide the signal trampoline:
* struct sigacts gets a new sigact_sigdesc structure, which has the
  sigaction and the trampoline/version.  Version 0 means "legacy kernel
  provided trampoline".  Other versions are coordinated with machine-
  dependent code in libc.
* sigaction1() grows two more arguments -- the trampoline pointer and
  the trampoline version.
* A new __sigaction_sigtramp() system call is provided to register a
  trampoline along with a signal handler.
* The handler is no longer passed to sensig() functions.  Instead,
  sendsig() looks up the handler by peeking in the sigacts for the
  process getting the signal (since it has to look in there for the
  trampoline anyway).
* Native sendsig() functions now select the appropriate trampoline and
  its arguments based on the trampoline version in the sigacts.

Changes to libc to use the new facility will be checked in later.  Kernel
version not bumped; we will ride the 1.6C bump made recently.
2002-07-04 23:32:02 +00:00
thorpej 7f7f0f86bd When delivering a signal, arrange for the handler to be invoked
directly.  The trampoline is now used only for the return, and
makes it another 2 instructions shorter.
2002-06-23 18:49:33 +00:00
thorpej 508e2dcf41 When delivering a signal, don't push the signum, code, and context pointer,
or handler onto the stack.  Instead, just stuff them into the correct
argument registers (handler is a "4th arg").
2002-06-23 18:35:05 +00:00
christos 3b50728cf4 MD systrace gluons. 2002-06-17 16:32:57 +00:00
uch ba28fa4dc2 change disklabel to
16 partition.
 no bsd area of the disk.
2002-05-22 15:01:33 +00:00
msaitoh 7c10da8b66 fix some overflow cases. 2002-05-19 15:10:46 +00:00
matt 0a6d35b7ed Nuke local extern label_t *db_recover; it's now in <ddb/db_extern.h> 2002-05-13 20:30:07 +00:00
uch 3fb2a4d436 cosmetic changes. 2002-05-10 15:28:45 +00:00
uch 4e8a77d890 clean up disassembler code. 2002-05-10 15:27:05 +00:00
uch 55326aaa7e remove COMPAT_13 staff. No 1.3 release of sh3 port. these are trace of
i386 port.
2002-05-10 15:25:12 +00:00
uch 3a1a0b37af IOM_RAM_BEGIN is changed to specify physical address. 2002-05-09 12:32:09 +00:00
uch cee1a2f41a remove unused macro. 2002-05-09 12:31:38 +00:00
uch 2ca56b0d33 remove postsig. postsig is called by ast(). 2002-05-09 12:31:19 +00:00
uch d5020bf906 remove obsolete interface. add defines for inquire cache feature. 2002-05-09 12:30:45 +00:00
uch 44b57799f2 fix comment 2002-05-09 12:30:11 +00:00
uch 4c73523c72 suitable for SH3/SH4 memory architecture.
support non-contiguos memory banks.
2002-05-09 12:29:48 +00:00