Commit Graph

68323 Commits

Author SHA1 Message Date
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
669d2bb92c add support for HPT302 and HPT371. simplify timing selection.
adapted from OpenBSD.  tested on an HPT302, review by bouyer@.
2003-11-28 20:08:29 +00:00
chs
3bf428ce23 regen 2003-11-28 20:05:14 +00:00
chs
9bff23d0a5 add Tandem ServerNet II and various HPT IDE controllers. 2003-11-28 20:04:16 +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
drochner
86048e5a3d always check whether a display is attached before calling
wsdisplay_*() functions
2003-11-28 13:32:55 +00:00
drochner
4d60676c44 -remove a check of errno against -1, this is nonsense since
we have EPASSTHROUGH
-remove a superflous #if NWSMOUSE
2003-11-28 13:19:46 +00:00
keihan
6979203302 s/netbsd.org/NetBSD.org/g 2003-11-28 08:56:48 +00:00
scw
c65769f7cf Cast to pointer via intptr_t. 2003-11-28 08:18:03 +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
manu
23a18da8cd To lookup a map entry in vm_map, use uvm_map_lookup, and not uvm_map_findspace,
which will not work on already mapped objects.
2003-11-28 08:03:14 +00:00
cube
c5529ef807 Add support for the 3com OfficeConnect 10/100B card, which has an ADMtek
AN985 controller, handled by tlp(4).

From Mike M. Volokhov <mishka AT terabyte DOT com DOT ua> in
current-users.
2003-11-28 06:03:09 +00:00
cube
5146829d44 Regen. 2003-11-28 06:00:16 +00:00
cube
5c88862075 Add 3c910 OfficeConnect 10/100B Ethernet. 2003-11-28 05:59:41 +00:00
manu
8aa5d7b0f3 In Mach_task_suspend, stop the process without awaking its parent, this is
wrong on the semantic front; the spurious wakeup confuses Darwin's gdb.

Allow vm, task and thread operations on remote processes. The code to pick up
the remote process is in mach_sys_msg_trap(), so that any Mach service can
use it.
2003-11-27 23:44:49 +00:00
manu
d662d7555d Make the wakeup optionnal in proc_stop, so that it is possible to stop a
process without waking up its parent.
2003-11-27 23:16:47 +00:00
fvdl
6242a54566 There are some cards that map the ATA control and IDE DMA registers
in a different fashion. Individually, they have the same functionality,
but their layout is different. An example of such a chipset is
the Promise 203xx.

To be able to deal with this, transform the cmd and dma bus_space handles
into an array of handles, each seperately created with bus_space_subregion.
The code generated by using the extra indirection shouldn't change much,
since the extra indirection is negated by having the offset calculation
already done in bus_space_subregion. E.g.

	bus_space_write_4(tag, handle, offset, value)

becomes

	bus_space_write_4(tag, handles[offset], 0, value)

Reviewed by Manuel Bouyer. Tested on wdc_isa, wdc_pcmcia, viaide, piixide (i386)
and on cmdide (sparc64).
2003-11-27 23:02:40 +00:00
itojun
bf72fd111d missing splx. Hajimu UMEMOTO via kame 2003-11-27 18:26:46 +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
pk
9ed750b8fe genfs_revoke: use ltsleep() to release the vnode spin lock to avoid a
sleep/wakeup race.
2003-11-27 07:58:02 +00:00
mycroft
c714b3b115 Remove part of previous -- there is NO reason for directory allocation to use
arc4random().
2003-11-27 04:52:55 +00:00
simonb
633d242cca Add COMPAT_16. 2003-11-27 03:57:57 +00:00
itojun
a748550c99 always compile ip_id.c 2003-11-26 21:26:56 +00:00
itojun
326cfe57d2 define RANDOM_IP_ID by default (unifdef -DRANDOM_IP_ID).
one use remains in sys/netipsec, which is kept for freebsd source code compat.
2003-11-26 21:15:47 +00:00
jdolecek
6a23b29f58 Regen: add new syscalls to the list 2003-11-26 19:23:29 +00:00
jdolecek
95ad68c571 add the new syscalls to the list 2003-11-26 19:22:57 +00:00
matt
0c6481e8c4 Regen. 2003-11-26 18:47:16 +00:00
matt
b0e13d0fdc Add pcHDTV HD-2000 HDTV video capture card. 2003-11-26 18:44:16 +00:00
kochi
26cac303c7 Remove unused file. 2003-11-26 16:06:12 +00:00
nakayama
d7545baad1 "wd* at wdc?" is no longer needed. 2003-11-26 15:20:56 +00:00
yamt
d1e85f1677 remove ATA_CMD2_SMART, which seems wrong and isn't used. 2003-11-26 15:03:14 +00:00
scw
91c88f7f6b In the match routine, check to see if we can access the SCSI controller's
registers without generating a bus error. This can happen on some board
variants which have no SCSI controller.
2003-11-26 14:29:37 +00:00
scw
e6085b4b12 A couple of fixes inspired by a recent port-mvme68k post:
- Fix the display of VME master ranges such that the address modifier
   is shown correctly.

 - Apply vr_mask to the start/end VME master addresses, and adjust
   the local start address to compensate.
2003-11-26 14:27:15 +00:00
yamt
49f98b206e fdcopy: copy inline bitmaps properly.
hopefully fixes PR/23469.
2003-11-26 12:42:28 +00:00
bsh
ae462c19db fix typo pointed out by Olivier Houchard. thanks. 2003-11-26 12:17:18 +00:00
pk
d0e5117267 spec_close: asserting that the terminal's process group be set if it is
associated with a session is too strong; a foreground group may go away
without being immediately replaced with another.
2003-11-26 11:33:50 +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
manu
9f69fbc7dc When sending exception with identity, include right names in the
receiver name space, not the sender one.
2003-11-25 23:17:40 +00:00
christos
a21fdf3b43 bye, bye _MCONTEXT_TO_SIGCONTEXT and vice versa. 2003-11-25 23:11:52 +00:00
christos
5b1f7c5277 lr is uninitialized if we goto out1 2003-11-25 21:59:31 +00:00
bouyer
a452a585a7 Some combination of controller/drive sends a continous stream of
interrupt while SRST is asserted. Work around by blocking interrupts while
SRST is asserted, and clearing any pending interrupt before unblocking.
Fix kern/23529 from Michael Hertrick.
2003-11-25 21:03:15 +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
jdolecek
38324d7794 add some (long long int) casts for log() arguments, so that this compiles
on LP64
fixed port-alpha/23566 by Paul Mather
2003-11-25 20:11:59 +00:00
itojun
0864b4939d "seed2" was ruining non-repeating property, so remove it. discussed on tech-net 2003-11-25 18:13:55 +00:00