tron
6d26862b28
Fix for ACPI poweroff problem provided by Takayoshi Kochi. This resolves
...
PR kern/20614 by myself.
2003-04-19 16:09:16 +00:00
christos
4bf8b7765e
Put back bits of pr 9286 that got lost. Thanks to Onno van der Linden for
...
pointing this.
2003-04-19 15:47:45 +00:00
tsutsui
c069308048
TAB/space cleanup.
2003-04-19 14:56:05 +00:00
tsutsui
7fd64edc04
- remove obsolete #if 0'ed out code
...
- remove some leading/trailing spaces
2003-04-19 14:44:39 +00:00
bjh21
0b09c8fd02
Include <machine/pio.h> for in8()/out8().
2003-04-19 13:58:38 +00:00
bjh21
4511532aa8
Add NULL cn_halt and cn_flush members to ofppc_bootcons.
2003-04-19 13:56:04 +00:00
tsutsui
2d4bb67d40
Fix unexpected fallthrough in switch statement.
...
This should fix boot failure of the INSTALL kernel
on news3400 with serial console.
2003-04-19 12:33:35 +00:00
scw
5c0b008779
Don't use ARM32_NEW_VM_LAYOUT or initarm_common() for now. It's not
...
quite ready for prime-time on evbarm.
2003-04-19 08:18:12 +00:00
tsutsui
fd46661ecf
Remove definitions of SIZE and STRIP which should be defined elsewhere.
2003-04-19 07:34:15 +00:00
thorpej
ec678aa9cd
Use L1_S_MAPPABLE_P() and L2_L_MAPPABLE_P().
2003-04-18 23:46:12 +00:00
thorpej
8896997409
Gah, fix *another* typo.
2003-04-18 23:45:50 +00:00
uwe
7b16962da2
Quirk Pilotech CRW-600.
2003-04-18 23:38:18 +00:00
uwe
fa83041685
Regen for Pilotech CRW-600.
2003-04-18 23:31:43 +00:00
uwe
f700119cc7
Add Pilotech and its CRW-600 6-in-1 USB flash reader.
2003-04-18 23:28:09 +00:00
christos
4e4a4c7bc9
Make the mode of /proc/<pid>/fd dr-x------
2003-04-18 23:19:24 +00:00
thorpej
21e8a3bc0f
Oops, fix typo.
2003-04-18 22:44:54 +00:00
christos
cd174e0605
make the copy_statfs_args() function copy all the fields that are not
...
set by the filesystems. Before my changes, the statfs code depended
on calling it with mp->mnt_stat, and did not explicitly initialize
anything!
2003-04-18 22:44:45 +00:00
thorpej
08330568d0
Define two new macros to test if a mapping is mappable with an L1 Section
...
mapping or an L2 Large Page mapping.
2003-04-18 22:39:56 +00:00
thorpej
78b1b81e74
Add a comment indicating that the current method of enabling high vectors
...
requires that the CPU control vector be properly readable. I believe that
all CPUs that have high vector support have a readable CPU control register,
but if we ever encounter one that does not, then we'll have to adjust this
code.
2003-04-18 22:30:05 +00:00
christos
11cc5eb2c6
Make symlinks for directories that point to the actual directory.
...
Make symlinks to [kqueue] and [misc] for kqueue and misc fds.
2003-04-18 21:55:35 +00:00
scw
63deb1bd73
Cast __greg_t to/from caddr_t via intptr_t.
2003-04-18 21:07:35 +00:00
scw
9957a9bbe4
Now that UBC no longer creates writable virtual aliases (for PMAP_VIVT),
...
we no longer need to track mappings added by pmap_kenter_pa() for the
purpose of cache-alias detection.
2003-04-18 20:02:34 +00:00
scw
f97e7c222f
Need to bump uvmexp.intrs when taking a h/w interrupt.
2003-04-18 19:57:11 +00:00
tsutsui
761db756a1
- remove definitions of SIZE and STRIP which should be defined elsewhere
...
- use mips/conf/stand.ldscript so that objcopy -O binary works
2003-04-18 19:12:01 +00:00
tsutsui
0b271b64a6
Use LEAF_NOPROFILE().
2003-04-18 18:52:27 +00:00
tsutsui
a34a62065c
Revert part of previous. sdstrategy() no longer calls
...
bounds_check_with_label() for RAW_PART.
2003-04-18 15:57:37 +00:00
yamt
8178e19cb6
fix a use of an uninitialized variable.
2003-04-18 15:19:02 +00:00
scw
98d49ded24
Add support for ARM32_PMAP_NEW and ARM32_NEW_VM_LAYOUT to the iq80321 port.
2003-04-18 12:01:32 +00:00
scw
3fe47173f5
Didn't mean to leave PMAP_DEBUG enabled ...
2003-04-18 11:55:26 +00:00
scw
b84e9438dd
Enable ARM32_PMAP_NEW on NetBSD/shark.
2003-04-18 11:11:51 +00:00
scw
41a1932e58
Add the generic arm32 bits of the new pmap, contributed by Wasabi Systems.
...
Some features of the new pmap are:
- It allows L1 descriptor tables to be shared efficiently between
multiple processes. A typical "maxusers 32" kernel, where NPROC is set
to 532, requires 35 L1s. A "maxusers 2" kernel runs quite happily
with just 4 L1s. This completely solves the problem of running out
of contiguous physical memory for allocating new L1s at runtime on a
busy system.
- Much improved cache/TLB management "smarts". This change ripples
out to encompass the low-level context switch code, which is also
much smarter about when to flush the cache/TLB, and when not to.
- Faster allocation of L2 page tables and associated metadata thanks,
in part, to the pool_cache enhancements recently contributed to
NetBSD by Wasabi Systems.
- Faster VM space teardown due to accurate referenced tracking of L2
page tables.
- Better/faster cache-alias tracking.
The new pmap is enabled by adding options ARM32_PMAP_NEW to the kernel
config file, and making the necessary changes to the port-specific
initarm() function. Several ports have already been converted and will
be committed shortly.
2003-04-18 11:08:24 +00:00
scw
9c5cceb804
In arm32_vector_init(), if the vector page is ARM_VECTORS_HIGH, make
...
sure the CPU_CONTROL_VECRELOC bit is set in the cpu control register
before returning.
2003-04-18 10:51:35 +00:00
scw
c8ba6cb1b9
- In the various cpu_setup() functions, check if the vector page
...
is at ARM_VECTORS_HIGH and set CPU_CONTROL_VECRELOC if so.
- Don't de-ref a NULL args pointer in parse_cpu_options().
2003-04-18 10:45:23 +00:00
jdolecek
b7b5aac957
change PROCFS_FILENO() to use 5 bits for 'type', since there are more than
...
16 types nowadays (i.e. Pfd is 17)
2003-04-18 10:00:19 +00:00
is
dc7d5edb51
fix fatal typo
2003-04-18 09:23:17 +00:00
is
4549723d92
iszthreepa() takes a physical address, not a virtual address.
...
This fixes PR 19175, reported and heavily debugged by Pawel Chwalowski.
2003-04-18 09:18:19 +00:00
scw
c6c94cfec3
Make sure _bus_dmamap_load_mbuf() converts cpu-relative addresses
...
to bus-relative addresses.
Spotted by John Gordon, on port-powerpc@.
2003-04-18 09:16:05 +00:00
explorer
2248468d68
add my 80 GB SATA drive to the quirk table.
2003-04-18 04:32:19 +00:00
thorpej
5a20f4be3c
* Add a generic power management event API, defined in <sys/power.h>.
...
Right now, only power switch state change events are supported. This
is a work-in-progress.
* Add support to sysmon for delivering power mangement events to userland.
Add poll, kqueue, and read entry points to sysmon.
* Adapt ACPI to use the new generic <sys/power.h> event types.
This provides the kernel support for a forthcoming powerd(8) which can
do nice things like gracefully shut the system down when an ACPI power
button is pressed.
2003-04-18 01:31:34 +00:00
simonb
3a00c85d38
Add a KASSERT to make sure that "sizeof(struct mbuf)" is MSIZE.
...
Extra insurance for Steve Woodford's recent <sys/mbuf.h> patch.
2003-04-18 01:24:20 +00:00
mason
d1b448c6e5
From current-users:
...
On Thu, Apr 17, 2003 at 11:26:26AM -0500, Dave Huang wrote:
> Typo police here :) "whose," not "who's."
2003-04-18 00:35:14 +00:00
thorpej
091e93c002
Bump ramdisk size to 4600 blocks.
2003-04-17 22:57:16 +00:00
salo
f35804411a
depreceated->deprecated
2003-04-17 22:55:29 +00:00
matt
062bcd3204
acpi.c needs sysmon_power too.
2003-04-17 20:56:29 +00:00
jdolecek
f331bb3205
do not show nodes corresponding to directory descriptors for process
...
in fd/ subdirectory, nor allow lookup/open for the nodes
this fixes PR kern/21187 for good, and also avoids interesting directory
locking issues
2003-04-17 20:50:46 +00:00
jdolecek
884bdfdbaf
procfs_readdir(): in Pfd case, only show descriptors of types we want
...
how to represent (vnodes, fifo, pipes); also use fd_getfile() et al
this avoids annoying EOPNOTSUPP error messages from ls -F and such
2003-04-17 20:33:17 +00:00
jdolecek
be4c900d41
procfs_lookup(): use fd_getfile() et al in Pfd case
2003-04-17 20:19:18 +00:00
fvdl
1279513402
Need PAGE_SIZE definition for mptramp.S
2003-04-17 20:00:03 +00:00
thorpej
ee5b1a7c61
Protect the definition of offsetof().
2003-04-17 19:58:57 +00:00
jdolecek
ed9a5a7448
use fd_getfile() in procfs_getfp(), and FILE_USE()/FILE_UNUSE() the
...
returned file descriptor pointer appropriately
2003-04-17 19:04:25 +00:00