bjh21
67a2b59b9c
Remove all my pointless "This file is part of NetBSD/arm26" comments, since
...
that's easier than correcting them.
2002-03-24 23:37:42 +00:00
bjh21
f1f30eb04d
Fix include directories.
2002-03-24 23:17:36 +00:00
bjh21
83ecfb19eb
Fix include directory.
2002-03-24 23:17:00 +00:00
bjh21
dbe15f1606
In commented-out SUBDIR, rename arm26 -> acorn26.
2002-03-24 23:15:05 +00:00
martin
ef6a5a4c4c
Minor nit in the attach message: don't print empty io or iomem.
2002-03-24 23:04:27 +00:00
thorpej
a4652c81cf
Only check for SA110 bugs on SA110 CPUs with step <= K.
2002-03-24 22:03:23 +00:00
thorpej
ea553e2681
Cache the cpu type and cpu revision in cpu_info.
2002-03-24 22:02:58 +00:00
reinoud
a24660e86c
Fix detection of ARM 610 processors in the bootloader. NetBSD/acorn32 now
...
runs on ARM 610's again !!
2002-03-24 21:59:48 +00:00
thorpej
35e2087b84
Make this compile again.
2002-03-24 21:46:28 +00:00
thorpej
2a68b2b9b1
Use the generic 32-bit ARM fault.c
2002-03-24 21:41:12 +00:00
thorpej
186c0135d6
Garbage-collect pmap_pte() (and good riddance!)
2002-03-24 21:32:18 +00:00
thorpej
ea95b58d21
* Only check for SA110 rev K bug if we're on an SA110 (XXX should also
...
check stepping).
* In said check, don't use pmap_pte().
* Garbage-collect some useless debug code.
2002-03-24 21:27:57 +00:00
chris
03345d6008
remove pointless pg = NULL in else part of if (pg != NULL)
2002-03-24 21:10:25 +00:00
thorpej
bf3ea66d5c
pmap_enter(): Use pmap_map_ptes() correctly.
2002-03-24 20:48:59 +00:00
itojun
bb1e9bbcd8
double m_free() - niklas@openbsd
2002-03-24 20:46:56 +00:00
martin
0bc69b6498
Now that we have all the pieces of the puzzle available start to unriddle
...
and move them in their proper places.
Move the BRI registry from layer 2 (duh!) to layer 4, so active cards
(which don't have layer 3 or layer 2 in their driver). Remove all remaining
hard coded controller and driver types. Remove any arbitrary hard coded
limits, at least those that show up in the internal API.
This fixes PR 15950.
2002-03-24 20:35:43 +00:00
chris
c247fe1261
cats has enough kvm space to use the default pager_map size.
2002-03-24 20:15:59 +00:00
jdolecek
abc9dff158
Limit the KVA used for pipe loaned memory to 64KB, vax doesn't have too
...
much KVA space spare. This fixes port-vax/13333 by Manuel Bouyer.
Reviewed by: Anders Magnusson
XXX this is not ideal, need to find better solution
2002-03-24 19:08:17 +00:00
jdolecek
313e79182d
aha at mca? confirmed working (test card provided by Jonathan Hankins)
2002-03-24 18:47:54 +00:00
jdolecek
6c9be960fd
update comments + cosmetic change in aha_mca_probe()
...
Driver is now confirmed working. Tested with AHA-1640 card provided to me
by Jonathan Hankins.
2002-03-24 18:46:49 +00:00
thorpej
1ffa188c0a
Remove exported pmap_pte() prototype.
2002-03-24 18:36:52 +00:00
uch
cfe4dfb98f
add autoconf.h for new mainbus driver.
2002-03-24 18:28:12 +00:00
uch
e8300f3659
adapted to new interrupt code and shb changes.
2002-03-24 18:21:08 +00:00
scw
7ce75221c2
Round VID_OSL to be a multiple of 32 * 256byte blocks.
2002-03-24 18:15:03 +00:00
uch
422c178bc7
add cpu device. sync with shb change.
2002-03-24 18:14:27 +00:00
scw
d22256f158
Pass RB_NOSYM to exec_mvme() otherwise loadfile() tries to lseek()
...
backwards, which we don't support.
2002-03-24 18:13:24 +00:00
uch
5f6dd2098e
Remove unneeded device and fix comment
2002-03-24 18:13:01 +00:00
thorpej
5ffc15a083
Use vtopte() instead of pmap_pte().
2002-03-24 18:12:54 +00:00
uch
3d1452008e
remove unneeded header
2002-03-24 18:11:09 +00:00
scw
3d663e9bb1
Bump the MD image size to 1600 blocks.
2002-03-24 18:10:54 +00:00
scw
d0dba1cf87
Build the 68k-specific vmetwo stub (albeit a cut down version), even
...
if vmetwo isn't in the config file.
2002-03-24 18:10:14 +00:00
uch
7803620f8d
mmeye specific devices are moved to mmeye/dev
2002-03-24 18:08:42 +00:00
chris
434f6391ea
Update pmap_copy_page to only map in the src readonly and only invalidate it after the copy, no need for it to flush the wb.
2002-03-24 18:05:45 +00:00
uch
24ec477a45
Rework interrupt code.
...
+ Fully utilize SH SR.I[0:3] interrupt level.
+ software interrupt is emulated by TMU1, 2 one shot interrupt.
+ implement generic soft interrupts.
+ implement clockframe correctly.
2002-03-24 18:04:39 +00:00
jdolecek
b042e5bdb0
drop the isadma attribute for aha, aha at mca? doesn't use that
2002-03-24 18:03:58 +00:00
uch
50fcaf7ba0
add cpu device.
2002-03-24 18:01:29 +00:00
uch
049c84193e
shb device is integrated to sh3/dev/shb.c and clean up locators.
2002-03-24 18:00:41 +00:00
uch
731150d9ce
add SH7750S IPRD register define
2002-03-24 17:57:33 +00:00
scw
7e69c325c1
Fix a botch from the dev/mvme split for kernels with no vmetwo in
...
the config file.
2002-03-24 17:22:32 +00:00
jdolecek
9977ae0589
ncr53c9x_attach(): if sc_rev is NCR53C90_86C01, set it to ESP100 once
...
the variant name is printed.
This fixes a problem that the card would be treated as ESP100 in
ncr53c9x_reset(), but not on couple other places (pointed out by
Andy Doran in private e-mail).
g/c now redundant case entry in ncr53c9x_reset()
2002-03-24 17:16:19 +00:00
augustss
269b3925f6
Regen.
2002-03-24 17:16:04 +00:00
augustss
4cadac3fb4
Add some devices. From seebs <seebs@ged.plethora.net>
2002-03-24 17:15:42 +00:00
manu
3f4cce33b9
Aded missing irix_keme pseudodevice declaration
2002-03-24 17:09:26 +00:00
christos
4f0742e306
Change the multicast/broadcast test to happen later, and when we are
...
in listen mode. Fixes panic with telnet ::1 port, where the port is an
ipv4 open port.
2002-03-24 17:09:01 +00:00
bouyer
21ac4c9d76
Add support for the AMD768. Tested by Murray Armfield <murray@river-styx.org>.
2002-03-24 16:58:12 +00:00
jdolecek
e971d6b60f
msdosfs_mountfs(): drop some excessive braces in the GEMDOS-related section
...
no change in functionality
2002-03-24 16:30:11 +00:00
jdolecek
d1f2e630ca
Fix a memory leak in bridge_ioctl_add() when the called for non-ethernet
...
interface.
Problem noted and fix provided by in kern/16019 by Love.
2002-03-24 16:11:23 +00:00
bjh21
650f7e5c99
arm26 -> acorn26 changes.
2002-03-24 16:10:11 +00:00
bjh21
c5ada96476
arm26 -> acorn26.
2002-03-24 15:56:59 +00:00
bjh21
cc685cb13e
__arm26__ -> acorn26. This has the advantage of actually being defined.
2002-03-24 15:52:33 +00:00
bjh21
a90a7a1ab7
Mention the DS2401 Silicon Serial Number.
2002-03-24 15:51:45 +00:00
bjh21
99ba40c188
arm26->acorn26 transition.
2002-03-24 15:49:38 +00:00
bjh21
1de4f40a8a
Rename NetBSD/arm26 to NetBSD/acorn26, so that the two Acorn/ARM ports have
...
matching names. This commit might include some private hacks that have been
lurking in my tree a while. They're all harmless, and this reduces the number
of gratuitous diffs I have to deal with.
2002-03-24 15:45:29 +00:00
bjh21
ebfcb75fe5
Add ARM610 cache information. Not yet tested because booting on ARM610s seems
...
to be broken at present.
2002-03-24 15:37:46 +00:00
jdolecek
bbee4277ca
fd_revoke(): don't assume that f_type other DTYPE_VNODE and DTYPE_SOCKET
...
is automatically bogus, make the code return EINVAL for all non-vnode
descriptors
2002-03-24 15:32:51 +00:00
jdolecek
4cfe9dc1f6
use FILE_USE()/FILE_UNUSE() as appropriate, use malloc()/free()
...
instead of MALLOC()/FREE() for variable-size allocations (sync
with kern/sys_generic.c)
XXX not tested
2002-03-24 15:19:24 +00:00
jdolecek
3089d90eeb
add explicit comment a FILE_USE() is not needed here
2002-03-24 15:12:45 +00:00
jdolecek
fc18dc8984
minor indentation fix
2002-03-24 15:03:00 +00:00
kent
79decd163e
Move 'pecoff' to installable SUBDIR
2002-03-24 15:01:57 +00:00
bjh21
96dda214b4
Avoid "unused variable" warnings in the NCR5380_USE_BUS_SPACE case.
2002-03-24 14:56:01 +00:00
isaki
7b178b2f1f
bsd_audioio.h was obsolated by vs0
2002-03-24 14:54:50 +00:00
jmcneill
2000b295ed
Fix suspend/resume. Previously, suspending/resuming while playback was active
...
would either:
1. Cause the machine to stop responding, or
2. Cause the currently playing voices to stop output.
With this change, voices are stopped on suspend, and continue from where they
left off on resume.
2002-03-24 14:17:35 +00:00
is
6963fa721e
use the right endian ether_crc32 function in the multicast hash table computation
2002-03-24 11:00:17 +00:00
thorpej
a6d59cb039
pmap_allocpagedir(): Don't use pmap_pte(), and simplify a little.
2002-03-24 06:07:00 +00:00
oki
b10ef43c8e
Read /usr/libexec/ld.so.dll if failed to read
...
/emul/pecoff/usr/libexec/ld.so.dll.
reported via IRC from kent, thanks.
2002-03-24 05:55:49 +00:00
thorpej
b812152b34
pmap_handled_emulation(): Fix locking protocol botch.
...
XXX Should we traverse the PV list and enable all PTEs?
2002-03-24 05:55:31 +00:00
thorpej
6fbfe41621
pmap_handled_emulation(): Use pmap_map_ptes() correctly.
2002-03-24 05:52:10 +00:00
uwe
b540b26b5a
Sync most Cyrillic names with X11 keysym names.
2002-03-24 05:43:12 +00:00
thorpej
ec75dcf496
pmap_modified_emulation(): Use pmap_map_ptes() correctly.
2002-03-24 05:39:53 +00:00
thorpej
0aef2cab11
pmap_unwire(): Use pmap_map_ptes() correctly.
2002-03-24 05:28:46 +00:00
thorpej
11df08a743
pmap_clearbit(): Use pmap_map_ptes() correctly.
2002-03-24 05:15:59 +00:00
thorpej
eb638f9bc5
Use pmap_is_curpmap() consistently.
2002-03-24 04:56:49 +00:00
thorpej
242f080390
Clean up the PTP allocation functions a bit.
2002-03-24 04:49:16 +00:00
thorpej
c34d24ea3c
Clean up PTE access macros a bit.
2002-03-24 04:38:33 +00:00
sommerfeld
b8de140e4e
Prototype ACPI Control Method Battery driver.
...
ACPI defines two different battery device interfaces: "Control Method"
batteries, in which AML methods are defined in order to get battery
status and set battery alarm thresholds, and a "Smart Battery" device,
which is an SMbus device accessed through the ACPI Embedded Controller
device; this driver knows how to attach to the former sort of device.
As a total kludge, since we haven't wired things up to sysmon/envsys
yet, we report battery status through a once-per-minute kernel printf,
so don't use this driver yet if you want your disk to spin down.
Motivated by and tested on Sony PCG-R505TL laptop, which has
nonfunctional APM.
configure as:
acpibat* at acpi ?
Sample output:
acpibat0 at acpi0: ACPI Battery
acpibat0: Sony Corp. LION
acpibat0: Design 38480mWh, Predicted 38480mWh Warn 120mWh Low 0mWh
acpibat0: discharging: 15112mV cap 25480mWh (66%) rate 16849mW
...
acpibat0: discharging: 15224mV cap 25070mWh (65%) rate 18405mW
...
acpibat0: discharging: 15200mV cap 24310mWh (63%) rate 13771mW
...
acpibat0: charging: 15768mV cap 23330mWh (60%) rate 20388mW
2002-03-24 03:46:10 +00:00
thorpej
aa1563948c
* arm_byte_to_page() -> arm_btop()
...
* arm_page_to_byte() -> arm_ptob()
2002-03-24 03:37:18 +00:00
sommerfeld
44ede71657
Add acpi_eval_struct, to evaluate a complex data structure.
...
#if 0-out a half-fixed acpi_eval_string() and #if 0 the only call to it.
(Previous code referenced an uninitialized local variable and couldn't
have possibly worked).
2002-03-24 03:32:14 +00:00
thorpej
48d8c5fdd9
Remove some redundant tests in pmap_enter().
2002-03-24 03:25:10 +00:00
jdolecek
0b5e2aba9a
Fix problem with assumption non-socket == vnode in F_{G,S}ETOWN different way
...
(revisions 1.47 & 1.48 effectively backed off):
* for all but vnodes, just fallback to sys_fcntl(); assumming
state of support for F_SETOWN/F_GETOWN and even hardcoding it here is
not right (e.g. rev. 1.47 had this incorrect for DTYPE_PIPE)
* fallback to sys_fcntl() also for vnodes which don't represent tty
* don't need to use FILE_{,UN}USE() here, the code won't block while
using the pointer
* add/fix some comments
2002-03-24 00:32:34 +00:00
itohy
78b5427b7e
Add wait-for-ready code between setting MCE and changing data format,
...
which is required by OPL3-SA2 (YMF711) chip.
Fixes PR kern/14819.
2002-03-23 23:40:32 +00:00
reinoud
2b488a7d9f
Big rototil of the vidcvideo code to cleanup illogical structures and to
...
incorporate write back support for processors not having a write through
cache.
The current fb_devconfig structure now really holds the device's
configuration and the softc really only holds the attachment information.
This used to be mixed giving rise to weird stuctures and cross references.
The number of vertical syncs before the video memory writeback is triggered
is configurable ... default is to wait for 5 Vsync .. aprox minumum 10
times a second, but more likely in the order of 12,5 times a second. When
printing is in progress no write back is performed... only after the
waiting time. The reasoning behind this is that as long as the screen is
printed too the cache will be purged of dirty data anyway due to the
processing and new screen memory useage.
2002-03-23 21:27:41 +00:00
thorpej
2488d00e5f
KERNEL_SPACE_START -> KERNEL_BASE
2002-03-23 19:38:30 +00:00
thorpej
e80bfdc1a3
Garbage-collect the "pagehook" stuff.
2002-03-23 19:21:58 +00:00
thorpej
4b6638c0b5
pmap_bootstrap(): Correct arithmetic on pte when advancing past
...
the newly-allocated msgbuf. (Note, it happened to work before
because nothing used pte afterwards, but in the event something
is added that does, pte should be correct.)
2002-03-23 18:39:46 +00:00
ragge
300bbc803f
Check unit number when booting from rl disks.
2002-03-23 18:13:04 +00:00
ragge
f3082cc970
Call rlreset() per controller, not per disk.
...
Be more informative about the state of the disk (locked, unloaded etc...)
Send NULL as proc pointer to bus_dma_load if B_PHYS is not set.
Break out softc's from rl.c to rlvar.h for inclusion elsewhere.
2002-03-23 18:12:09 +00:00
reinoud
2d2df858f7
Fix up typos.
2002-03-23 18:10:24 +00:00
kent
a37082a494
whitespace and folding fix.
2002-03-23 17:17:10 +00:00
reinoud
fe2473fafd
Fix typo.
2002-03-23 17:10:13 +00:00
kent
541b66ade5
Decrease UAUDIO_NFRAMES: 20 -> 10
...
This change eliminates noise of 6ch audio.
2002-03-23 16:23:20 +00:00
darrenr
726f1074d8
If someone is poll'ing to write to bpf, assume that it can always be done
...
and include POLLOUT and POLLWRNORM in the returned events flag set.
Derived from FreeBSD.
2002-03-23 15:55:21 +00:00
taca
e6937b841b
Change devinfo definition and make devname initialization correctly.
...
Those changes are referring with uplcom.c.
I've checked with SUNTAC U-Cable type P1 that it responed to AT commands.
2002-03-23 15:38:22 +00:00
christos
3c2d0dbff9
correct placement for FILE_UNUSE [from Izumi Tsutsui]
2002-03-23 15:36:15 +00:00
simonb
adc0cdfea7
Allow selection of a big- or little-endian kernel by uncommenting the
...
std.malta.eb or std.malta.el config include file in the kernel config
file. From the sbmips and evbsh3 ports.
2002-03-23 14:51:28 +00:00
simonb
2184ed8531
Convert evbmips to use mips/mips/bus_space_alignstride_chipdep.c.
2002-03-23 14:33:35 +00:00
simonb
de2d1df3a9
Remove the comment that says this is for PCI busses only.
2002-03-23 14:20:41 +00:00
simonb
8e5ab10b05
Add generic chipset memory and I/O "bus" functions for mips, based on
...
algor/pci/pci_alignstride_bus_{io,mem}_chipdep.c.
2002-03-23 14:19:18 +00:00
enami
c504305f1b
Make this file compiles again.
2002-03-23 13:43:04 +00:00
jdolecek
943f2b4f8a
make COMPAT_11 or COMPAT_12 imply EXEC_ELF_NOTELESSS
...
use #if for the execsw entries, to allow 'options EXEC_ELF_NOTELESS=0'
to override this
This addresses kern/13520 and kern/14409 by Matthew Green.
2002-03-23 09:50:54 +00:00
jdolecek
083f26646d
rename EXEC_ELF_CATCHALL to EXEC_ELF_NOTELESS
2002-03-23 09:40:55 +00:00
hamajima
e33fdf6c62
add WinFast VC100
2002-03-23 09:27:50 +00:00
hamajima
fddeb95f9f
add VR4121 Audio Interface Unit
2002-03-23 09:02:01 +00:00
shin
3389664fee
add MIPS3_NO_PV_UNCACHED.
2002-03-23 05:16:33 +00:00
chs
20a94bdf2d
only do v3 stuff for v3 filesystems.
2002-03-23 05:00:57 +00:00
chs
60b5cc6ac2
make this compile again (PS_STRINGS is gone).
2002-03-23 05:00:04 +00:00
gmcgarry
3ed7e33e1d
Add commented-out default definitions for BASEREG and BASEMEM.
2002-03-23 03:45:04 +00:00
gmcgarry
4c3affa3f6
Remove FreeBSD RCSID.
2002-03-23 03:40:24 +00:00
shin
b7cd4d56ee
add LKM.
2002-03-23 03:17:57 +00:00
shin
f8fe1d3f46
change MAXPARTITIONS to 16.
2002-03-23 03:14:54 +00:00
thorpej
110e2a57ff
* Change all uses of KERNEL_SPACE_START to KERNEL_BASE.
...
* Delete now unused KERNEL_SPACE_START.
2002-03-23 02:53:59 +00:00
thorpej
aec8b8b92e
* Fix the definition of KERNEL_BASE.
...
* Define KERNEL_TEXT_BASE, APTE_BASE, and KERNEL_VM_BASE in terms of
KERNEL_BASE.
2002-03-23 02:42:46 +00:00
thorpej
d364ce88c0
Define KERNEL_TEXT_BASE, APTE_BASE, and KERNEL_VM_BASE in terms of
...
KERNEL_BASE.
2002-03-23 02:35:24 +00:00
thorpej
f0d2ad4c95
Slignt cleanup.
2002-03-23 02:33:38 +00:00
thorpej
bf1bc7a9f5
Define KERNEL_TEXT_BASE, APTE_BASE, and KERNEL_VM_BASE in terms of
...
KERNEL_BASE.
2002-03-23 02:30:29 +00:00
thorpej
e5acae884b
Define KERNEL_TEXT_BASE, APTE_BASE, and KERNEL_VM_BASE in terms
...
of KERNEL_BASE.
2002-03-23 02:28:42 +00:00
thorpej
0ba36d6f6f
* Rename PROCESS_PAGE_TBLS_BASE -> PTE_BASE
...
* Rename ALT_PAGE_TBLS_BASE -> APTE_BASE
* Garbage-collect PAGE_TABLE_SPACE_START
2002-03-23 02:22:56 +00:00
reinoud
89400b4aab
Allthough this patch doesn't look that much it adds a few things that were
...
on the port-acorn32's TODO list for quite some time :
- when the serial console is selected, don't exclude the screen
alltogether; currently the keyboard is still not attached but that might be
a configuration problem in the GENERIC console or a failure to explicitly
connect to a wsmux. This needs further investigation.
- create a framework for the display memory writeback on vsync for
StrongARM processors since they don't have a write-trough cache. This is to
solve the lazy screen update that is very evident in single user mode on
these processors; the cache isn't flushed/written back that often and parts
of the screen can thus be resident in the cache but not written out to
memory yet.
- clean up some loose ends in the code.
2002-03-23 02:00:26 +00:00
thorpej
b326238b01
Remove redundant #ifdef _KERNEL
2002-03-23 01:56:31 +00:00
wrstuden
27d8692678
Add support for storing NetBSD file system type codes inside of
...
an Apple Partition entry. As proposed to port-macppc. Also some
prototype modernization for touched routines.
Method is that NETBSD, NETBSD/MACPPC, NETBSD/MAC68K partitions,
if they have a valid bzb, contain all of the info we shove in a NetBSD
disklabel partition entry. defines in disklabel.h cover aliasing
some of the bzb fields.
2002-03-23 01:29:35 +00:00
itojun
714618fb98
fix arg to bcmp() - need to compare 15 bytes, not 3 bytes. sync w/kame
2002-03-23 00:43:59 +00:00
mjacob
6424bafe73
kern/16014- if we do an 'mt offline', make sure we've allowed the tape
...
to be ejected (PR_ALLOW). This got nuked in a previous change.
2002-03-22 21:39:36 +00:00
jdolecek
dd94bff875
invoke setregs hooks correctly, as in sys_execve()
...
Problem noted and fix tested by Eduardo Horvath
2002-03-22 21:36:46 +00:00
leo
7c8d16d63f
Also find swap partitions in a (possibly embedded in AHDI) NetBSD label on
...
the disk.
2002-03-22 21:29:23 +00:00
leo
7b23fbe29a
Add code for reading NetBSD disklabels.
2002-03-22 21:27:58 +00:00
shiba
f819f78977
fixed attach fail intvid in PowerBook Duo 210,230.
...
these machine works with multi user mode.
References:http://developer.apple.com/techpubs/hardware/Developer_Notes/
Macintosh_CPUs-68K_Portable/PowerBook_Duo_System.pdf
http://developer.apple.com/techpubs/hardware/Developer_Notes/
Macintosh_CPUs-68K_Portable/PowerBook_150.pdf
Submitted: Daishi Kato <daishi@axlight.com>
Tested: Kazuyuki Inanaga <happyday@pp.iij4u.or.jp>
2002-03-22 20:10:28 +00:00
drochner
b8d0641b68
iadd subclass codes from the 2.3 spec
2002-03-22 20:03:20 +00:00
jdolecek
225f07a8d4
Make sure file descriptor is properly FILE_UNUSE()d in error case
...
of writev(2).
Problem found by Alistair G. Crooks.
2002-03-22 18:58:59 +00:00
christos
b7acd59d13
Add more debugging code.
2002-03-22 18:41:40 +00:00
christos
0a4f1c3d8f
sync with current reality and fix debugging.
2002-03-22 18:39:23 +00:00
christos
65fc8539e4
gc debugging printfs.
2002-03-22 17:14:18 +00:00
christos
c8f14c1d44
remove debugging printf.
2002-03-22 16:41:23 +00:00
christos
8b2467a1e9
nuke mmap2, cleanup mmap, add mprotect
2002-03-22 15:21:28 +00:00
christos
5681411206
regen
2002-03-22 15:19:53 +00:00
christos
b3c32e7e6d
nuke mmap2, add mprotect
2002-03-22 15:19:43 +00:00
christos
99ff14c9f3
regen
2002-03-22 15:18:48 +00:00
christos
45af46eb53
add mprotect, nuke mmap2
2002-03-22 15:18:13 +00:00
christos
b9a0007d1d
regen
2002-03-22 15:17:17 +00:00
christos
190ffecb97
add mprotect, nuke mmap2
2002-03-22 15:17:04 +00:00
christos
7359db6620
regen
2002-03-22 15:16:14 +00:00
christos
24e38ed8f3
nuke mmap2 add mprotect
2002-03-22 15:16:02 +00:00
christos
f7f4206314
regen.
2002-03-22 15:15:08 +00:00
christos
2b9a2aabe8
nuke mmap2, add mprotect
2002-03-22 15:14:55 +00:00
christos
92945f57fe
regen
2002-03-22 15:11:23 +00:00
christos
22111899d0
1. make sure lines don't wrap
...
2. fix mmap and call it mmap like other ports do, not mmap2
3. implement fcntl64
4. implement mprotect because linux treats args slightly differently.
2002-03-22 15:10:38 +00:00
christos
b02cb6b16f
implement the locking calls for linux_file64.
2002-03-22 14:54:49 +00:00
christos
3b57c6607c
- obey FILE_USE and FILE_UNUSE
...
- don't assume that non sockets point to vnodes.
2002-03-22 14:53:26 +00:00
christos
2df30ebb25
linux passes the 6th argument in %ebp; handle that so that we can get mmap2
...
working. Also tell us which syscall has too many args. Thanks Frank!
2002-03-22 14:49:37 +00:00
reinoud
12d0f60218
If the serial console is asked for then dont forget to define the function
...
prototype for connecting the serial console....
2002-03-22 13:32:51 +00:00
martin
524c49ba6a
Fix some handle/tag confusion. This makes it compile on sparc64 again.
...
Since sparc ignores tag's (/brick sparc) this slipped through when testing
on sparc.
2002-03-22 11:52:07 +00:00
darrenr
256089809f
Return EFBIG from mmap() if we try to map too much data and in the fixed
...
address allocation, return EOVERFLOW to match with the non-fixed error.
2002-03-22 11:06:33 +00:00
martin
9cea4a0ab0
Bring the daic driver into the new ISDN world order.
...
Enable active card support in the ISDN subsystem. (Had been disabled since
it couldn't be tested before.)
2002-03-22 09:54:15 +00:00
takemura
db078facf1
Added Vrc4172 USB OHCI for Pencentra 130.
2002-03-22 09:18:07 +00:00
itojun
bd5373f4e2
no need to check in_broadaddr/IN_MULTICAST in dropwithreset label.
...
suggested by enami
2002-03-22 04:31:01 +00:00
chs
0f2018fc31
in lfs_write(), flush and invalidate any page cache pages in the range
...
that we're about to modify. this weak attempt at coherency is enough
to make some applications (eg. "tail -f") happy, so it's worth having.
2002-03-22 03:57:35 +00:00
chs
72c455ce83
in genfs_compat_getpages(), clear any part of a page that
...
VOP_READ() doesn't fill in (eg. because it's past EOF).
2002-03-22 03:51:51 +00:00
itojun
1f14081709
make sure we don't touch "ip" in IPv6 path
2002-03-22 03:21:13 +00:00
mjacob
d76d04685a
Handle Port Unavailable the same as Port Logout (i.e., send a LIP).
...
Unconst pointer to f/w in the ispdv structure. Too many compilers get
unhappy over our walking the array. Make casts as appropriate so that
initialization in structure is still happy.
Limit length of fabric to 256. This will all go away soon.
Do a cleaner case of keeping multiple CPUs/threads from reading the
same response queue entries.
2002-03-22 02:34:05 +00:00
mjacob
2c3c2f2ca0
Cast for now non-const in ispdv structure.
2002-03-22 02:31:09 +00:00
mjacob
ff9ae73488
Forced commit so that some more detail on the previous patches can be
...
inserted into comments. I really think that more testing was required,
but Christos was eager.
+ Add in tape block/file position reporting support.
+ Change the prevent/allow ejection code so that if the device
is close the tape can be ejected. This allows robots to eject
the tape even if the tape isn't at BOT.
+ Don't do a null filemark write if we're reading block position. This
was such an abysmal performance killer that it had to go. Assume
that the tape will DTRT and tell you what the tape position really is
including any buffered data. You are depending on the tape to do
the right thing to report position at all, so the risk factors don't
increase appreciably here. BTW- we only do this for logical block
position. For 'hardware' block position, we still flush.
+ Some substantial tweaking in st_interpret_sense. This essentially duplicates
the FreeBSD driver's exception handling code. This is to try and correctly
handle EOM cases. I'm not sure that this is now correct with respect to
the ENABLE EARLY WARNING code- I hadn't gotten around to validating that.
Add in full 32 bit residuals- this can then be available to an update
MTIOCGET in the future.
+ Make sure we handle SKEY_VOLUME_OVERFLOW correctly.
2002-03-22 02:03:30 +00:00
fredette
72eb42a61e
Added files.c to SRC_sa.
2002-03-22 00:30:06 +00:00
fredette
3ba7f2074a
Added missing DEV_ constants.
2002-03-22 00:28:55 +00:00
fredette
6db09399a0
Added bits to use the console code under sys/arch/sun2 and
...
sys/dev/sun.
2002-03-22 00:28:08 +00:00
fredette
d2550b2ba7
Added the console and zs code now found under sys/arch/sun2.
2002-03-22 00:25:56 +00:00
fredette
5268abfc97
sc_btype has been removed from struct bwtwo_softc.
2002-03-22 00:24:45 +00:00
fredette
453e503b32
Added support for the sun2 zs serial ports. As this driver
...
is very common on Suns, it could be made shared under sys/dev/sun.
2002-03-22 00:23:53 +00:00
fredette
ae1f6b9ea8
Added bits to complete the sun2 console code. These are
...
virtually identical copies of files under sys/arch/sparc/dev,
and one day they will be merged under sys/dev/sun.
2002-03-22 00:22:43 +00:00
fredette
d617871b0c
On the m68000, if and only if gcc doesn't seem to know
...
where libgcc.a is, fall back to one under DESTDIR.
2002-03-22 00:17:12 +00:00
fredette
d564a038af
Fixed a possible overflow bug in the timeout calculation.
2002-03-22 00:15:21 +00:00
fredette
8fbc2e1699
Changed some preprocessor tests for SUN4 to test for !SUN4U
...
instead. Now this file can be used by the sun2 port.
2002-03-22 00:14:37 +00:00
fredette
9b70a4cc11
Added Sun common kbd_reg.h, kbio.h, and vuid_event.h files.
2002-03-22 00:11:55 +00:00
petrov
9305f3556c
Remove excessive declarations.
2002-03-21 22:50:09 +00:00
ragge
c034dd5209
Inline functions that mostly do not need to be called. Partly
...
rearrange/change the code to be able to avoid some inefficient functions.
Profiling shows that the time spent in pmap now is decreased by 20%. (!)
2002-03-21 22:08:08 +00:00
eeh
9c8153181f
Do not even bother trying to use the mappings provided by the PROM.
2002-03-21 21:33:57 +00:00
christos
d9ada7eabf
Don't bitch if we don't have support for a particular arch. This makes it
...
easier to include this header from userland binaries [sysctl] on archs that
don't support compat-linux without incurring ifdef hell.
2002-03-21 13:23:48 +00:00
kent
4c9cd8bc91
Apply a patch by Mark Davies.
...
http://mail-index.netbsd.org/port-i386/2002/03/18/0000.html
Check codec status in auich_read/write_codec().
2002-03-21 09:17:20 +00:00
itohy
a56d289043
I have Prism2 with 0.8.2 firmware, and have no problem
...
using WEP without promisc on the device.
2002-03-21 07:31:37 +00:00
petrov
8805e1b92d
Not needed debug stuff deleted.
2002-03-21 06:56:31 +00:00
isaki
fa9ce0dedb
Fix previous commit. modifying cc is only when factor_denom > 1.
...
reviewed by kent@netbsd.org
2002-03-21 05:22:24 +00:00
itojun
0c85427e40
remove unneeded #if
2002-03-21 04:41:03 +00:00
uwe
bf8a9d7f0d
Fix cast in sbus_promaddr_to_handle().
2002-03-21 04:32:25 +00:00
itojun
53a52c0ad8
pfkey statistics was presented in wrong direction.
2002-03-21 04:23:36 +00:00
uwe
284be9ba0c
Remove struct ebus_dmac_reg to discourage indiscriminate usage of
...
BUS_SPACE_MAP_LINEAR on sparc64. Requested by eeh.
2002-03-21 04:15:29 +00:00
itojun
418fefdef0
remove a function no longer in use
2002-03-21 04:10:21 +00:00
uwe
fe61b5717e
Drop BUS_SPACE_MAP_LINEAR and properly bus_space_*-ify this so that it
...
uses accessors. Requested by eeh.
2002-03-21 04:09:27 +00:00
uwe
2837da095f
PROM patches for JavaStation-1.
2002-03-21 04:04:12 +00:00
enami
4aaba8dea1
- Allocate enough space to hold an object.
...
- No need to request to zero clear when we overwrite soon.
2002-03-21 03:26:55 +00:00
itojun
900347e4d0
comment wording
2002-03-21 02:27:50 +00:00
itojun
8cbb556660
protect in6pcb queue operation by splnet, as pcb queue will be touched
...
by in6_pcbpurgeif() under splnet.
2002-03-21 02:11:39 +00:00
eeh
e9c8c1eee3
Add missing semicolon.
2002-03-21 01:19:41 +00:00
eeh
ecdc1104a9
Add missing brace.
2002-03-21 01:18:42 +00:00
eeh
e6bf9fbdd2
Cleanup.
2002-03-21 01:17:08 +00:00
eeh
7fba99a774
Cleanup.
2002-03-21 00:48:43 +00:00
eeh
a1649fc334
Parenthesise macro arguments.
2002-03-21 00:43:42 +00:00
eeh
0cb6a3a2a5
Add bus_space_vaddr().
2002-03-21 00:30:41 +00:00
eeh
85c03d9775
Properly bus_space_*=ify this so it uses accessors.
2002-03-21 00:25:41 +00:00
eeh
943373dde4
Use bus_space_vaddr().
2002-03-21 00:18:36 +00:00
eeh
86ff330657
Fixup attachment code to use sbus_promaddr_to_handle() and not specify
...
BUS_SPACE_MAP_LINEAR.
2002-03-21 00:16:15 +00:00
thorpej
6440db6488
* Add a NetBSD Vendor Class Identifier option as proposed on tech-net
...
in message <20020216172527.C23901@dr-evil.shagadelic.org>.
* Print the bootp/dhcp response, as is done for rarp/bootparam
responses.
* Nuke bootp_flags and BOOTP_PXE; they're not used, nor should they be.
2002-03-20 23:10:39 +00:00
thorpej
df292ba439
Add a NetBSD Vendor Class Identifier option as proposed on tech-net in
...
message <20020216172527.C23901@dr-evil.shagadelic.org>.
2002-03-20 23:07:37 +00:00
itojun
007db8b52a
remove obsolete comment
2002-03-20 22:47:59 +00:00
eeh
87eac0acc3
Use bus_space_vaddr().
2002-03-20 20:41:35 +00:00
eeh
686c857e16
Get rid of unnecessary BUS_SPACE_MAP_LINEAR.
2002-03-20 20:39:15 +00:00
gmcgarry
bf49f00fe6
Use host tool elf2ecoff if available.
2002-03-20 20:18:00 +00:00
gmcgarry
dd71debbae
Test for USETOOLS properly.
...
cVS: ----------------------------------------------------------------------
2002-03-20 20:15:18 +00:00
ross
6a723063ac
nonfunctional warning fix: use canonical indirect call syntax
2002-03-20 20:06:51 +00:00
eeh
fbce8217dd
Oops. Missing semicolon.
2002-03-20 19:32:42 +00:00
eeh
47ef6a5146
Overhaul bus space.
...
bus_space_handle_t now holds an address and two ASIs, one for normal accesses
and one for streaming accesses. This allows to map individual handles
different ways, so some can use MMU bypass accesses and others use virtual
addresses. bus_space_map() will now create handles that use bypass accesses
unles BUS_SPACE_MAP_LINEAR is passed in. So only pass in BUS_SPACE_MAP_LINEAR
if you absolutely *need* to use bus_space_vaddr(). This removes at least one
extra level of indirection and should reduce TLB misses.
32-bit kernels have problems accessing 64-bit addresses, so they always use
virtual addresses.
2002-03-20 18:54:46 +00:00
eeh
bd48e83999
DDB_ONPANIC now needs a number.
2002-03-20 18:43:53 +00:00
eeh
bd22d9d0f1
Add PTE_WIRED bit to keep track of wired pages.
2002-03-20 18:41:53 +00:00
eeh
8ccad96d54
Add sbus_promaddr_to_handle() to convert a prom address to a bus_space_handle_t.
2002-03-20 18:39:44 +00:00
christos
36244cee28
kill PS_STRINGS, STACKGAPBASE_UNALIGNED, STACKGAPBASE
2002-03-20 18:00:07 +00:00
christos
7e277b5782
kill remaining PS_STRINGS instances.
2002-03-20 17:59:22 +00:00
eeh
8ea2c88ec2
Clean up bus space a bit. XXX is sc_buffer ever actually used after it's
...
mapped in?
2002-03-20 17:59:16 +00:00
eeh
ddbdd7fa41
Don't use BUS_SPACE_MAP_LINEAR if you don't need to.
2002-03-20 17:57:33 +00:00
eeh
ef4ff79f61
Use bus_space_vaddr() correctly. (XXX do we really need this?)
2002-03-20 17:52:41 +00:00
christos
e88e90e3bf
use 64 signals.
2002-03-20 17:50:07 +00:00
thorpej
1a69060597
When getting the packet off the interface, make sure the payload is
...
aligned after the Ethernet header.
kern/15982, Hiroyuki Bessho <bsh@grotto.jp>
2002-03-20 17:42:23 +00:00
eeh
e0866470d8
Use bus_space_vaddr() correctly. Ugh.
2002-03-20 17:34:23 +00:00
eeh
67d8d816ca
Use bus_space_vaddr() correctly. (Why use bus_space_vaddr() at all?)
2002-03-20 17:32:23 +00:00
christos
ce4e71d1b0
New mouse code from Peter Seebach.
2002-03-20 17:06:51 +00:00
augustss
85fc920f4f
Define uvscom_acvtivate() according to prototype.
2002-03-20 16:39:39 +00:00
joda
0624e7fe7a
add HTT cpu flag, and further split message
2002-03-20 15:59:26 +00:00
christos
e5160e810e
Add the ability to report file number/block number. From Matt Jacob.
2002-03-20 14:53:59 +00:00
christos
748ed9bd8f
put back NSIG=64 for userland. It is not nice to have programs report
...
unknown signal %u or coredump when they try to report a signal out of
range.
2002-03-20 14:30:11 +00:00
tron
a15356aae8
Don't expose the increased number of signals to the userland because the
...
required userland support e.g. in "libc" is not in place yet. This fixes
crashes in "ksh" but any other program which uses "sys_siglist".
2002-03-20 14:10:20 +00:00
ad
9c918242a2
Add missing structure member copies in wsfont_add0().
2002-03-20 12:18:56 +00:00
lukem
7fedb7d335
add missing prototype for uvscom_activate()
2002-03-20 03:20:10 +00:00
chs
fb88d3b0ba
add missing cache flushes in pmap_protect(). fixes PR 15965.
2002-03-20 02:50:19 +00:00
christos
50981e06bc
emulation specific sysctls. Also change the kernel date to nov 11 as requested
...
by bad.
2002-03-20 00:27:58 +00:00
christos
195539260e
emulation specific sysctls.
2002-03-20 00:27:25 +00:00
christos
2aae331e69
add es_sysctl for emulation specific sysctls.
2002-03-20 00:26:33 +00:00
christos
c5f93c4fac
new emulation specific sysctls.
2002-03-20 00:23:46 +00:00
thorpej
c0d66944db
Make sure we override any optimization options specified by the
...
user; the boot blocks don't work when built with e.g. -mcpu=i486
(probably due to how branches are aligned in that case, causing
segment boundaries to be crossed).
2002-03-19 22:03:37 +00:00
bouyer
9a2eeadc6c
Regen: add AMD768 devices
2002-03-19 22:03:06 +00:00
bouyer
54c7295e52
Add AMD768 devices, from
...
http://members.hyperlink.net.au/~chart/download/pcidevs.txt
2002-03-19 22:02:36 +00:00
christos
bda4b15e05
- Now that RT-signals fit, fix the array to deliver them. [i386 only].
...
- jdk-1.4 works perfectly now. :-)
2002-03-19 20:51:59 +00:00
christos
225441db6e
- Define SIGRTMIN and SIGRTMAX iff _KERNEL.
...
- Bump the number of signals to 64, and define the default action for
signals >= SIGRTMIN to be kill.
2002-03-19 20:50:41 +00:00
martin
4a7710e8d9
Fix a long standing confusion between n_mgm_command and mph_command_req
...
by removing the former completely.
This makes isdntrace work again.
2002-03-19 20:10:45 +00:00
eeh
c34c58d78e
Using PSR_PIL in conjunction with the IPL results in a comparison that is
...
always true.
2002-03-19 19:47:57 +00:00
briggs
14bcbc0e29
Ignore cpu_sleep() if called with anything other than ARM_SLEEP_MODE_IDLE.
2002-03-19 19:41:57 +00:00
eeh
7a49cca31a
Fix up compiler options:
...
1) Get things right for 32-bit kernels
2) Always use medium any memory model for 64-bit kernels for the moment.
2002-03-19 18:10:33 +00:00
drochner
b40bbc753e
work around a pc-relative jump optimization in early startup
2002-03-19 17:59:04 +00:00
augustss
1a42566bd8
Add uvscom.
2002-03-19 15:19:43 +00:00
augustss
2448d257af
Add uvscom driver. Untested.
2002-03-19 15:10:21 +00:00
augustss
ea41085783
Add driver for SUNTAC Slipper U VS-10U serial devices.
...
Written by Shunsuke Akiyama <akiyama@jp.FreeBSD.org>. From FreeBSD.
2002-03-19 15:08:42 +00:00
augustss
b9300aa49f
Regen.
2002-03-19 15:07:23 +00:00
augustss
d79c559262
Add some devices. From FreeBSD.
2002-03-19 15:07:05 +00:00
christos
9c8babbd46
Drop connections to the broadcast address. From BUGTRAQ. This is a security
...
issue because it can by-pass ipf rules unintentionally.
2002-03-19 14:35:20 +00:00
briggs
d099df10f4
Use obio_bs_rr_1.
...
In obio_bs_map(): Create a mapping for regions that are not in the
standard on-board I/O space.
2002-03-19 01:36:13 +00:00
itojun
d31217b639
check sa_len and sa_family strictly. (NOTE: rtsol/rtsold older than Nov2001
...
will stop working, upgrade them first)
2002-03-19 01:21:19 +00:00