Commit Graph

29713 Commits

Author SHA1 Message Date
pk 5237c5fb99 In cpu_fork() set tf_npc as well in case a signal is taken in child_return()
which will cause the values of tf_pc and tf_npc set here in cpu_fork()
to be restored and used to return to user space from sigreturn() eventually
(before that the tf_pc and tf_npc set in sendsig() will be used in
proc_trampoline()).

Also, the fork system call never uses the SYSCALL_G2RFLAG shortcut, so drop
the code handling that.
2001-12-30 18:52:54 +00:00
pk 76634d2635 Change interface between cpu_fork() and proc_trampoline() so that `tf_pc'
(instead of `tf_npc') contains the user-space return address. This ensures
entering the signal trampoline code correctly in case we take handled
signal during child_return().
2001-12-30 16:41:29 +00:00
lukem 95c845e4fc add -Os to COPTS after <bsd.prog.mk> is pulled in rather than adding
it in CFLAGS beforehand, as a user's mk.conf COPTS+=-O2 results in
boot files that are too large.
2001-12-30 16:32:29 +00:00
wiz b5df8875da Uncomment uhidev, since other entries depend on it. 2001-12-30 14:49:08 +00:00
augustss dbd7c7b7bc Make uhidev change. 2001-12-30 13:28:13 +00:00
takemura 936fd137e6 BUGFIX: It allocated only 44 bytes for hpcapm while the device needed
764 bytes.

it was really terrible.
2001-12-30 12:57:41 +00:00
takemura 4ff1a4256d Commented out the line which install interrupt handler because sg2com
interrupt port is unknown and it doesn't work at all.
2001-12-29 09:26:23 +00:00
thorpej 4adc65cb8e We also need the i386 header files; descend into ../i386/include to
install them.
2001-12-29 05:32:59 +00:00
takemura 37728140db Added debugging output indicating details of interrupt register setting. 2001-12-29 05:15:32 +00:00
takemura dce583bd28 Added sg2com(SigmarionII sertial). 2001-12-29 04:27:33 +00:00
thorpej 989d1769bc Add a linker script for the NetBSD/x86_64 kernel; provides _etext
in the place that we want for the kernel (after all read-only sections).
2001-12-29 02:24:06 +00:00
augustss b53ea42bf0 Update for new uhidev device attachment. 2001-12-28 17:37:01 +00:00
martin b506d6e135 Add PPPoE to all generic kernels that should be able to use it.
XXX TODO: do this for INSTALL kernels too, add sysinst support and make the
XXX needed binaries available on the ramdisk root fs.
2001-12-28 12:21:52 +00:00
thorpej 2db4da1742 Fix some register constraints; specifically, the "port" operand,
if not an immediate, must be in a 16-bit register.
2001-12-28 06:42:40 +00:00
thorpej 670bf31890 Fix the definition of ELF32_MACHDEP_ENDIANNESS. 2001-12-28 06:35:19 +00:00
shin b7e3f7d6e3 R4000/R4400 always detects virtual alias as if
primary cache size is 32KB. Actual primary cache size
is ignored wrt VCED/VCEI.
2001-12-28 04:06:06 +00:00
shin f15b256063 check if curproc is invalid, and do panic.
otherwise, we can't useful backtrace.
Ex. address error in interrupt handler.
2001-12-28 02:13:14 +00:00
minoura da0ba70058 Remove some error messages to reduce the size. 2001-12-28 02:12:55 +00:00
toshii f8c1bea196 Allow jornada720 LCD and keyboard to be used as a boot console. 2001-12-28 01:41:53 +00:00
shin ae12ee76a0 add #ifdef DEBUG around VCED_count etc. 2001-12-27 22:55:46 +00:00
christos af7d3cdd3d use the new ci_info hook to print extra cpu information during probe. 2001-12-27 15:28:34 +00:00
christos e59d5895b1 add a new function to the cpu struct's that can be called to print extra
cpu information after initialization.
2001-12-27 15:24:34 +00:00
dbj 1b65d8fd30 fix single stepping and continuing from breakpoints in ddb 2001-12-27 10:32:23 +00:00
dbj 2bea447d60 sync the instruction cache even when only writing 2 or 4 bytes 2001-12-27 10:25:41 +00:00
shin 606f00a905 split VCED and VCEI. 2001-12-27 04:19:17 +00:00
shin d00d2e4bcb simplify VCED processing.
just write back and invalidate secondary cache line and fetch data again.
2001-12-27 04:03:37 +00:00
wiz 5514d0b117 bcopy/bcmp/bzero -> memcpy/memcmp/memset 2001-12-27 02:23:24 +00:00
thorpej 1ab1192459 Makefile for x86_64 includes and boot blocks. 2001-12-27 00:43:25 +00:00
thorpej 86a77080a5 Remove (incorrect) extern decl of emul_hpux. 2001-12-26 19:08:11 +00:00
thorpej 232c19df9d A statement must follow a label. 2001-12-26 19:00:31 +00:00
thorpej 63d3d9fe5a Multi-line string literals are not in ANSI C; don't use them. 2001-12-26 17:37:59 +00:00
minoura e36ba40641 Backout previous.
It was a garbage; atatat already commited the fix in another way.
2001-12-26 14:40:20 +00:00
ross 71c3eef663 include systm.h (for libkern.h (for ffs())) 2001-12-26 00:38:37 +00:00
chs ed160d6aac make this compile again after -ffreestanding. 2001-12-24 18:20:50 +00:00
chs c356097d58 use ELF instead of a.out symbols now. 2001-12-24 17:57:19 +00:00
chs e5b36c6564 typo in last. 2001-12-24 17:56:59 +00:00
chs c5fffebac0 needed for ELF, just include the m68k common header. 2001-12-24 17:56:31 +00:00
dbj d91a86f994 revert revision 1.13
this turns single stepping back off since it doesn't correctly work
note that without single stepping, several things do not work as
expected, including continuing from interrupts
2001-12-24 16:57:40 +00:00
augustss a6727606ec Add (commented out) wd at umass (for ISD adapters). 2001-12-24 13:47:13 +00:00
minoura 6894058edf ELF!! 2001-12-24 11:38:06 +00:00
minoura 09b4ffd576 ELF!!
Plus adopt my environment (TOKOCHAN is my development config as well
as an example).
2001-12-24 11:38:05 +00:00
minoura ebfadba677 ELF!! 2001-12-24 11:38:04 +00:00
shin 3e560d975e make YBASE and EPOCHYEAR tunable. 2001-12-24 01:22:50 +00:00
shin f22f06769c fix debug printf() format string. 2001-12-24 01:21:27 +00:00
thorpej 030d89cdf0 Use ANSI declarations for static inline functions, and give them
the __unused__ attribute.
2001-12-23 23:08:41 +00:00
takemura 2134fdcf5e Added SigmarionII serial port support.
(console onlty, interrupt is not supported)
2001-12-23 13:32:33 +00:00
shin bd62d7da4a decend into romboot. 2001-12-23 13:28:23 +00:00
shin 896f0cde82 simple boot loader for ROM
supported platform: LASER5 L-Router(L-Board)
2001-12-23 13:27:56 +00:00
takemura 490f777a1f Added Vr4131 support. 2001-12-23 13:10:46 +00:00
aymeric 186cb1ec17 include m68k a.out compatibility module so we can use
options COMPAT_AOUT_M68K
2001-12-23 12:01:12 +00:00