Commit Graph

41004 Commits

Author SHA1 Message Date
chs
c36910e9cd remove the part of rev. 1.168 that skips TLB invalidations in pmap_enter().
it's wrong for wired mappings.  fixes PR 29804.
2005-09-11 14:30:31 +00:00
chs
355ecfe43b fix typo. 2005-09-11 13:42:40 +00:00
bouyer
4f6680c241 Use MCLGET() instead of local list of buffers. Garbage-collect
struct xennet_txbuf usage.
2005-09-11 13:20:00 +00:00
bouyer
acad751169 Remplace MEXTMALLOC/memcpy with m_copyback. 2005-09-11 11:44:52 +00:00
jmmv
ec93365612 Initial addition of tmpfs, an efficient memory file-system. This project
was developed as part of Google's Summer of Code 2005 program.  This
change adds the kernel code, the mount_tmpfs utility, a regression test
suite and does all other related changes to integrate these.

The file-system is still *experimental*.  Therefore, it is disabled by
default in all kernels.  However, as typically done, a commented-out
entry is added in them to ease its setup.

Note that I haven't commited the required mountd(8) changes to be able
to export tmpfs file-systems because NFS support is still very unstable
and because, before enabling it, I'd like to do some other changes.

OK'ed by my project mentor, William Studenmund (wrstuden@).
2005-09-10 19:20:48 +00:00
bouyer
b069bb656c The line number in the PCI interrupt register can be larger than 31 on
some hardware, depending on how Xen set things up. So bump NR_PIRQ from 32
to 256.
2005-09-10 18:24:35 +00:00
bouyer
b75ba03dd4 Add a vm_prot_t parameter to pmap_remap_pages(), and use it for the new PTE
instead to always trying PG_RW and falling back to PG_RO if this fails.
Use uvm_map_checkprot() in IOCTL_PRIVCMD_MMAP and IOCTL_PRIVCMD_MMAP_BATCH
to compute the appropriate vm_prot_t for pmap_remap_pages().
Thanks to Jed Davis for pointing out uvm_map_checkprot().
2005-09-10 18:00:49 +00:00
bouyer
ba9c8cd0c3 Apply patch from Jed Davis, posted to port-xen:
Implement IOCTL_PRIVCMD_MMAPBATCH, as a loop calling pmap_remap_pages().
XXX this should do the MMU operations in batch.
2005-09-10 15:48:10 +00:00
bouyer
8dfe5bc813 Apply patch from Jed Davis, posted to port-xen:
In pmap_remap_pages() new mappings are created (PG_RW|PG_M). When saving
a domain, the hypervisor will refuse to map the foreing pages RW.
As a temporary measure, retry the mapping read-only if PG_RW fails, so that
domain save will work. Also fix the PTP's wire_count if the MMU update
fails (prevent a kernel panic).
2005-09-10 15:46:04 +00:00
bouyer
7558bd0a7c Fix typo reported by Jed Davis on port-xen:
IOCTL_PRIVCMD_GET_MACH2PHYS_START_MFN is a read, not a write.
2005-09-10 15:41:54 +00:00
dsl
b92fde2f23 Remove KERNFS, it was only used to implement dmesg - the binary is smaller! 2005-09-10 14:53:34 +00:00
kiyohara
e13c2b8b41 Add configuration file for 'PCMCIA adapter BOX' supported kernel. 2005-09-10 04:34:39 +00:00
uwe
45626bf3d9 ANSIfy. 2005-09-10 02:22:33 +00:00
uwe
8f3c0c67f1 Hanlde NMI on microSPARC-IIep.
We don't do much useful except reporting, but that's better than to
stupidly use sun4m handler and wedge the machine.  May need to revisit
what's fatal.

