Commit Graph

37472 Commits

Author SHA1 Message Date
bjh21
dd89bf7764 Use kdb_trap() rather than Debugger() to deal with unhandled undefined
instructions in the kernel, so that DDB gets a useful trapframe.  Also
panic if this happens when DDB's not around.
2003-11-29 22:21:29 +00:00
bjh21
41f83fd2b1 On a prefetch abort or an address exception in the kernel, drop
straight into DDB rather than calling panic().  This will allow DDB to
see what was actually going on at the time of the exception.
2003-11-29 22:03:21 +00:00
fvdl
142645a06a This file is dead. It has ceased to be. It has gone to meet it's maker. It
is a late file.

Any rumours of it pining for the fjords are totally unsubstantiated.
2003-11-29 00:27:58 +00:00
jhawk
e7d0c2b26a Manually moved from Attic/ in the repository since cvs failed to do so. 2003-11-28 23:57:49 +00:00
jhawk
0769141e39 Manually moved from Attic/ in the repository since cvs failed to do so. 2003-11-28 23:47:42 +00:00
fvdl
ebc6dbad07 Define the mcount function in assembler, and have it save all registers
used for argument passing, plus %rax (used to pass the number of float
arguments to varargs functions), to avoid having it clobber caller-saved
registers. mcount is emitted "under the radar", so the compiler doesn't
know it should do this.

Change the kernel mcount entry/exit macros to use plain cli/sti, like on i386.
2003-11-28 23:22:45 +00:00
chs
06abe054f9 bcopy -> memcpy 2003-11-28 19:03:03 +00:00
chs
d740b5e191 de-__P, remove register, ansify. 2003-11-28 19:02:25 +00:00
scw
0a42a14b70 Re-write and simplify _sh5_stb1_tlbload to avoid branches. 2003-11-28 08:15:10 +00:00
scw
85c506fb3b While NetBSD/sh5 has never needed a sigcode trampoline, other parts of
the kernel seem to assume 'esigcode - sigcode' is non-zero.
2003-11-28 08:12:52 +00:00
tsutsui
4f9a822f1f sync with news68k:
> Make sure machine and ${MACHINE_ARCH} symlinks created before make depend.
2003-11-27 16:19:16 +00:00
simonb
633d242cca Add COMPAT_16. 2003-11-27 03:57:57 +00:00
nakayama
d7545baad1 "wd* at wdc?" is no longer needed. 2003-11-26 15:20:56 +00:00
bsh
ae462c19db fix typo pointed out by Olivier Houchard. thanks. 2003-11-26 12:17:18 +00:00
rearnsha
445d91a12e Reposition a couple of NOP instructions for better efficiency. 2003-11-26 10:31:53 +00:00
he
ea56bcee84 Hide the register number constants behind an _R_ prefix, and also
rename FPBASE to _FPBASE, so that we avoid polluting the user's
name space when e.g. <sys/ptrace.h> is included.  Previously, the
PC symbol in mips/regnum.h would conflict with the declaration of
the external variable by the same name in termcap.h, as discovered
by the ``okheaders'' regression test.
2003-11-26 08:36:49 +00:00
simonb
2350e98506 Fix some white space nits. 2003-11-26 03:56:38 +00:00
simonb
19a9d14f26 Remove the prototype for the non-existent intr_md_register() function. 2003-11-26 03:55:38 +00:00
simonb
da33cec9b3 Need offset of ci_curpm in struct cpu_info on 4xx as well. 2003-11-26 03:51:39 +00:00
christos
a21fdf3b43 bye, bye _MCONTEXT_TO_SIGCONTEXT and vice versa. 2003-11-25 23:11:52 +00:00
jdolecek
2f13a5654b throw in some default switch labels to pnpbios_update_dock_status(), so that
this compiles with PNPBIOSEVENTS option (such as with config DR-EVIL)
fixes kern/23564 by dheeraj reddy
2003-11-25 20:47:27 +00:00
cdi
d49bc81070 Use per-cpu pcb, curlwp and fplwp rather than global ones. This brings
GENERIC.MP configuration to a usable state.

Approved by petrov@.
2003-11-25 05:14:58 +00:00
simonb
2651b30a5b Need to set/restore the PSR explicity in cpu_{set,get}mcontext() since
it is a different size in mcontext_t and "struct reg".
Problem spotted by Christos Zoulas.
2003-11-25 04:57:05 +00:00
he
512e98364a I've been informed that any dependent targets on .BEGIN are
ignored.  Fix the symlink creation for machine, mips, and pmax
accordingly.

Also, there's nothing .PHONY about the vers.c target, as far as I
can see, so I've removed that.
2003-11-24 23:29:54 +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
cdi
02de9dde31 Call 'proc_trampoline_mp' from 'proc_trampoline' in a multiprocessor
configuration. Fix process locking. Approved by petrov@.
2003-11-24 20:41:15 +00:00
tsutsui
f37ddce7e8 Remove obsolete MD mcclock files. 2003-11-24 06:24:27 +00:00
tsutsui
e9dbe69e90 Set mcclock to BCD mode as before. Tested on 7248-133 43P. 2003-11-24 06:23:33 +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
chs
8205afea7d de-__P, remove register, ansify. 2003-11-24 02:51:35 +00:00
uwe
9d0d2c7461 Implement siginfo for sh3. 2003-11-23 23:13:11 +00:00
chs
36ff370721 de-__P, remove register, ansify. 2003-11-23 17:09:29 +00:00
bjh21
18a0620f50 Sync acorn26 riscoscalls with acorn32 version. 2003-11-23 15:55:03 +00:00
bjh21
f68440c42d Remove a spurious commented-out line. 2003-11-23 15:28:03 +00:00
bjh21
b6c0709c09 Rename os_CLI() and xos_CLI() to os_cli() and xos_cli() for consistency with
everything else.
2003-11-23 15:24:20 +00:00
bjh21
6ed8fd9689 Remove spurious whitespace. 2003-11-23 14:13:42 +00:00
bjh21
d8b0dd8a97 Create the "machine" and "arm" links directly from the .BEGIN rule, rather
than in dependencies of it, since .BEGIN is apparently only special for
its commands, not its dependencies.  This should get boot26, and probably
boot32, compiling again.
2003-11-23 13:34:07 +00:00
taca
c6f4b234b4 Move initialization of ssym' and esym' to inside of
#if NKSYMS || defined(DDB) || defined(LKM) ... #endif.

Now GENERIC and INSTALL kernel can be compiled again.
2003-11-23 08:54:57 +00:00
tsutsui
3aa8405cb9 Regen from diodevs rev 1.7:
> Change device ID for 98624A HP-IB from 0x80 to 0x01.
> nhpib.c in Lite2 used 0x01 and my 98624 also has an ID 0x01.
2003-11-23 01:59:25 +00:00
tsutsui
ff8bdea2e8 Change device ID for 98624A HP-IB from 0x80 to 0x01.
nhpib.c in Lite2 used 0x01 and my 98624 also has an ID 0x01.
2003-11-23 01:57:35 +00:00
tsutsui
31cf2e3911 Suppress uninitialized warnings. 2003-11-23 00:09:11 +00:00
tsutsui
919cc25d24 Add an entry of "com0 at dio0 scode 9" so that /dev/ttyC0 and
compat symlink (/dev/tty0) are always reserved for DCA serial.
2003-11-22 17:24:29 +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
sekiya
20d207b125 Add (commented out) dpclock for ip22 and blinkenlitzen for ip32. 2003-11-22 15:08:44 +00:00