fvdl
f11e75d5f6
Remove comparison of u_int8_t value to (512 - a few bytes), since it's
...
always false. As found by gcc-current.
2002-12-16 18:27:20 +00:00
jdolecek
94062cc04a
add support for optional arch-specific restriction of valid value
...
for kern.maxproc
2002-12-16 18:15:18 +00:00
pk
c2ddc52f2d
The cache flush routines now take a CPU context parameter. This is going
...
to be necessary in SMP kernels.
2002-12-16 16:59:09 +00:00
pk
b036b089a7
Multiple inclusion protection.
2002-12-16 16:24:40 +00:00
fvdl
4bd73a650e
Remove leftover declarations used for debugging purposes only.
2002-12-16 16:22:50 +00:00
jdc
0a3a2262cb
Increment version number for match function and Cycle 5 IP changes.
2002-12-16 13:02:58 +00:00
jdc
079b83cafa
Extend the matching routine to take a function pointer, so that additional
...
(arbitrary) matching can be done.
Add match function and patch for Cycle 5 IP (Sparc 5 clone).
Reviewed by Uwe.
2002-12-16 13:01:01 +00:00
thorpej
6ff0a8ba21
Initialize pools in pmap_init(); the low-water mark must be set when
...
it is safe to allocate pages via the normal mechanism.
2002-12-16 07:18:30 +00:00
thorpej
7affeb0071
Add support for RAS (initially added by me on nathanw_sa branch).
2002-12-16 02:15:58 +00:00
thorpej
9ad045c958
Use MI setrunqueue()/remrunqueue().
2002-12-16 01:56:47 +00:00
martin
ae7d5baab6
Fix pasto - make it compile for !MULTIPROCESSOR
2002-12-15 23:01:09 +00:00
jmcneill
ee462f15e8
Another sizeof -> 4 + 2048 fix for dvd_read_manufact after malloc changes
2002-12-15 17:48:14 +00:00
jmcneill
675603655c
In dvd_read_disckey, sizeof(buf) is no longer '4 + 2048' after the
...
malloc change. Replace 'sizeof(buf)' with '4 + 2048' -- this makes
dvd_read_disckey work properly again.
2002-12-15 17:43:50 +00:00
pk
9313f9570d
Disable `unimplemented flush' traps during boot. Keep it disabled on
...
non-MULTIPROCESSOR kernels.
2002-12-15 15:01:08 +00:00
takemura
e9628b7102
Added Vrc4173PIU. (touch panel interface unit on Vrc4173)
2002-12-15 09:24:24 +00:00
takemura
564a7fd556
Changed SCALE value from (1024*1024) to (1024*256) to support large (1024<)
...
sample values.
2002-12-15 09:17:07 +00:00
fvdl
74fe783bef
Avoid using a lot of kernel stack.
2002-12-15 01:56:02 +00:00
fvdl
530a60a1e0
Don't waste too much kernel stack space on (infrequent) ioctl operations,
...
use malloc instead for temp space.
2002-12-15 01:55:44 +00:00
manu
b8a9df5e21
FIrst attempt at mach ports and rights, which are needed if we ever want
...
to implement messages between kernel and userland.
While we are there, cleanup some debug messages.
2002-12-15 00:40:24 +00:00
pooka
a2e85e2b1c
Silly me for assuming that the CT5880 cards could be identified by looking
...
at which ones had the Product ID CT5880. Try to get the checks right now.
Also add ES1373_8 to the list.
2002-12-14 17:52:47 +00:00
christos
cc079cff49
release the kernel lock if trace_enter fails.
...
XXX[1]: We need to fix all platforms that do this.
XXX[2]: x86 does not check for MPSAFE syscalls before grabbing the lock.
2002-12-14 14:52:24 +00:00
fvdl
b2622c34d6
In syscall_fancy(), drop the kernel lock if trace_enter fails.
...
From Nick Hudson.
2002-12-14 14:40:36 +00:00
yamt
a79cb6db43
- in lfs_bwrite_ext, if we're cleaner,
...
mark inode IN_CLEANING rather then IN_MODIFIED.
otherwise cleaned (indirect) blocks belongs to the inode isn't written
until next sync.
- add assertions.
2002-12-14 13:41:25 +00:00
yamt
e5ea55e4ea
in lfs_writefile, check v_type==VNON earlier.
...
to avoid null dereference with DEBUG_LFS_VERBOSE.
2002-12-14 11:54:47 +00:00
junyoung
16c0ce8d78
Fix comment.
...
De-__P().
2002-12-14 09:46:36 +00:00
junyoung
058737862e
Now that gdt_compact() is gone, #if 0'ed gdt_shrink() doesn't need to be
...
here, either. Remove other #if 0 code as well.
2002-12-14 09:38:50 +00:00
tsutsui
e0481a14c5
Change type of dumpmag from u_long to u_int32_t to sync with other ports.
2002-12-14 05:23:19 +00:00
christos
fa65bb7322
Add /dev/twex support. To be used with FreeBSD's 3dmd.
...
Initial port from Masaru OKI <oki@netbsd.org>, with KNF, memory leak fixes,
denial of service problems, and null pointer fixes from me.
2002-12-13 23:31:32 +00:00
christos
0cc4fbf335
add twe control device
2002-12-13 23:26:47 +00:00
fredette
856e98cd30
bcopy -> memcpy, bzero -> memset
2002-12-13 20:44:44 +00:00
drochner
9ab86cb8ae
do a TBIAS after modifying cache enable bits
2002-12-13 18:52:56 +00:00
drochner
b36fe906bf
scatter some pmap_update(pmap_kernel()) to reduce differences to other ports
2002-12-13 18:50:22 +00:00
drochner
53cb6b767d
use <net/netisr_dispatch.h>
2002-12-13 18:49:35 +00:00
fvdl
8cbcf0f7a3
Remove check for 32bit-only access of the old syscall path.
2002-12-13 17:44:13 +00:00
yamt
8fe8a4ced8
save a segment write when doing checkpoint.
2002-12-13 14:40:02 +00:00
scw
173ca7d4d0
Add support for i830/i845 agp. From Shingo WATANABE (on tech-x11) and
...
FreeBSD, with cleanup/KNF by me.
Note: These chipsets are not well supported by the i810 driver in
NetBSD's in-tree xsrc (based on XFree86 4.2.1 at this time). However,
the driver works perfectly using bleeding-edge XFree86-current on my
Omnibook's i830MG with these agp changes.
2002-12-13 11:32:50 +00:00
jmc
e627b7fefc
Improve performance with disks almost 60x by redoing the callback handler to
...
accept ranges as well as single addresses. Still need to go through any key
areas and remove the malloc's and replace these with some sort of pooling
instead.
2002-12-13 07:47:52 +00:00
fvdl
81a877b0f1
Restore all registers at sigreturn.
2002-12-13 02:52:10 +00:00
lukem
7f7f9da211
minor delint
2002-12-13 02:36:37 +00:00
manu
530e1a6b60
Added thread_switch and some bits of Mach semaphores
2002-12-12 23:18:20 +00:00
fvdl
ac22ef18d8
Remove redundant cli/sti instructions. From Enami Tsugutomo.
2002-12-12 21:39:33 +00:00
jdolecek
300acddf8c
don't allow kern.maxproc bigger than PID_MAX - PID_SKIP; the pid allocation
...
code in fork1() would enter endless loop if all the allowed pids are taken
by running processes
2002-12-12 20:54:58 +00:00
jdolecek
d18332248c
replace magic number '500' in pid allocation code with a macro PID_SKIP,
...
defined in <sys/proc.h> (along PID_MAX, NO_PID)
2002-12-12 20:41:45 +00:00
christos
61b8a488ba
Add empty shells of new functions so we can keep compiling.
2002-12-12 17:42:10 +00:00
christos
09e9a5cde9
This new file is wanted by compat_darwin.
2002-12-12 17:41:53 +00:00
christos
c9498dd93c
add missing dependency.
2002-12-12 17:41:19 +00:00
christos
ebad7fe0c2
always prototype mach message support.
2002-12-12 17:40:55 +00:00
christos
80564fa341
always compile in mach ktrace support; it is to small to bother.
2002-12-12 17:40:40 +00:00
masuda
91481144ea
Now that OpenBlockS code lives in evbppc, this directory is no longer needed.
...
OK'd by masuda.
2002-12-12 13:54:43 +00:00
masuda
edba4e9dbc
Added some descriptions of OpenBlockS products just for your information.
2002-12-12 13:45:27 +00:00
masuda
8d55809f2f
Description file for OpenBlockS S and R.
...
Those products are shipped from Plat'Home Inc.
See http://www.plathome.co.jp/
2002-12-12 12:51:37 +00:00
yamt
275b3a47a2
correct DIAGNOSTIC code for duplicated inodes in a segment and su_nbytes.
2002-12-12 12:28:13 +00:00
pk
f4fe3fda21
dumpsys(): Use pmap_kremove() to unmap pages mapped pmap_kenter().
2002-12-12 09:34:04 +00:00
manu
98bc8767ae
Bug fixes:
...
- In case of ailure in the child, kill the child and wakeup the parent
- Do call child_return
- The src and dst args were mixed up when copying regs 0-31 to the trapframe
This makes pthread_create(3) fully working (test program works).
2002-12-12 08:23:27 +00:00
manu
66a29c52af
Added a few Mach traps: mach_boostrap_register, mach_port_set_attributes,
...
mach_port_move_member, mach_port_set_attributes, mach_task_set_special_port,
(none do anything)
Added mach_thread_create_running, which creates a new Mach thread. It
provides the register context of the new thread. We use it in a child
function provided to fork1(). The child function is machine dependent and
is not yet implemented for i386.
The new thread crashes quickly, but at least it starts.
2002-12-12 00:29:23 +00:00
abs
39387a63f4
Define nofile and maxuprc variables (set to NOFILE and MAXUPRC), so they can
...
be patched in a compiled kernel.
2002-12-11 23:23:45 +00:00
abs
603a2bdd3d
Allow NOFILE to be overridden in kernel configs, similar to MAXUPRC
2002-12-11 23:22:03 +00:00
jdolecek
9cdaccbbdd
regen: add Madge Networks Smart 16/4 PCI Ringnode Mk2 entry
2002-12-11 21:35:19 +00:00
jdolecek
62c201e271
add Madge Smart 16/4 PCI Ringnode Mk2 entry
2002-12-11 21:34:36 +00:00
manu
39e39a5b0f
Added vm_inherit mach trap.
2002-12-11 21:23:37 +00:00
jdolecek
0c7b52a284
linux_sys_mknod(): if creating device file (i.e. !fifo case), mask
...
the passed device number to only contain lower 16 bits; older glibc
appears to pass some junk in upper bits sometimes, resulting in incorrect
device entries being created
Problem initially analyzed by Thor Lancelot Simon.
2002-12-11 19:30:39 +00:00
manu
4d607adf4f
Load __OBJC and ____CGSERVER sections of Mach-O binaries as __TEXT.
2002-12-11 19:28:41 +00:00
jdolecek
5fd22809a5
Add kern.forkfsleep sysctl - set/get time (in miliseconds) for which
...
process would be forced to sleep in fork() if it hits either global
or user maxproc limit. Default is zero (no forced sleep).
Maximum is 20 seconds.
2002-12-11 19:14:34 +00:00
atatat
7ede0eeb03
Provide a ioctl called FIOGETBMAP (there are some who call
...
it...FIBMAP) that translates a logical block number to a physical
block number from the underlying device. Via VOP_BMAP().
2002-12-11 18:25:03 +00:00
jdolecek
f13ab92159
put back portion of fork-bomb protection removed in last commit,
...
and make the sleep length depend on value of variable forkfsleep;
it's set to zero by default (no sleep)
this is a preparation for making the sleep length settable via sysctl
2002-12-11 18:09:07 +00:00
jdolecek
5ea539a0c5
reserve sysctl number for kern.lwp, which is used on nathanw_sa branch
2002-12-11 17:32:53 +00:00
atatat
89b889a8a7
Always recompute the IP checksum, otherwise fast-routed packets that
...
also get natted leave with an invalid checksum which can prevent
things from working properly.
2002-12-11 16:33:11 +00:00
atatat
944cb6f8ff
Add /* MEMORY_DISK_SERVER */ comments to the #endifs to match the #ifdefs.
2002-12-11 16:24:38 +00:00
joda
86b7f22e4f
cpuid feature bit 30 is set on IA-64 (in x86 mode)
2002-12-11 13:50:14 +00:00
yamt
9097ffce96
take care of B_CLRBUF in lfs_balloc.
...
otherwise you'll see uninitialized blocks.
2002-12-11 13:34:14 +00:00
pk
047870f66e
softintr_establish(): append handler to the list for the actually choosen
...
processor interrupt level.
2002-12-11 13:21:19 +00:00
scw
5238505cfe
KERN_MAXID needs to be one more than the last sysctl. Spotted by simonb.
2002-12-11 13:12:48 +00:00
ad
42c8a17c80
Fix typo.
2002-12-11 13:02:31 +00:00
scw
39a5a9dc76
Add two sysctls: kern.labelsector and kern.labeloffset.
...
These are of use to userland code which previously depended on the
hard-coded values of LABELSECTOR and LABELOFFSET to figure out the
location of the disklabel for a particular platform.
With the introduction of umbrella ports such as evbarm, evbmips, etc,
the location of the disklabel may vary between kernels for the same
MACHINE. This sysctl will allow userland programs to remain independent
of the particular flavour of MACHINE in such cases.
2002-12-11 12:59:29 +00:00
scw
36109bbc9c
Avoid strict-alias warnings.
2002-12-11 12:13:11 +00:00
fvdl
a167f47c0c
Since a CPU may spin waiting for another CPU to handle an IPI, an
...
IPI must be the very first thing to be handled in splx(), if it
had been blocked before. Change things around a bit to guarantee
this.
2002-12-11 12:02:07 +00:00
pk
e675712f0d
* loadfile() return a file descriptor that must be closed.
...
* check the kernel size before loading
2002-12-11 10:35:06 +00:00
pk
bd20047a69
Only display the final progress counter if any of the LOAD_ flags was given.
...
Fix comment describing the return value.
2002-12-11 09:55:20 +00:00
thorpej
130e5c278b
UVM_KMF_NOWAIT -> UVM_FLAG_NOWAIT
2002-12-11 07:14:28 +00:00
thorpej
8ae922d8a7
Define a UVM_FLAG_NOWAIT, which indicates that we're not allowed
...
to sleep. Define UVM_KMF_NOWAIT in terms of UVM_FLAG_NOWAIT.
From Manuel Bouyer. Fixes a problem where any mapping with
read protection was created in a "nowait" context, causing
spurious failures.
2002-12-11 07:10:20 +00:00
junyoung
65ce86ee32
'.' was missing in license notice.
2002-12-11 05:49:34 +00:00
groo
b9df764f32
Remove portion of fork-bomb protection that has unfortunate side effects.
2002-12-11 05:01:22 +00:00
perry
c2afe21c94
Change from a hardcoded sanity check date that has to be updated by
...
hand every few years to code that uses the automatically generated
time value from config_time.h
Fixes an ancient XXX in the code.
2002-12-10 23:24:33 +00:00
bouyer
e69ba7cb79
Commit patch I sent to tech-net on 29/09/2002:
...
The driver puts the adapter in promisc mode to receive multicast addresses.
At last set the IFF_PROMISC flag so that the upper layer filters frames
that are not for us.
Sure, the real fix would be to get multicast filters working ...
2002-12-10 21:50:32 +00:00
manu
8d921b897b
Added a few traps: port_type, port_set_attributes, port_insert_member,
...
and vm_protect.
This makes Darwin's /usr/bin/telnet working
2002-12-10 21:36:45 +00:00
fvdl
e718b57a20
Silence strict-alias warning.
2002-12-10 20:56:30 +00:00
fvdl
c4045d2838
Avoid strict-alias warning.
2002-12-10 20:45:31 +00:00
fvdl
c21b595185
Use 0xff as the 'unknown processor type' (which is what Linux does).
2002-12-10 20:06:43 +00:00
atatat
7fead95d43
Remove an antiquated comment and make .depend depend on config_time.h
...
so that the depend target can properly complete now that perry has the
time to use the time.
2002-12-10 19:33:11 +00:00
fvdl
ddb412e581
Define NFS_WSIZE and NFS_RSIZE as on i386.
2002-12-10 17:57:19 +00:00
thorpej
e8cc3884de
Rename __LDPGSZ to AOUT_LDPGSZ, to accurately reflect what it is.
2002-12-10 17:14:02 +00:00
toshii
cf41cc5294
Add a couple of le32toh which were missing in the previous.
...
Pointed out by SOMEYA Yoshihiko.
2002-12-10 14:07:37 +00:00
drochner
cc12f9fb4e
remove ttydefchars declaration which was wrong anyway,
...
a correct one is now pulled in from <sys/ttydefaults.h>
2002-12-10 13:50:10 +00:00
pk
725a6aebf7
Remove the `flags' argument from bus_intr_establish().
2002-12-10 13:44:47 +00:00
itohy
6e91aedc2d
Use use WSMOUSE_TYPE_MAPLE.
...
Enable periodic GETCOND only if the mouse is enabled.
2002-12-10 13:19:10 +00:00
itohy
9cd48c7572
Use WSKBD_TYPE_MAPLE.
2002-12-10 13:18:04 +00:00
itohy
32c9c7f1cc
Add WSKBD_TYPE_MAPLE and WSMOUSE_TYPE_MAPLE for Dreamcast Maple bus devices.
2002-12-10 13:05:09 +00:00
pk
68817a2024
bus_intr_establish() signature change.
...
The additional `fast trap' argument is ignored in these drivers.
BUS_INTR_ESTABLISH_FASTTRAP and BUS_INTR_ESTABLISH_SOFTINTR are no longer used.
2002-12-10 12:24:05 +00:00
pk
db6d8afe02
bus_intr_establish() signature change.
...
The additional `fast trap' argument is ignored in these drivers.
2002-12-10 12:21:02 +00:00
pk
7007959dc1
Switch to softintr(9).
2002-12-10 12:17:35 +00:00
pk
5446e96bac
bus_intr_establish() now takes an optional `fast trap' handler argument.
...
BUS_INTR_ESTABLISH_FASTTRAP and BUS_INTR_ESTABLISH_SOFTINTR are no longer used.
2002-12-10 12:16:25 +00:00
pk
45c45fca81
intr_establish() signature change: pass NULL for the `fast trap' argument.
2002-12-10 12:13:24 +00:00
pk
fe233fdc10
The `fast trap' handlers are now pssed as an optional argument to
...
bus_intr_establish(). Allow fall-back on a regular interrupt handler if
the interrupt level must be shared with another device.
2002-12-10 12:11:21 +00:00
pk
4f62e0f7c8
* intr_establish() now takes an optional `fast trap' routine argument.
...
* also remove __P().
2002-12-10 12:04:51 +00:00
pk
6f945ab887
Allow a `fast trap' handler installation to be undone if an interrupt level
...
must be shared. This requires drivers that request the installation of
a `fast trap' handler to supply a regular interrupt handler as well to fall
back on.
The `fast trap' routine (if present) is now passed as an additional
argument to intr_establish().
2002-12-10 12:03:08 +00:00
rafal
3171f081c8
Make this work on fast platforms by making sure signals are held for at
...
least 1us. Documentation I've found for the simple (SPP) parallel port
mode says that data should be stable 500ns before STROBE, STROBE should
be pulsed for no less than 500ns, and that data should be stable another
500ns after STROBE has been de-asserted.
Makes lpt@ebus on my Sun Ultra5 work with my HP DeskJet 712C, at least in
polled mode. Thanks to Martin for astutely noting it was probably a bug
with STROBE being pulsed too quickly.
2002-12-10 07:19:25 +00:00
hamajima
764daa3585
turn off light of LCD, when I closed cover
2002-12-10 06:18:07 +00:00
thorpej
78ea2dd367
Use __LDPGSZ (which must be == USRTEXT) as the text address for a.out
...
executables, and eliminate the USRTEXT constant, which was only used
by the a.out exec code.
2002-12-10 05:14:24 +00:00
thorpej
f09fc7f074
Don't include <i386/isa/icu.h>
2002-12-10 05:05:11 +00:00
thorpej
9004406585
Error out if we get an unexpected buffer type.
2002-12-10 01:09:09 +00:00
simonb
5115869b27
Fix pickier constraints in gcc 3.3. Kernels compiled with gcc
...
"3.3 20021123" (with a small patch from Ian Dall to fix a -O2
problem) and binutils "2.13.90 20021124" now work on the pc532.
2002-12-09 23:47:47 +00:00
jmc
0215635717
Checkpoint commit:
...
1. Reduce debugging level to sane levels
2. Fix bugs in alloc_data_map related to allocing whole bytes of bitmap at
a time.
At this point the driver is functional. It talks to a local drive here and
can label/newfs. Performance is...lacking at the moment as its chewing cpu
heavily (probably due to the number of memcpy's) and will be the next area
attacked.
2002-12-09 23:42:53 +00:00
jmc
151668ce8d
Drop default debugging level to something a bit more sane
2002-12-09 23:39:18 +00:00
simonb
6a5e492b57
Remove the explicit `makeoptions MACHINE_ARCH="mipse{b,l}"' for kernel
...
builds and use the endianness of the toolchain being used to determine
the endianness of the kernel.
2002-12-09 22:54:09 +00:00
jmc
33736c059a
Ooops...Make sure for status to set error and resid before calling the
...
completion routines. Makes reads actually return data to userland now which
means I can now put a disklabel on the drive.
2002-12-09 22:28:21 +00:00
manu
1e050715ea
Stupid (but harmful) copy/paste mistake.
2002-12-09 22:28:16 +00:00
manu
9e08cf7d46
Remove debug printf (now ktrace does the job)
2002-12-09 21:53:28 +00:00
manu
6492e2171f
Added support for dumping mach messages in ktrace/kdump. While we are
...
there, KNFify a few functions.
2002-12-09 21:29:20 +00:00
thorpej
2c75f5b061
No need to depend on userland libraries here.
2002-12-09 16:30:40 +00:00
david
213339df22
Restore the cardbus config line. Cardslot is upset with pcmcia only.
2002-12-09 16:24:39 +00:00
pk
04e582df1b
setsoftint() is no longer used.
2002-12-09 16:13:58 +00:00
pk
48a30a2e35
Soft interrupts use their own set of handlers lists.
2002-12-09 16:13:23 +00:00
pk
c822c6bd84
Finish the switch to the softintr(9) framework.
...
To make this work, we now have to use separate handler lists for hardware
and software interrupts as the soft interrupt handlers do not return
an `interrupt handled' status.
Thanks to Matt Fredette for providing an initial set of patches on port-sparc.
2002-12-09 16:11:50 +00:00
perry
21bf723223
comment out/comment/move p64h2apic line.
2002-12-09 15:50:57 +00:00
ad
318c4b22be
Fix LP64 issues.
2002-12-09 15:24:28 +00:00
scw
c7eafb778a
The walnut port has been subsumed by the new evbppc port.
2002-12-09 14:57:47 +00:00
tsutsui
8c3c217b4d
cosmetics.
2002-12-09 13:38:30 +00:00
tsutsui
a92570f14c
As per discussion with soda, all EISA based Jazz machines seem to require
...
the same method to access TOD clock, so move chipset-dependent mcclock
routines to appropriate files.
This should also fix Express RISCserver and RISCserver2200 (aka R96) support
which has been broken since "struct platform" was introduced.
2002-12-09 13:36:26 +00:00
scw
95bf009dca
s/walnut/evbppc/
2002-12-09 12:56:15 +00:00
scw
0e6f5edb27
Delete walnut, add evbppc.
...
While I'm here, add sh5 and evbsh5.
2002-12-09 12:53:41 +00:00
jdolecek
d9944f3152
need -mno-abicalls in AFLAGS as well, so that .S would be compiled as
...
non-PIC same way as .c
2002-12-09 12:42:18 +00:00
scw
5b5dfad81e
Add evbppc.
2002-12-09 12:29:17 +00:00
scw
67d6f49379
Changes/additions to support evbppc.
2002-12-09 12:28:12 +00:00
jdolecek
a74b5c71e2
build with -ffreestanding
2002-12-09 12:20:56 +00:00
scw
f1d6e9e873
Add pmc.h
2002-12-09 12:17:42 +00:00
scw
5448df2eed
New umbrella-port for PowerPC-based evaluation boards.
...
The first board to be included here is the port to the 405GP-based
Walnut evaluation board, which up until now lived in arch/walnut.
arch/walnut will go away soon, once all the remaining walnut-isms
in the tree have been dealt with.
2002-12-09 12:15:48 +00:00
jdolecek
4f2661e403
add #include <lib/libkern/libkern.h> to pull in prototypes
...
for couple items which don't have implicit prototypes with -ffreestanding
2002-12-09 12:14:10 +00:00
jmc
4d74b607a2
Restructure how the at_output dma map gets setup. Ask for a dma map that can
...
support up to the max ohci descriptor segments. Then attempt to fill it in
via a load. Use the number of segments filled in as the basis for figuring
out how many descriptors to supply to the ohci DMA engine.
XXX: Still needs to account for requests which because of splits may overflow
the 6 dma descriptors available today. For now this fixes cases where a
single 512 byte write was getting split into 2 dma segments from 1 incoming
iov request
2002-12-09 09:09:54 +00:00
jmc
2a3e786250
Fix fwohci_write's sanity check against large packets. Max rec is only used
...
when writing directly to the device (ala IEEE1394_TCODE_WRITE_REQ_BLOCK).
Otherwise the largest size is determined strictly by speed
2002-12-09 07:26:02 +00:00
jmc
11b3f4e7d1
Provide a macro for turning a speed number into a max rec value
2002-12-09 07:24:57 +00:00
jmc
3d5ded55c7
Write sbp2_free_data_mapping and fix a bug where read responses weren't sending
...
back the right tlabel
2002-12-09 07:23:43 +00:00
jmc
1f133763ba
Don't need sbp2_datamapping. Each one is tracked via the associated orb
2002-12-09 07:23:24 +00:00
simonb
719522fdf3
Add "sqphy" for the PHYs on the PB1500.
...
Add a note that this kernel is for the PB1000 and PB1500 boards.
2002-12-09 06:54:25 +00:00
itojun
a02a0a383e
don't permit port spec on tunnel mode policy. sync w/kame.
2002-12-09 03:20:45 +00:00
david
6189641f30
Don't want cardbus here, since there are no devices on it.
...
Thanks to Krister Walfridsson for mentioning it.
2002-12-09 02:38:13 +00:00
martin
92fb024e28
Follow the sparc port and use the MI versions of setrunqueue and
...
remrunqueue.
2002-12-08 22:30:53 +00:00
manu
4386631757
regen
2002-12-08 21:53:57 +00:00
manu
9f6565f2bd
A working fork/vfork implementation. Darwin fork differs from our fork by
...
two ways:
- the child gets its pid as retval[0] (userland stub will turn it into a 0),
retval[1] is 1 and it is 0 in the parent.
- in the child, the fork syscall is successful, hence we must skip the next
instruction.
2002-12-08 21:53:10 +00:00
leo
e1de9af762
regen.
2002-12-08 21:33:56 +00:00
leo
cacf2eb6c2
Make things work with the new autoconf stuff:
...
- The pcibus is now called 'pcib' and the isabus 'isab'. Their attributes are
'pcibus' and 'isabus' respectively. This makes the underlying busses
attach again.
- Initialize the parent structure in the config_console() function.
Otherwise we end up without a console.
2002-12-08 21:31:35 +00:00