Prodding by macallan@
2005-09-10 01:27:54 +00:00
uwe
531fd682f7 Add definitions for microSPARC-IIep memory fault registers. 2005-09-10 01:23:19 +00:00
uwe
5820e018a3 Add bitmask string for system interrupt pending register. 2005-09-10 01:01:40 +00:00
uwe
3355ba0044 u_intN_t -> uintN_t 2005-09-10 00:44:08 +00:00
tsutsui
60528befec Link ip2xboot as OMAGIC by -N option for ld(1) as well as ip3xboot.
Tested by sekiya.
2005-09-09 17:27:18 +00:00
drochner
727527c99b remove "dev" locators from cardbus device definitions, it doesn't
make sense technically and might be removed
2005-09-09 16:26:19 +00:00
rpaulo
2855760133 Enable WSDISPLAY_SCROLLSUPPORT by default. 2005-09-09 13:43:39 +00:00
tsutsui
5b3a55a74a This file no longer has "#if defined(MIPS3_4100)" so remove
"XXX MIPS3_4100 is still special" comment.
(though some other files still have "special" code which should go away)
2005-09-08 15:19:58 +00:00
tsutsui
e17fe7c64d Initilize CP0 pagemask register properly.
Fixes PR 30590 and some other mips port.
2005-09-08 15:17:23 +00:00
tsutsui
95d5cf1493 Add mips3_cp0_pg_mask_write() to initialize pagemask register. 2005-09-08 15:13:23 +00:00
tsutsui
bd2843f4ab Add definitions of Vr41xx specific pagemask values.
It supports 1k-256kbytes/page.
2005-09-08 15:11:43 +00:00
drochner
14071aa79e fix an obvious mistake where the original instruction
is restored after a simulated single-step,
also use VM_PROT_ALL to get maximal permission for patching
instructions instead of VM_PROT_DEFAULT whose semantics
are not that defined
2005-09-07 20:28:08 +00:00
drochner
caf67252d3 sync with next68k: include <sys/devive.h> explicitely because this is the
documented header for "evcnt" stuff
(should be separated, later)
2005-09-07 19:58:12 +00:00
drochner
8311fb86aa namespace sanity: don't expose compatibility sigcontext stuff
unnecessarily
2005-09-07 19:42:51 +00:00
drochner
41f06eac8c include machine/intr.h only in the _KERNEL case, as
most other ports do.
(In the -KERNEL case, it is needed because the spl*()
stuff ought to be pulled in by <sys/param.h> per the
manpages.)
This saves some namespace headaches.
2005-09-07 19:39:51 +00:00
drochner
9e7bc072c7 namespace sanity: kill includes which are not
used directly
2005-09-07 19:35:37 +00:00
drochner
0ffd1b3340 include <sys/devive.h> explicitely because this is the
documented header for "evcnt" stuff
(should be separated, later)
2005-09-07 19:33:20 +00:00
aymeric
f4cc8f97e3 make the "tags" target work again by using the common trick of splitting some
of the arguments to ctags using echo start-of-xxx | xargs ctags rest-of-xxx
2005-09-06 21:57:47 +00:00
kleink
aece7a90fd Change the driver open function's conditional for overriding exclusive tty
use from checking the proc's uid to suser(9), and account for the use of
privileges.  Noted by David Holland in PR kern/31126.
2005-09-06 21:40:37 +00:00
kleink
bdfc943920 Change the driver open function's conditional for overriding exclusive tty
use from checking the proc's uid to suser(9), and account for the use of
privileges.  Noted by David Holland in PR kern/31126.

Also change this to use the proc argument instead of curproc.
2005-09-06 20:46:38 +00:00
kleink
1020316c01 Change the driver open function's conditional for overriding exclusive tty
use from checking the proc's uid to suser(9), and account for the use of
privileges.  Noted by David Holland in PR kern/31126.

Also, dispose of a redundant instance of that check.
2005-09-06 20:24:01 +00:00
kleink
e2cef34883 signed -> __signed 2005-09-06 19:18:23 +00:00
simonb
b665007462 Include <sys/systm.h>; needed for printf() and strcmp() in the
non-DEBUG case.
2005-09-06 12:22:43 +00:00
dogcow
12c72179ee after discussion with dyoung, add rtw* at cardbus 2005-09-06 02:03:52 +00:00
kiyohara
7463900213 Reorder. 2005-09-05 19:05:20 +00:00
kiyohara
17587c6104 Support LCD screen driver for PERSONA SH3 machines. 2005-09-05 18:54:10 +00:00
uwe
88fc0ed1ac Since we have ipf/pf in the config (commented out), add pertinent
options as well (commented out too).
2005-09-04 16:07:46 +00:00
kiyohara
db37c957e1 Support the 'PCMCIA adapter BOX' for OpenBlockS266. 2005-09-04 15:23:55 +00:00
shige
044ec00fc2 Support LED-control via sysctl (on=1/off=0).
Sysctl name: hw.obsled.led{1,2,4}.

Submitted by kiyohara.
2005-09-04 12:20:15 +00:00
isaki
100f9bce03 typo in comment. (since 1994?!) 2005-09-04 10:41:36 +00:00
isaki
7da7168234 typo in comment. 2005-09-04 10:40:51 +00:00
kiyohara
e8ae1a1119 Support 'PCMCIA adapter BOX' for OpenBlockS266. 2005-09-04 07:24:57 +00:00
uwe
13830db076 Tell hpcfb that framebuffer fetches 16-bit pixels as little endian. 2005-09-04 01:01:29 +00:00
dsl
d802408333 Remove support for ATAPI and SCSI tapes from INSTALL and INSTALL_TINY.
This (just about) counteracts the bloat added by the 64bit inode changes
and the the larger data structures of the new ioconf.c.
The 'st' driver got fingered itself because of it's own size increase
caused by the addition of the stats.
2005-09-03 20:38:07 +00:00
yamt
2cebed8c78 don't include uvm_extern.h twice. 2005-09-01 02:19:40 +00:00
yamt
c6b465a33e revert rev.1.99 as it is no longer necessary. 2005-09-01 02:18:19 +00:00
he
2a3f4bfe4a This one needs "pseudo-device md 1". Patch taken from PR evbppc/31097.
Fixes build problem.
2005-08-31 15:23:06 +00:00