Commit Graph

111 Commits

Author SHA1 Message Date
shin
755c62af21 initialize sc_epoch and RTC properly when reboot/resume.
Addresses PR/20091.
2003-12-30 03:54:35 +00:00
shin
0ffac1acf7 initialize variable 'err' properly.
found by gcc -Wuninitialized.
2003-12-26 11:10:08 +00:00
chs
e07f0b9362 eliminate uvm_useracc() in favor of checking the return value of
copyin() or copyout().

uvm_useracc() tells us whether the mapping permissions allow access to
the desired part of an address space, and many callers assume that
this is the same as knowing whether an attempt to access that part of
the address space will succeed.  however, access to user space can
fail for reasons other than insufficient permission, most notably that
paging in any non-resident data can fail due to i/o errors.  most of
the callers of uvm_useracc() make the above incorrect assumption.  the
rest are all misguided optimizations, which optimize for the case
where an operation will fail.  we'd rather optimize for operations
succeeding, in which case we should just attempt the access and handle
failures due to insufficient permissions the same way we handle i/o
errors.  since there appear to be no good uses of uvm_useracc(), we'll
just remove it.
2003-11-13 03:09:28 +00:00
simonb
cff4731c81 Avoid multi-line strings. 2003-09-26 15:34:11 +00:00
lukem
0c82163c78 __KERNEL_RCSID() 2003-07-15 02:29:24 +00:00
martin
d505b18964 Make sure to include opt_foo.h if a defflag option FOO is used. 2003-06-23 11:00:59 +00:00
thorpej
fd53a1c386 Use PAGE_SIZE rather than NBPG. 2003-04-02 03:51:33 +00:00
nakayama
aab55006b2 Follow a struct consdev changes.
Pointed out by Tsuyoshi AKIHO in the port-hpcmips-ja mailing list.
2003-03-21 14:44:28 +00:00
thorpej
72a2c87923 Use aprint_normal() for cfprint routines. 2003-01-01 01:34:45 +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
thorpej
c5e91d447d Use CFATTACH_DECL(). 2002-10-02 04:55:47 +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
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
yamt
a3da5d94f3 constify. 2002-06-08 16:34:06 +00:00
yamt
737ffe3619 make auto const variables static. 2002-06-08 16:03:55 +00:00
uch
ba21cf86c0 obsolete intrcnt[]. 2002-05-15 15:19:54 +00:00
takemura
f8cb4c37a0 Fixed debug print. 2002-05-03 07:31:23 +00:00
takemura
090be59325 Fixed dev/hpc/hpcfb.c to set RI_BSWAP flag in 8bpp for rasops8.c
and backout changes 'fix LCD byte-order setting':
        arch/hpcsh/dev/hd64461/hd64461video.c   Rev. 1.7 to 1.8
        arch/hpcmips/dev/plumvideo.c            Rev. 1.23 to 1.24
        arch/hpcmips/tx/tx3912video.c           Rev. 1.24 to 1.25
2002-04-13 09:29:53 +00:00
atatat
31144d9976 Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
indicating an unhandled "command".  ERESTART is -1, which can lead to
confusion.  ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4.  No ioctl code should now return -1 anywhere.  The
ioctl() system call is now properly restartable.
2002-03-17 19:40:26 +00:00
uch
a752b69bfa make this compile with DIAGNOSTIC 2002-03-06 15:02:04 +00:00
uch
f35aa9c904 don't attach bivideo. 2002-03-06 15:01:05 +00:00
uch
a3757d3ba3 fix LCD byte-order setting. 2002-02-19 14:21:47 +00:00
uch
ace35e63ce clean up header file. 2002-01-31 17:56:33 +00:00
uch
7d17099353 clean up debug print and configuration. 2002-01-29 18:53:01 +00:00
uch
0cc2d5d9dd make this compile without DIAGNOSTIC. 2002-01-28 05:40:58 +00:00
uch
cead686281 fix memory size calcuration bug. 2002-01-05 04:47:30 +00:00
uch
91fd1d80b7 VR41XX/TX3922 common kernel. 2002-01-02 13:13:18 +00:00
uch
f96ef6a094 fix memory probe sequence.
fix bootstrap stack violation. (code are moved to machdep.c)
2002-01-02 13:08:05 +00:00
uch
bd9aab9cb5 make this compile again. 2001-12-02 10:37:53 +00:00
takemura
1d1d5c87af Rewrite bus stuff with method table in the bus tags. 2001-11-18 08:19:39 +00:00
uch
6c1c0aff9c improve interrupt response. 2001-09-23 14:32:52 +00:00
uch
5c4a9c8761 remove dev/dec/clockvar.h from hpcmips source tree. 2001-09-18 17:37:26 +00:00
uch
87a75cec20 clean up "mainbus" related code. 2001-09-17 17:03:44 +00:00
uch
6a9bbffc4d rearrange struct platform@sysconf.h suitable for hpcmips.
overhaul hpcmips/hpcmips/. no actual changes.
2001-09-16 15:45:42 +00:00
uch
80d8d09cd7 switch from splvec to ipl_sr_bits. 2001-09-15 19:51:38 +00:00
shin
ad4858224a make this file compilable without TX39IRDEBUG. 2001-08-02 04:30:01 +00:00
uch
ea54d618ea ANSI KNF. and change my copyright to TNF copyright. 2001-06-14 11:09:55 +00:00
uch
0774d04303 (TX39) switch from TX local I/O manager to hpcio 2001-06-13 19:09:07 +00:00
shin
6fbde674dd don't define TAILQ_EMPTY here. TAILQ_EMPTY is defined in <sys/queue.h>. 2001-05-09 11:57:05 +00:00
scw
2963ff5c58 Add l_poll' to struct linesw' and provide an xxxpoll() entry point
in each tty driver to indirect through it.

This allows tty line-disciplines to handle poll(2) system calls.
2001-05-02 10:32:08 +00:00
uch
f0df5e196f delete noisy debug message. 2001-04-24 17:09:54 +00:00
sato
9d92917cd6 check platid if 'options VR41XX' and 'options TX39XX' are both defined.
XXX: currently this case is missconfiguration and not compilable.
XXX: because all codes are not supported this case yet.
2001-04-18 10:42:39 +00:00
thorpej
316dcc474b splvec.splimp -> splvec.splvm 2001-04-12 19:21:20 +00:00
uch
659f65e0ee hpc common files are moved to dev/hpc. 2001-02-22 18:37:54 +00:00
sato
3131dc2c04 make compilable. 2001-01-04 05:01:59 +00:00
takemura
1021bf4bf1 Change hf_baseaddr usage. Now it potins frame buffer start address instead
of hf_baseadd + hf_offset. You should use hf_baseaddr only in kernel and
you should use hf_offset only with mmap system call from userland.
2000-12-03 13:43:40 +00:00
eeh
5d8e9b343a Adapt to the new line discipline scheme. 2000-11-02 00:35:04 +00:00