Commit Graph

43194 Commits

Author SHA1 Message Date
itojun
f039f89ec5 prepare for sh3e[bl] split 2001-01-04 06:53:45 +00:00
minoura
cd4d6511c8 Correct `Year 2001 problem'.
Pointed out by Okamoto Kohichi <GHG03305@nifty.ne.jp> and
URA Hiroshi <ura@hiru.aoba.yokohama.jp>.
2001-01-04 06:45:18 +00:00
mycroft
c142ce184b Several things:
* Only match an alternate which is in the same direction.
* Use 16-bit ulaw and alaw conversions for output, if possible.
* Store the interface handle in the `alternate' table, so we use the right
  interface when creating pipes for devices with both play and record.
Record doesn't seem to actually return any data from the Telex frob, but at
least it doesn't crash or return EIO now.

XXXXXXXX
This is a big f*cking hack.  Play and record need to be separated completely
if this code is ever going to even pretend to support full duplex.
2001-01-04 06:20:49 +00:00
sato
46921fecee Avoid null pointer dereference. dc_sc may be null on early stage. 2001-01-04 06:07:43 +00:00
enami
f306f72978 Use cast where appropriate to avoid integer overflow. 2001-01-04 06:07:18 +00:00
takemura
d403e873db Delete types.h and int_types.h in stand/include/mips and
use types.h and int_types.h with __COMPILER_INT64__ in kernel source.
The version of the binaries get 1.16.4.
2001-01-04 06:01:41 +00:00
mycroft
6ff81e44ec No really, this is half-duplex for now. Lame. 2001-01-04 05:25:24 +00:00
sato
9d298fafdb adapt resent config_hook.h 2001-01-04 05:20:37 +00:00
sato
9eb0981033 re-define CONFIG_HOOK NICKNAME.
add some macros.
2001-01-04 05:16:26 +00:00
shin
ce0d1ad2fe - don't ignore DEFCOPTS (Makefile.mips).
- DEFCOPTS of hpcmips is "-Os -mmemcpy" (std.hpcmips).
2001-01-04 05:13:30 +00:00
sato
3131dc2c04 make compilable. 2001-01-04 05:01:59 +00:00
itojun
a493f2d3fd typo. struct fpregs -> struct fpreg 2001-01-04 04:42:59 +00:00
mycroft
ab1d9b87b0 Make some vague attempt to handle devices that do both input and output. This
probably needs more work, but at least my Telex frob can play music now.
Also, AUDIO_DEBUG -> UAUDIO_DEBUG.
2001-01-04 03:53:09 +00:00
enami
62f0a92d52 Avoid null pointer dereference. dc_sc may be null on early stage. 2001-01-04 03:03:04 +00:00
enami
596f0820de Set HPCFB_DC_CURRENT bit in hpcfb_init() so that boot -d works. 2001-01-04 01:35:21 +00:00
enami
25481ad786 Redo previous; we need to notify kbd driver. 2001-01-04 01:33:37 +00:00
itojun
f5f5aac99a look at __LITTLE_ENDIAN__ (gcc symbol) to determine which endian we are in.
makes the file bi-endian.
2001-01-04 00:51:15 +00:00
enami
0e081e1b48 Missing newline in log messsage. 2001-01-04 00:17:52 +00:00
thorpej
d04f6f6d57 Just garbage-collect the #if 0'd pmap_transfer() stuff. 2001-01-04 00:17:43 +00:00
itojun
16b3064038 split big/little endian better. 2001-01-03 23:49:21 +00:00
mycroft
29ecdf4b0c Regen. 2001-01-03 23:15:14 +00:00
mycroft
cbfa3ad17d Add Chrysalis-ITS LunaVPN card. 2001-01-03 23:14:39 +00:00
eeh
4020842234 Fix faults caused by incorrect cacheing information in the pv_entry. 2001-01-03 23:05:22 +00:00
enami
62a4aefda9 Avoid null pointer dereference so that boot -d works again. 2001-01-03 23:03:45 +00:00
enami
7eab063a4f Use device_lookup. 2001-01-03 23:00:24 +00:00
thorpej
33338b633a ANSI'ify, and inline userret(). 2001-01-03 22:15:38 +00:00
thorpej
09ffed2ba0 ANSI'ify. 2001-01-03 21:40:25 +00:00
thorpej
dbe63d5a81 Some more slight cleanup. 2001-01-03 21:39:20 +00:00
thorpej
5602df2e07 Fix a couple of comments. 2001-01-03 21:27:07 +00:00
ad
a06fc2bf4b Fix thinko in previous. 2001-01-03 21:17:05 +00:00
ad
5fcbd5f722 - Fix a number of bugs with the configuration stuff.
- Bash the passthrough interface into working order.
- Add an ioctl to retrieve the `tidmap'.
2001-01-03 21:04:01 +00:00
ad
8494f44b67 Make dumps work, and put the first part of detach into ld.c. 2001-01-03 21:01:28 +00:00
thorpej
c3d730df25 ANSI'ify. 2001-01-03 20:29:58 +00:00
fvdl
3456657259 Bump shm max pages value to a more realistic one. 2001-01-03 20:19:33 +00:00
thorpej
a2a696618e Restructure alpha_sgmap_dmamap_create() slightly. 2001-01-03 20:12:34 +00:00
thorpej
db36913c87 The code that creates/destroys SGMAP DMA maps is the same; put it
in a common place and share it.
2001-01-03 19:15:59 +00:00
itojun
1d25215235 $NetBSD$ 2001-01-03 18:15:47 +00:00
itojun
10e1d3091a share sys/arch/sh3/conf/Makefile.sh3 across sh3-based architectures.
cleanup param.h a bit.
2001-01-03 18:14:44 +00:00
itojun
f66249f478 dreamcast went to sys/arch/dreamcast 2001-01-03 17:59:02 +00:00
itojun
4eb5bbbdc2 wdog* does not compile due to the lack of WDOG_IRQ. 2001-01-03 15:42:48 +00:00
pk
cf53c74834 * Apply proper cast for 32 -> 64 bit pointer argument conversion.
* Since probeget() isn't geared up to deal with _arbitrary_ memory fault
  types (and doesn't work at all when called from an interrupt context),
  add explicit sanity checks on a stack frame's contents before use
  (XXX - needs revisiting).
2001-01-03 15:33:34 +00:00
itojun
00fbe713e7 remove #if 0'ed portion 2001-01-03 15:26:17 +00:00
itojun
4469b35a09 retain empty "compile" directory 2001-01-03 15:22:14 +00:00
bouyer
286f4f934f Add a 'flag' member to struct puc_attach_args and struct port. For
PUC_PORT_TYPE_COM, use it to store the clock frequency (with 8 lower bits
to 0, used for real flags if needed).
Update all descriptions to set flags to 0 for LPT or COM_FREQ for COM.
Add support for the VScom PCI-800H 8 port serial adapter (which uses
a 14.7456 Mhz crystal instead of the standart 1.8432Mhz :)
XXX now that we can pass other frequency than COM_FREQ, the VScom PCI-800
entry could probably be updated to DTRT - does anyone have one ?
2001-01-03 15:13:15 +00:00
takemura
c5fd828440 replace 'long long' with int64_t to compile stand alone program with
compiler other than GCC.
2001-01-03 10:08:55 +00:00
tron
a9fb04248b Correct comment behind version number. 2001-01-02 23:35:56 +00:00
augustss
c2b9d052ba Cosmetics. 2001-01-02 23:08:54 +00:00
tron
0ce4a9a0de Use highest bit of minor as an extra bit for the partition number to
bump the maximum partition number on NetBSD-i386 to 16. (Approved by fvdl)
2001-01-02 23:06:54 +00:00
augustss
3ea054452a Add placeholder for firmware. 2001-01-02 22:38:51 +00:00
augustss
0e9ef4adc0 Forgotten commit for EZ-USB loader. 2001-01-02 22:24:00 +00:00
matthias
4cefdbee45 make sendsig/sigreturn work with p_sigctx. 2001-01-02 19:16:34 +00:00
augustss
32e4d7004e Add a transient driver for the YAP phone that downloads firmware into
the EZ-USB chip.  After downloading the firmware the device detaches
and then reattaches as a composite device (audio + HID).

XXX For now there is no firmware committed since the vendor (Silicon
XXX Portals) has not yet agreed that we can redistribute their firmware.
2001-01-02 18:52:44 +00:00
augustss
5b86e8bfa8 Add subroutines to download firmware into Cypress (formerly Anchor)
EZ-USB chips.
2001-01-02 18:49:56 +00:00
kleink
20a43da197 C99: add new parameters int_p_cs_precedes, int_n_cs_precedes,
int_p_sep_by_space, int_n_sep_by_space, int_p_sign_posn and
int_n_sign_posn to monetary locale information.
2001-01-02 10:53:24 +00:00
augustss
f586756bcf Regen. 2001-01-02 09:53:16 +00:00
augustss
d3fd188459 Add a new TI hub chip. 2001-01-02 09:52:55 +00:00
simonb
eaf4f43227 Add ELF support.
Thanks to Steve Woodford for his help!
2001-01-02 04:28:37 +00:00
simonb
472a75b08f Convert both bootblocks and mkboot to use libsa's loadfile(), and make
both ELF aware.
2001-01-02 04:14:33 +00:00
matt
4622cfafe0 Redefine the memset/memmove/bcopy/bzero/memset macros to use more agressive
constraints in their inline asm.  Gcc generates much better code now.
2001-01-02 04:03:42 +00:00
mrg
d9a9b8d6d5 the tcds cards work in pmaxen. move tcds attachment to files.tc. leave asc
at tcds in files.alpha for now, and add a new `xasc at tcds' to files.pmax.
after pmax has moved fully to MI scsi (and `asc' is MI scsi), we should move
the device asc, etc., lines to files.tc.
2001-01-01 23:43:05 +00:00
thorpej
bee6e31c0d Don't equate pmap_update() with tlbflush(), but instead call
tlbflush() when that's what we mean (currently everywhere, except
in the one place in MI code where it is called).

The whole pmap_update() thing needs to be reexamined, but this helps
to clarify things a little with the currently-defined semantics of
that function.
2001-01-01 22:13:53 +00:00
thorpej
eb80878b1b Happy new year! 2001-01-01 20:18:34 +00:00
ad
c29358e0f9 Don't try to configure `uninteresting' devices. 2001-01-01 19:03:30 +00:00
augustss
8afb11bb20 Don't match on a bunch of scanners that should be handled by a
different driver.
2001-01-01 18:52:05 +00:00
augustss
47c95db1c3 Regen. 2001-01-01 18:51:08 +00:00
augustss
f33102e85d Add another scanner. 2001-01-01 18:50:42 +00:00
augustss
5806434428 Call vdevgone() with correct minor range. 2001-01-01 18:34:12 +00:00
augustss
2f1e60b46c Support device detach.
Don't call scanjet_attach() for all HP scanners.
Also, ANSIfy while I'm here.
2001-01-01 18:28:49 +00:00
jdolecek
2ed3ce29ea regen after makesyscalls.sh fix:
Avoid generating duplicate SYS_* defines to *syscall.h - is possible
for kern/syscalls.master's sys_getpid()/sys_getpid_with_ppid().
This fixes kern/11853 by Bernd Ernesti.
2001-01-01 16:45:07 +00:00
jdolecek
df458f620b Avoid generating duplicate SYS_* defines to *syscall.h - is possible
for kern/syscalls.master's sys_getpid()/sys_getpid_with_ppid().
This fixes kern/11853 by Bernd Ernesti.
2001-01-01 16:41:43 +00:00
sommerfeld
aace86f946 MULTIPROCESSOR: The two calls to psignal() inside mi_switch() are
inside the scheduler lock perimeter and should be sched_psignal() instead.
2001-01-01 16:02:51 +00:00
bjh21
7866e2f2c9 Arrange that the return value of copyin() and friends be provided by
do_fault(), in preparation for do_fault() being able to get it from
uvm_fault().
2001-01-01 16:00:42 +00:00
tsubai
ad6af0a61b Make lasttb and tickspending per-CPU. 2001-01-01 05:28:54 +00:00
tsubai
b3982b810e Allocate intstk and spillstk for cpu0. 2001-01-01 05:23:17 +00:00
matt
ad346bb9eb Convert a MALLOC with a variable size to malloc(). Saves 220 bytes of text
on VAX.
2001-01-01 05:17:26 +00:00
tsubai
61096678a3 Forgot to commit this... 2001-01-01 05:17:15 +00:00
tsubai
6c4981f735 Switch to the idle stack before releasing the sched_lock (rev 1.31 was
wrong).
2001-01-01 05:16:12 +00:00
tsubai
9a7bf182cd MP support in external interrupt handler. 2001-01-01 05:01:11 +00:00
tsubai
26914e2bcf Make want_resched and astpending per-CPU.
Add some per-CPU variables to cpu_info.
2001-01-01 04:33:39 +00:00
sato
f89afd86e1 re-disable experimental HPCFB_MULTI codes.... 2001-01-01 01:42:03 +00:00
chs
5c68a1518a zero the pages for newly allocated clusters in deextend() after we
notify UVM of the file's new size rather than in extendfile().
fixes PR 11852.
2001-01-01 00:25:41 +00:00
eeh
fe278fa440 Make INCR() atomic. 2000-12-31 21:05:21 +00:00
matt
ab88a97d88 de-__P. cleanup the whitespace a bit. add a very small optimization. 2000-12-31 19:41:41 +00:00
matt
143230cc74 Rename arithflt to trap. Change trap label to Xtrap. This is due to that
arithflt is really the trap handler so call it that.
2000-12-31 19:27:24 +00:00
castor
a0c38fa362 Fix sendsig/sigreturn for SOFTFLOAT case. 2000-12-31 19:06:40 +00:00
ad
2f5cf27275 PR 6402: some SCSI devices use \377 as blank, so adjust scsipi_strvis(). 2000-12-31 17:54:29 +00:00
ad
e3514a4191 PR 4853: we fork a lot more during startup these days. Wrap nextpid to 500. 2000-12-31 17:43:41 +00:00
bjh21
bc86e85531 Correct various initial comments, and provide a useful overview of how the
MEMC works, at the suggestion of chs.
2000-12-31 16:09:34 +00:00
augustss
9a52f80f0f Make the controller survive suspend/resume. Thanks to Steve Woodford
<steve@mctavish.co.uk> for testing.
2000-12-31 14:29:54 +00:00
ad
196d40d973 Regen. 2000-12-31 14:04:26 +00:00
ad
fb04e415dd Fix Mylex products. 2000-12-31 14:03:24 +00:00
ragge
de50d468c9 Do not touch pv_table when mapping/unmapping I/O registers. This caused
mmap() of framebuffers to give unpredictable faults.
2000-12-31 11:16:55 +00:00
matt
625392adca improv the stack trace by printing the fp at the start of each line and
noticing trap frames, and printing that information as well.  For example
Stack traceback :
0x87ba2bc4: _arithflt+0x1a7(0x87ba2cac)
0x87ba2c50: trap type=0x8c code=0x8 pc=0x800008ef psl=0xc00000
0x87ba2c1c: _copystr+0x23(0x8095f378,0xa539f,0x86c0bd20)
2000-12-31 05:52:48 +00:00
sommerfeld
f2bdd546dd Add a missing simple_unlock() to the LK_NOWAIT/VXLOCK error case in vget(). 2000-12-31 03:13:51 +00:00
david
d0ec21672f Increase psbuf size as in FreeBSD patch. We don't have jail(8), so the
recent bugtraq exploit doesn't apply, but it could be exploitable in
other ways.
2000-12-30 23:14:52 +00:00
ragge
9bbf84e4ca Changes for dzkbd/dzms. This is not yet finished, but at least the
kernel is useable.
2000-12-30 22:11:46 +00:00
matt
d962f9c52e Add a kludge that makes stack tracebacks work. 2000-12-30 20:16:34 +00:00
matt
8a55dd0d98 Make this compile without having a SMG device. 2000-12-30 20:15:02 +00:00
matt
c03997bb51 Make this compile again. 2000-12-30 20:11:54 +00:00
mjacob
462ff196a4 [ dummy checkin to add to previous CVS ]
It's probably not really a compiler bug- somebody pointed out
that it was the kernel making strings readonly. But I do think it's
a bug. The actual code was really more like:

	char *revname;

	...

	revname = "2X00";

	...
	revname[1] = '2'; <<<<<<<<< BOOOM


The variable revname is not a const. If I had said

	const char *revname = "2X00"
	...
	revname[1] = '2';

that would indeed be breaking const rules.
2000-12-30 19:47:20 +00:00