ichiro
913634c3a8
add product IO-DATA CBET100-CL 10/100 Ethernet
...
(OEM AboCom FE2000VX )
2003-02-01 07:50:38 +00:00
ichiro
7f5a6ef120
regen
2003-02-01 07:50:06 +00:00
ichiro
c349475c5f
add product IO-DATA CBET100-CL 10/100 Ethernet
...
(OEM AboCom FE2000VX )
2003-02-01 07:49:33 +00:00
atatat
df8c6eff19
Check for (and deny) negative values passed to FIOGETBMAP.
2003-02-01 07:23:56 +00:00
ichiro
1676e10b16
make compile
2003-02-01 06:50:42 +00:00
thorpej
9df2a1b394
Bump version to 1.6N; extensible malloc types.
2003-02-01 06:26:30 +00:00
thorpej
b193480908
Add extensible malloc types, adapted from FreeBSD. This turns
...
malloc types into a structure, a pointer to which is passed around,
instead of an int constant. Allow the limit to be adjusted when the
malloc type is defined, or with a function call, as suggested by
Jonathan Stone.
2003-02-01 06:23:35 +00:00
thomas
59b8b56225
Define Atari wskeyboard type.
2003-01-31 23:28:30 +00:00
martin
3b0f844b5d
Apply leaf procedure optimization to pseg_set (again).
2003-01-31 22:19:33 +00:00
tsutsui
3fb3009a83
Enable vga0 at isa?, and add options VGA_RESET and
...
(commented out) options VGA_RASTERCONSOLE for NEC-J96A and NEC-R96.
2003-01-31 22:11:20 +00:00
tsutsui
f9f27acbe7
Add c_nec_eisa_cons_init() for NEC-J96A and NEC-R96 which have
...
Cirrus Logic GD5428 ISA VGA console to initialize its registers properly
for generic vga(4) driver(s).
2003-01-31 22:07:52 +00:00
tsutsui
3061b2304e
Call vga_isa_cnattach() in c_jazz_eisa_cons_init() if NVGA_ISA > 0.
2003-01-31 22:01:13 +00:00
tsutsui
ef47e3f676
Changes to allow machines which don't use text mode at the boot time
...
to use generic VGA driver(s):
- Allow VGA drivers to use wsfont instead of builtin font.
- Add vga_reset() function, which will be called from MD consinit(),
to put VGA into text mode. This function is enabled by options VGA_RESET.
2003-01-31 21:57:23 +00:00
martin
1ecf66db9f
Make the pmap count resident/wired mappings on the fly instead of
...
walking the page tables whenever this information is needed.
Add an option PMAP_COUNT_DEBUG to assert the new counts and the
page table walk agree.
The old solution had very bad performance impact, for example
by the high CPU load when running top(1).
Thanks to Simon Burge for pointing at the cause of the problem and
to Valeriy E. Ushakov for optimizing my simple minded assembler code.
2003-01-31 19:05:55 +00:00
pk
8f4478d022
lance_init(): explicitly clearing the `initialisation done' bit in the
...
status register triggers an interrupt which we don't handle. Since the
driver doesn't depend on this status bit anywhere else, just leave it alone.
2003-01-31 17:40:05 +00:00
fvdl
c17467b083
Wrap 'old BSD id' warning in DEBUG ifdef.
2003-01-31 15:35:04 +00:00
kleink
0592d14111
Provide _XOPEN_SHM.
2003-01-31 11:54:48 +00:00
thorpej
12eeed2f38
Use aprint_*().
2003-01-31 05:25:57 +00:00
thorpej
da5ba38dbf
Use M_VMPMAP instead of M_HTABLE.
2003-01-31 05:24:31 +00:00
thorpej
515d52e9e7
Change ext_size to a size_t, and update the signature of ext_free.
2003-01-31 05:00:24 +00:00
thorpej
e5e7fae215
ANSI'ify.
2003-01-31 04:55:52 +00:00
thorpej
e354490475
Use aprint_*().
2003-01-31 02:15:57 +00:00
thorpej
c050d9efe1
Fix printf format from daddr_t changes.
2003-01-31 02:05:41 +00:00
mrg
2a81b2dfea
clean up a couple of SMP comments.
2003-01-31 01:26:39 +00:00
thorpej
2f060102ae
Use aprint_*().
2003-01-31 01:03:35 +00:00
thorpej
749715f6ee
Use aprint_*().
2003-01-31 00:26:25 +00:00
thorpej
7ec10e2d99
Use aprint_*().
2003-01-31 00:07:39 +00:00
thorpej
d133a4da92
M_SOOPTS -> MT_SOOPTS
2003-01-30 23:43:33 +00:00
fvdl
f26f133510
Don't deref l if it's NULL, please.
2003-01-30 22:45:20 +00:00
atatat
7a8e4b4bc4
Two small changes to the ELF exec code:
...
(1) ELFNAME(load_file)() now takes a pointer to the entry point
offset, instead of taking a pointer to the entry point itself. This
allows proper adjustment of the ultimate entry point at a higher level
if the object containing the entry point is moved before the exec is
finished.
(2) Introduce VMCMD_FIXED, which means the address at which a given
vmcmd describes a mapping is fixed (ie, should not be moved). Don't
set this for entries pertaining to ld.so.
Also some minor comment/whitespace tweaks.
2003-01-30 20:03:46 +00:00
thorpej
84855a5789
Test _KERNEL_OPT before including opt_*.h files.
2003-01-30 19:59:29 +00:00
manu
34a458238c
For cproc_t, use a per thread value instead of a per process value. ifdef
...
out l_emuldata in struct lwp until we actually use it.
2003-01-30 19:14:18 +00:00
hannken
eea2fc320e
Fix printf() problem caused by "daddr_t" change.
2003-01-30 16:33:50 +00:00
yamt
84d61a1dc4
there's no need to treat VOP_WHITEOUT as dirop
...
because it modifies only one inode.
2003-01-30 14:18:32 +00:00
martin
dc63778c66
Sparc64 already had a BUS_DMA_NOCACHE - remove one of the two definitions.
...
Fortunately the old (local) one had the same semantics as the new one.
2003-01-30 13:32:25 +00:00
pk
ac9d761168
The introduction of FAS366 support annihilated the `reselect-while-selecting'
...
workaround for the ESP100 variant.
2003-01-30 11:03:45 +00:00
matt
e680c1c1e9
Load SPRG0 with &cpu_info_store.
2003-01-30 07:46:28 +00:00
matt
161af1dd62
Add a KASSERT when copying l1->l_cpu to l2->l_cpu
2003-01-30 05:51:58 +00:00
fvdl
aa0d12cace
Use flag to indicate whether an LWP should return to userspace via
...
sysret (should it have entered through syscall), or via a plain
iret. This can be done more quicker and dirtier, but I've decided
against that for now.
2003-01-30 02:04:59 +00:00
fvdl
be932c1dc6
Add some optional debug goop.
2003-01-30 02:03:35 +00:00
fvdl
c795d68779
Add flag to indicate that an LWP should return to userspace via a normal
...
iret (not sysret).
2003-01-30 02:02:51 +00:00
matt
7253b60a31
Cast daddr_t to long so to avoid
...
"cast to pointer from integer of different size" warning.
2003-01-30 00:36:32 +00:00
matt
10a5895585
Cleanup daddr_t fallout.
2003-01-30 00:28:19 +00:00
nathanw
d2027d4d00
Fix _lwp_wakeup() so that it stands a chance of working (although it
...
turns out to be insufficent for signal-level interruption of system
calls. guess we need _lwp_kill(), ugh).
2003-01-29 23:27:54 +00:00
briggs
bd89d9c39f
Compile without DIAGNOSTIC.
2003-01-29 20:44:48 +00:00
briggs
f339e5e9fe
Get the interrupt mappings right for the slot.
2003-01-29 20:08:02 +00:00
fvdl
1ae2ac239d
Make the ld workaround work on x88_64, and add the temporary ld script
...
to CLEANFILES.
2003-01-29 18:44:47 +00:00
thorpej
2051b2d8e7
Don't set LDF_ENABLED unless the device is really okay. Noted by
...
Andrew Doran.
2003-01-29 16:50:37 +00:00
drochner
e3b243beb8
give some VM which was reserved for the UAREA but not used anymore back
...
to the user and adjust some comments (which were not accurate anyway
since NOREDZONE)
binary compatibility note: changing VM_MAXUSER_ADDRESS might influence
some sanity check in kvm_proc, where arguments on the stack are dealt
with, but it was a variable anyway and noone did care...
2003-01-29 14:12:35 +00:00
yamt
53d6eb47ee
don't use daddr_t for segment summary since it's an on-disk structure.
2003-01-29 13:14:33 +00:00
kanaoka
1cd881c271
Set RTK_ENABLE flag when it attached. This fixed multicast problem.
...
Found by FUKAUMI Naoki <naoki@fukaumi.org>.
2003-01-29 12:57:36 +00:00
atatat
bede65472d
Cull unused variables. Sigh.
...
PS - Cross compilers are cool.
2003-01-29 07:00:35 +00:00
gehenna
fbf74eae32
regen
2003-01-29 03:55:34 +00:00
gehenna
dc1b785a6e
NETGEAR FA120 (USB 2.0 Fast Ethernet Adapter)
2003-01-29 03:54:05 +00:00
simonb
0adecbd12b
Remove variable that is only assigned to but not referenced.
2003-01-29 03:06:40 +00:00
thorpej
21f51b4471
Fix a typo.
2003-01-29 00:23:24 +00:00
manu
26723dc292
lwpified sproc emulation so that it builds and works again. COMPAT_IRIX
...
now has the level of functionnality it had before SA merge
2003-01-28 23:47:42 +00:00
wiz
c8f0cb5777
eventually, not eventualy. Noted by mjl.
2003-01-28 22:52:11 +00:00
wiz
9115df8c49
success, not sucess. Noted by mjl.
2003-01-28 22:35:02 +00:00
wiz
86932ac56e
allocate, not alocate. Noted by mjl, not mjll.
2003-01-28 22:26:33 +00:00
wiz
7bd6fd354d
unknown, not unkown. Noted by mjl.
2003-01-28 22:19:22 +00:00
atatat
59b8237f5e
No need to pick a "default address" for mmap in compat code, since we
...
merely call sys_mmap() at the end anyway, and that will pick the
address for us, if it's needed.
Likewise for checking if /dev/zero is being mapped.
2003-01-28 21:57:42 +00:00
kleink
8f87fa74eb
Fix printf format warnings in previous.
2003-01-28 18:16:18 +00:00
dsl
00706969a9
Remove the 4k between code and data to increase the stack space.
...
Support for 64bit disk blocks seems to have exploded the code.
2003-01-28 16:21:58 +00:00
tron
0cbe3d790b
Use MRU negotiated with remote system as MTU. This fixes PR kern/18850
...
by Curt Sampson.
2003-01-28 15:36:38 +00:00
pk
be1188e00d
Provide locking required by the interrupt handlers running at IPL_SERIAL.
2003-01-28 12:35:31 +00:00
kent
0b153da394
_bus_dmamem_unmap():
...
Sets the specified pages cacheable again because _bus_dmamem_map() might
change them uncacheable.
The code was provided by Dhoyashiki-san in kern/19919.
2003-01-28 08:46:53 +00:00
nathanw
892c25bc38
Fix proc_representative_lwp(); a closing brace was in the wrong place,
...
which means it would return the first non-dead LWP.
Pointed out by Stephan Uphoff.
2003-01-28 02:20:35 +00:00
kent
e45b3e7121
Apply BUS_DMA_NOCACHE for the buffers in the case of 440MX. The
...
code was provided by DHOYASHIKI Shinichi in kern/19919, and
address kern/19435.
2003-01-28 02:09:34 +00:00
kent
cd7d9faeaf
Introduce BUS_DMA_NOCACHE, and bus_dmamem_map() of i386 supports it.
2003-01-28 01:07:51 +00:00
ad
6bae70db81
Also save status info in the user command packet.
2003-01-27 23:31:19 +00:00
yamt
e41d3a6f1c
make these compilable with lfs debug options.
...
(follow daddr_t change)
XXX maybe segment number should be 64bit.
2003-01-27 23:17:56 +00:00
pk
5e14aa69a8
There's a locking order issue with the scheduler and the callwheel locks
...
as ltsleep() may call callout_reset() with the scheduler lock held.
So, prevent interrupts that may take the scheduler lock while holding
the callwheel lock.
2003-01-27 22:38:24 +00:00
thorpej
ac44af9a88
Add the "ataraid" pseudo-device and the "ld" instances that attach
...
to it.
2003-01-27 22:31:12 +00:00
pk
ac1bea60c1
amap_copy: remove stray amap_unlock().
2003-01-27 22:14:48 +00:00
kleink
865868a8b1
Further printf format fixes in the wake of daddr_t.
...
Note that PRI?64 and long long int arguments aren't made for each other,
nor are %lld and int64_t arguments.
2003-01-27 21:45:52 +00:00
bouyer
a1f27a3f79
Bump WDCC_IDENTIFY timeout to 3 seconds, as required by some drives.
...
Reported by Karl Janmar <karlj@mdstud.chalmers.se> on tech-kern.
2003-01-27 21:27:52 +00:00
nathanw
01ca174f62
Call exit_lwps() from exit1() if there is more than one LWP (as
...
recorded by p_nlwps) *or* if the process was a SA process. Since
cached SA LWPs aren't counted in p_nlwps, it was possible for
them to not be cleaned up and remain on the alllwp list, pointing to a
dead proc.
2003-01-27 20:30:32 +00:00
thorpej
4155034751
G/C something left over from an earlier version of this code.
2003-01-27 20:18:11 +00:00
jmcneill
182716ac88
Attach to PNP0F03 -- makes the PS/2 mouse on this Dell work.
2003-01-27 19:18:46 +00:00
bouyer
0e0c2ae01d
Remove revision in quirk entry for TOSHIBA XM-4101TASUNSLCD. The same drive with a newer revision also fails, so assume all revisions are bad until proven otherwise. Should fix PR kern/19912.
2003-01-27 18:55:24 +00:00
thorpej
3381232270
Experimental support for RAID volumes configured by ATA "RAID" controllers.
...
Such RAID controllers are actually just IDE controllers with a BIOS that
can create RAID volumes and write the configuration info to config blocks
on the disks. The BIOS can do I/O to these volumes, and the OS must
understand the config blocks and implement RAID in software in order to be
able to use these volumes.
Only SPAN (simple concatenation) and RAID0 are supported at this time,
and writing back config blocks is also not supported at this time. Currently,
only the Promise configuration scheme is supported, although supporting
the Highpoint scheme should not be too difficult.
In any case, this is sufficient to use the Promise RAID0 volume (thus
preserving the win2k AS installation) on this new Intel server I have.
Thanks to Soren Schmidt for doing the work in FreeBSD; it made this
task much easier. The config block parsing code is adapted from his
work.
2003-01-27 18:21:23 +00:00
tsutsui
fbe7c30306
Remove trailing whitespace.
2003-01-27 15:33:36 +00:00
tsutsui
934e3c5a47
Set a value for MISCOUT register correctly in vga_setup_regs().
2003-01-27 15:27:44 +00:00
tsutsui
289b9289f3
const'ify.
2003-01-27 15:22:47 +00:00
tsutsui
89b4d6221e
- Replace some magic numbers with proper macro.
...
- Use vga_6845_{read,write}() defined in pcdisplayvar.h and
remove vga_crtc_{read,write}() macros in vgareg.h.
2003-01-27 15:16:10 +00:00
tsutsui
862013bb51
- Use u_int8_t instead of char for register structure.
...
- Define MC6845_NREGS like vgareg.h.
2003-01-27 14:53:33 +00:00
martin
25d624c843
Remove #if 0'd pmap_zero_page and pmap_copy_page, which are now
...
implemented in assembler in locore.s.
2003-01-27 14:53:08 +00:00
martin
309ada6129
Remove unused function pseg_find (which looked quite similar to
...
pseg_get anyway).
2003-01-27 14:51:30 +00:00
tsutsui
a8c7515f5f
KNF and space/TAB cleanup.
2003-01-27 14:46:10 +00:00
toshii
1e6d7bcb87
Use PRId64 for daddr_t in a DPRINTF.
2003-01-27 13:06:38 +00:00
bouyer
0cb4c95848
Ops, initialise len before using it.
...
Also, the minimum frame len is ETHER_MIN_LEN - ETHER_CRC_LEN.
2003-01-27 10:35:08 +00:00
kleink
8fb0c069dc
C++ does not permit static a data member to have the same name as its
...
class, so in a C++ environment rename the ip_opts member to Ip_opts as
observed in several other implementations; from Jon Olsson in
PR toolchain/19880.
2003-01-27 09:57:09 +00:00
martin
5070488327
More old cruft to nuke from orbit. This has been replaced by genassym.cf
...
a long time ago.
2003-01-27 09:52:27 +00:00
lonewolf
14757120f4
Fix compiler warnings after 64bit daddr_t change.
2003-01-27 04:08:45 +00:00
thorpej
8dc5018716
If the upper-layer provides a geometry, use it.
2003-01-27 02:43:30 +00:00
enami
c3d0a7a93b
uvm_page_unbusy should skip PGO_DONTCARE page; e.g., locked pgo_getpages
...
request may contain PGO_DONTCARE and nfs_getpages may unbusy them on error.
Fix is provided in PR#20028 by YAMAMOTO Takashi. (and same one is approved
by chuq while ago in private mail). It was my fault to forget to commit.
2003-01-27 02:10:20 +00:00
kleink
c8493ced3c
Appease GCC's warning after daddr_t having changed to 64 bits.
2003-01-27 01:39:36 +00:00
wiz
902dd8b54d
Undo last (not supposed to be committed).
2003-01-27 00:32:44 +00:00
wiz
b091df0ed2
regen (CANOSCAN N670U).
2003-01-27 00:31:01 +00:00
wiz
4307232850
Add CANON N670U scanner id.
2003-01-27 00:29:31 +00:00
chris
d577246bde
Regen.
2003-01-26 19:35:52 +00:00
chris
339056bf8f
Add podule id for NET100 card.
2003-01-26 19:35:04 +00:00
fvdl
f9765c27a4
Insert padding into mcontext_t to make the fp save area 16-byte aligned
...
within ucontext_t.
2003-01-26 19:34:49 +00:00
manu
7e15e89c0a
Fixed dumb bug
2003-01-26 19:32:04 +00:00
manu
ce8bd172b2
For thread creation, make the newly created thread runnable. Mach threads
...
are now functionnal again.
2003-01-26 19:02:14 +00:00
fvdl
ac0ea8f774
Rearrange the trapframe and mcontext to put the registers used for
...
argument passing to be in front, in order. Define constants for
offsets inside frames, to avoid having to redo asm code should they
change again.
2003-01-26 14:12:10 +00:00
pk
bfb9cac2fc
Release the kernel lock in upcallret() and startlwp().
2003-01-26 13:20:12 +00:00
manu
55215e5266
Remove right duplication on thread creation, which became useless now we
...
are using lwp.
Enable kill -9 to kill parent thread waiting for its child.
Use upcallret instead of child_return for the newly created lwp.
Add debug messages for thread creation.
Thread creation are still broken...
2003-01-26 12:39:32 +00:00
tsutsui
daf84696c6
More printf format cleanup to reduce casts.
2003-01-26 06:42:31 +00:00
matt
ee04df9a4d
Add support for Am79C87[45].
2003-01-26 06:25:08 +00:00
matt
5ade701481
Regen.
2003-01-26 06:21:03 +00:00
matt
b9f79bf02f
Add AMD Am79C87[45] (which use the Altima OUI).
2003-01-26 06:20:30 +00:00
tsutsui
eb506d3c00
Fix further printf format warnings for FD_DEBUG, in the wake of daddr_t
...
having changed.
2003-01-26 06:16:31 +00:00
fvdl
60f2388778
Do that funky SA thang.
2003-01-26 00:05:36 +00:00
kleink
bbb601497d
Fix further printf format warnings for DEBUG, in the wake of daddr_t
...
having changed.
2003-01-25 23:18:46 +00:00
soren
549c8ffd36
Note that the FS_ definitions are for compatibility only.
2003-01-25 23:17:38 +00:00
kleink
4e0e5333ae
Fix further printf format warnings for DEBUG, in the wake of daddr_t
...
having changed.
2003-01-25 23:00:09 +00:00
tron
5067836b9e
Use PRId64 instead of hard coding "%lld" to fix build problems under
...
LP64 ports.
2003-01-25 18:12:31 +00:00
fvdl
a138610cac
The oldblks and newblks arrays are used to store direct copies of
...
on-disk block pointers, so they should be int32_t. Error found
by Izumi Tsutsui.
2003-01-25 16:40:28 +00:00
tsutsui
61924d6eac
Use PRId64 from <machine/int_fmtio.h> in printf format for daddr_t.
...
(Eventually jazzio would be moved into MI place :-)
2003-01-25 15:43:11 +00:00
isaki
9bf4faf898
Make it compilable with 64bit daddr_t.
2003-01-25 14:13:46 +00:00
tron
63dda858c6
Fix printf() format strings problems caused by "daddr_t" change.
2003-01-25 12:50:38 +00:00
thorpej
f57bacfc63
Add a couple more Promise ATA133 controllers.
2003-01-25 04:45:24 +00:00
tsutsui
cce861a437
Make sure cache_sh[34]_op_*() functions actually inlined.
2003-01-25 04:21:01 +00:00
thorpej
f4ddf46102
Back out unintentional commit.
2003-01-25 02:12:22 +00:00
thorpej
fd5a840f3c
Add support for ADI Engineering's "Big Red Head" i80200 evaluation
...
and development board, based around their BECC companion chip. Despite
its name, the board can run in big- or little-endian mode (we currently
run only in the latter).
2003-01-25 02:00:15 +00:00
thorpej
b1b164a859
Support for ADI Engineering's Big Endian Companion Chip for the
...
Intel i80200 XScale processor. Despite its name, the BECC can
run in both big- and little-endian modes.
2003-01-25 01:57:17 +00:00
manu
82a9c6faf0
Use per process emuldata for the thread id for now, but this will change
...
shortly. This makes hello world working again.
2003-01-24 22:35:43 +00:00
fvdl
a3ff3a3038
Bump daddr_t to 64 bits. Replace it with int32_t in all places where
...
it was used on-disk, so that on-disk formats remain the same.
Remove ufs_daddr_t and ufs_lbn_t for the time being.
2003-01-24 21:55:02 +00:00
manu
cb771e3c64
Make the beast build again (but it is still probably broken)
2003-01-24 21:37:01 +00:00
kleink
87f0398e29
Fix inverted test in previous. (D'oh!)
2003-01-24 21:26:08 +00:00
pk
a22484a1ea
zs_shutdown: lower IPL before sleeping. Also note the fact that the
...
effectiveness of that very tsleep() call is dubious at best.
2003-01-24 20:46:45 +00:00
jdolecek
96125fbe64
fix typo in comment, and add (perhaps redundant) note that this depends
...
on file-system CODA
2003-01-24 18:51:53 +00:00
thorpej
ae5c422a40
Regen; Tweak a Promise description.
2003-01-24 17:47:17 +00:00
thorpej
de5fb86d32
Tweak a Promise description.
2003-01-24 17:46:51 +00:00
nakayama
54e4cb1a6c
fix kernel build error, such a configs w/o kbd, ms.
...
(approved by martin)
2003-01-24 16:54:34 +00:00
thorpej
9ba98c598b
Add a pointer to p1003.1b semaphore data.
2003-01-24 16:24:44 +00:00
augustss
e06bdc7dcb
Get rid of some debug stuff.
2003-01-24 11:55:19 +00:00
augustss
d93f9bdaa1
Get rid of some old BAT nonsense.
2003-01-24 11:51:42 +00:00
thorpej
b3ffb6e4ab
* Enable Ultra133 on the NVIDIA nForce 2.
...
* Make sure to test for PCI_VENDOR_AMD before testing for any
AMD products.
2003-01-24 05:51:04 +00:00
thorpej
fdedc91f87
Regen; add some more Promise products.
2003-01-24 05:34:25 +00:00
thorpej
5a31d135b0
Add some more Promise products.
2003-01-24 05:33:12 +00:00
thorpej
b3b68a3ced
Sort the Promise entries.
2003-01-24 05:18:56 +00:00
thorpej
f6cc829138
Add support for the NVIDIA nForce ATA100 and nForce2 ATA133
...
IDE controllers, which are more-or-less compatible with the
AMD controllers.
XXX Need to determine the correct timing value for the nForce2
XXX at Ultra133, so we cap it at Ultra100, for now.
2003-01-24 04:53:13 +00:00
thorpej
34461a3ff9
Regen; add Nvidia nForce2 ATA133 IDE.
2003-01-24 03:16:08 +00:00
thorpej
8204d0458d
Add Nvidia nForce2 ATA133 IDE product ID, and shuffle some
...
Nvidia entries around a little.
2003-01-24 03:15:04 +00:00
tsarna
68d5821c1b
regen
2003-01-24 01:51:09 +00:00
tsarna
1b01d76d23
Add Griffin PowerMate
2003-01-24 01:49:22 +00:00
thorpej
0139305811
Major overhaul of this code, fixing locking protocol issues and handling
...
of semaphores at fork time.
2003-01-24 01:46:27 +00:00
thorpej
3ff1552cc5
Add "fork hooks", a'la "exec hooks" and "exit hooks" which allow
...
subsystems to do special processing to the parent and/or child at
fork time.
2003-01-24 01:42:52 +00:00
thorpej
157e66459d
Regen; reserve slots for <mqueue.h> and <sched.h> system calls.
2003-01-24 01:28:05 +00:00
thorpej
237ebf04da
Reserve slots for the p1003.1b scheduler system calls.
2003-01-24 01:27:21 +00:00
thorpej
c8c6d5ea40
Reserve slots for p1003.1b message queue calls.
2003-01-24 01:23:27 +00:00
thorpej
30427190e0
Regen; allocate slot for _ksem_timedwait().
2003-01-24 01:18:50 +00:00
thorpej
9331f2b780
Allocate a slot for _ksem_timedwait(), although it is not currently
...
implemented.
2003-01-24 01:17:53 +00:00
markd
31b8810652
Regen.
2003-01-24 00:19:40 +00:00
markd
4606c7c4e4
Add Nikon E885.
2003-01-24 00:18:26 +00:00
thorpej
77acc6e3bc
Cosmetic changes.
2003-01-23 23:52:38 +00:00
thorpej
9243a2a667
Regen; allow ktruss/kdump to properly see _ksem_*().
2003-01-23 23:31:36 +00:00
thorpej
5db6496bbc
Allow the _ksem_*() syscalls to be properly seen by ktruss/kdump.
2003-01-23 23:29:46 +00:00
matt
66a5aac4a5
Fix a missing p to l change.
2003-01-23 23:18:04 +00:00
pk
f65446d08d
When stopping a CPU, clear its bit from cpu_ready_mask.
2003-01-23 22:33:41 +00:00
jdolecek
2011a991cc
ramdisk image overflew, bump by 4K
2003-01-23 21:37:28 +00:00
jdolecek
31fcb050d5
add another memory size detection routine, using int15, function 0xc7, which
...
is supported on later IBM PS/2 models; this is necessary to detect memory
over 64MB
thanks go to Pavel Cahyna for testing on his IBM PS/2 machine with 128MB
bump biosboot version to 2.15
2003-01-23 21:22:24 +00:00
augustss
8aa76b0ae7
Add processor interface register definitions.
2003-01-23 21:17:15 +00:00
jdolecek
1323e01ddf
use %e?x instead of %?x as 'xorl' arguments
...
use %al for 'movb' target, and 'andb' for masking the result with $0x02
since 'and' conveniently sets ZF, use 'and+jnz' instead of 'and+cmp+jne'
2003-01-23 21:01:18 +00:00
pk
a6a16741fe
Optimize xcall() et.al. further by maintaining a cpuset mask of all CPUs
...
marked ready. This saves repeated testing for NULL pointers and the
CPUFLG_READY flag.
Also use a separate flag variable to signal xcall completion. This saves a
load and a pipeline stall.
2003-01-23 19:54:35 +00:00
pk
a799bdd88d
GC the per-CPU message lock.
...
Move the level 15 msg area further down the cpuinfo structure, as it's
used infrequently.
2003-01-23 18:49:08 +00:00
christos
3ea86aec06
PT_DUMPCORE support.
2003-01-23 17:35:18 +00:00
kleink
15027ca61b
Correct inverted logic in comment.
2003-01-23 15:59:38 +00:00
gehenna
de40fbc7a1
Add the block-device-only devices.
...
Reported by ragge.
2003-01-23 15:07:54 +00:00
pk
39ce68a44b
bogusintr: print cpu number.
2003-01-23 14:56:06 +00:00
pk
22acc2a827
Shave some code off xcall().
2003-01-23 14:54:33 +00:00
pk
40a1653fc2
pmap_kenter_pa4m: like pmap_enk4m(), we can use setpte4m().
...
ctx_free: fix cache flush context for sun4/sun4c.
2003-01-23 12:48:53 +00:00
pk
58005dc9d3
Zombie procs have no lwps.
2003-01-23 12:41:33 +00:00
pk
698ca6fb6f
LWPify cpu_debug_dump().
2003-01-23 11:50:50 +00:00
briggs
ecc07a2e36
Use iwin[3] instead of iwin[2] for RAM access and leave iwin[2] unused.
2003-01-23 03:56:45 +00:00
briggs
a4734dcbdd
Program the BARs after the limit regs. When the BARs are written, the
...
value actually stored in the BAR is masked by the limit register.
2003-01-23 03:53:16 +00:00
bad
f4aacfe9fc
Being able to make image backups of your whole disk, not to mention not
...
causing certain ata disks to lock up by reading beyond the last block,
beats catering to broken devices.
bounds_check_with_label() RAW_PART too.
2003-01-23 00:00:32 +00:00
ragge
413b4a7519
Explicitly cast "g" arg to mtpr to long; to tell gcc that this
...
instruction will use long indexing.
2003-01-22 23:06:37 +00:00
kleink
2332bdc2f1
Sync MPC601 support bits with UP version.
2003-01-22 22:20:23 +00:00
kleink
6bc656a38f
Whitespace nit in previous.
2003-01-22 22:15:06 +00:00
pk
9d33cc7115
Set the interrupt target to the current CPU when directly accessing
...
the chip for console I/O.
2003-01-22 22:00:39 +00:00
pk
53c776f062
Add functions to set & get the interrupt target CPU.
2003-01-22 21:58:28 +00:00
kleink
2ee2952854
G/c the pmap_bootstrap() segtab interface again. Silly me.
2003-01-22 21:55:14 +00:00
bouyer
1c91f1dcd4
We want bus_space_set_region_2(), not _1() here.
2003-01-22 21:47:47 +00:00
kleink
8065f1dfa1
MPC601 support bits:
...
* install 601-specific DSI and RUNMODETRC trap handlers
* save/restore MQ in trapframe, add MQ hooks to DDB
* extend battable to 512 entries to hold the 601's 8M translations
* instead of adding I/O to BAT starvation, set up segment registers
for Memory-Forced I/O Controller Interface Access
* sync after tlbie
2003-01-22 21:44:54 +00:00
jdolecek
b8445f760f
bump ramdisk image to 2330k
2003-01-22 21:16:32 +00:00
kleink
892f5b1680
Add mfrtcl() and mfrtc(), similar to mftbl() and mftb().
2003-01-22 21:05:50 +00:00
rafal
4490fd7293
Last bit of LWP'ification of compat_irix; this is probably wrong, but at
...
least it compiles and manu said he'd fix it up and test the whole kit when
he had a chance.
2003-01-22 21:04:50 +00:00
kleink
7553f82ab0
Recognize %mq, and adjust disasm_fields() slightly to print it.
2003-01-22 21:03:37 +00:00
hannken
e6785a37e2
Increase time to wait for TLB IPI rendezvous.
...
Approved by: Frank van der Linden <fvdl@netbsd.org>
2003-01-22 18:32:18 +00:00
christos
2bb5209b1b
lwp'ify
2003-01-22 17:48:02 +00:00
christos
ed339f5241
regen.
2003-01-22 17:47:47 +00:00
christos
bcc3424bc3
regen
2003-01-22 17:47:35 +00:00
christos
498aa03f2a
lwp conversion
2003-01-22 17:47:03 +00:00
simonb
d77e3b36e0
Assign to pcb->pcb_context[] in the same order in cpu_lwp_fork() and
...
cpu_setfunc().
2003-01-22 13:55:09 +00:00
scw
e212eb9e09
Fix pasto in last commit.
2003-01-22 13:46:44 +00:00
scw
a4b020d99e
In cpu_upcall(), validate the address of the upcall handler so as to
...
avoid a kernel-mode exception if restoring an invalid SPC.
2003-01-22 13:40:57 +00:00
simonb
f1e4a936fe
White space nit; make comments line up nicely.
2003-01-22 13:40:34 +00:00
scw
3b0144945a
Fix a cpu_switchto() botch.
2003-01-22 13:38:51 +00:00
scw
fe8c97c2e1
In _MCONTEXT_TO_SIGCONTEXT(), set r24 to the magic number expected
...
by sh5's sys___sigreturn14().
2003-01-22 13:38:11 +00:00
scw
1ec8a7e381
Add _UC_UCONTEXT_ALIGN.
2003-01-22 13:35:55 +00:00
rafal
5234d1eb92
Mechanical LWP'ification of IRIX compat code; untested as of right now.
2003-01-22 12:58:22 +00:00
yamt
41ad61ee76
make KSTACK_CHECK_* compile after sa merge.
2003-01-22 12:52:14 +00:00
jmmv
190a36975b
Fix typo: realy -> really. Okay'ed by wiz.
2003-01-22 11:47:05 +00:00
mhitch
0dec3c2159
Lance chip needs to be accessed in sparse address space for alpha. Fixes
...
Turbochannel Ethernet card on Alpha 3000 systems.
2003-01-22 08:06:21 +00:00
rafal
c406903ac2
LWP'ify the svr4_mcontext stuff.
2003-01-22 04:32:17 +00:00
jdolecek
fe21ba6c7f
comment out static prototype for pci_intr_fixup_ibm_6040() for now,
...
it's not implemented here (nor used)
2003-01-21 22:01:57 +00:00
jdolecek
225c76a84a
add prototype for switch_lwp_exit()
2003-01-21 21:59:49 +00:00
augustss
0dd40ac3d5
Fix typo in last commit.
2003-01-21 21:00:56 +00:00
augustss
98a0fdb690
Make sure to set xs->datalen when we force a short inquiry. From kern/19971,
...
Shingo WATANABE.
2003-01-21 20:56:57 +00:00
augustss
fa5b0c9ca0
Add quirk for Melco adapter. From kern/19971, Shingo WATANABE.
2003-01-21 20:56:13 +00:00
augustss
9c6ee93f4b
Regen.
2003-01-21 20:53:51 +00:00
augustss
234e556fd2
Add Melco USB-IDE adapter.
2003-01-21 20:53:29 +00:00
kleink
2726c9bbeb
Add ns32k ucontext kernel portions. Not entirely updated for the LWP
...
universe (like the rest of the port), but presumed working.
2003-01-21 20:50:43 +00:00
martin
fbc8c025c2
Rename the DIV0 traps to avoid confusion with the usage on the sparc
...
port: T_IDIV0 is the hardware trap generated on integer division by
zero, T_DIV0 is the software trap used to signal the same event.
This makes 32 bit kernels able to run sparc code with the v7 multiply/
divide library, as well as with the v8 one.
2003-01-21 20:42:02 +00:00
bouyer
099e41a34e
Pass proper len to word_zero().
...
Bump totlen in the last wantsbyte case, so that it's always even.
Both pointed out by Gunther Nikl.
2003-01-21 20:39:29 +00:00
martin
8772c68807
Rename the DIV0 traps to avoid confusion with the usage on the sparc
...
port: T_IDIV0 is the hardware trap generated on integer division by
zero, T_DIV0 is the software trap used to signal the same event.
This makes 32 bit kernels able to run sparc code with the v7 multiply/
divide library.
Spotted by Valeriy E. Ushakov.
2003-01-21 19:46:49 +00:00
kent
19056063ce
Add DIAGNOSTIC code provided in PR kern/19919 by DHOYASHIKI Shinichi.
2003-01-21 16:05:21 +00:00
kleink
6279465ec2
Add <machine/mcontext.h> wrapper.
2003-01-21 14:39:35 +00:00
christos
aa30f99ab5
- add $NetBSD$
...
- include <sys/cdefs.h>
- remove variable names from args
2003-01-21 14:11:31 +00:00
kleink
38233ac58c
G/c orphaned declaration of `runtime'; from HAMAJIMA Katsuomi in
...
PR kern/19974.
2003-01-21 13:56:53 +00:00
scw
2dd1c1657f
Add sigcontext/mcontext conversion macros.
2003-01-21 11:28:01 +00:00
scw
a57f525335
Define {,UN}LINK_BIG_FRAME() macros for dealing with stackframes
...
greater than 511 bytes in size.
2003-01-21 11:27:18 +00:00
scw
c3be47693c
Use 'int' instead of 'u_int32_t' in a couple of places to avoid
...
depending on sys/types.h.
2003-01-21 11:26:04 +00:00
jdolecek
b6e6d81aa4
fix pasto in previous to make this compile
2003-01-21 07:12:54 +00:00
jdolecek
0d1394f592
config says nsphy and ukphy are orphaned (nothing matching 'mii?' declared)
...
comment them out
2003-01-21 07:10:46 +00:00
sjg
b3d7df8002
Don't hide bootmid behind MULTIPROCESSOR.
2003-01-21 06:18:41 +00:00
itojun
aa8971e35f
m_tag transition mistake (within #if 0)
2003-01-21 05:43:26 +00:00
itojun
0eec7150b6
vlan tagging mistake during m_tag transition
2003-01-21 05:39:57 +00:00
simonb
76cc21a34c
Fix a tyop and some white-space nits.
2003-01-21 04:26:01 +00:00
matt
b03d17694a
Do a preliminary switchover of the mach code to lwp's. It compiles now
...
but probably doesn't work. That's for someone who understand this code
better.
2003-01-21 04:06:06 +00:00
matt
de92ce633f
Regen.
2003-01-21 04:02:37 +00:00
matt
d8ad92c6b6
Add <sys/sa.h>
2003-01-21 04:02:10 +00:00
matt
312dfd8487
Adapt to the LWP world.
2003-01-21 04:01:09 +00:00
matt
e093b867e9
Regen.
2003-01-21 04:00:02 +00:00
matt
6d793da904
Add <sys/sa.h>
2003-01-21 03:59:27 +00:00
itojun
4d7a2eb391
correct panic when ip-in-ip encapsulation is used. found by Masanori Kanaoka
2003-01-21 03:23:44 +00:00
jdolecek
d4ad86a080
finish LWPify
2003-01-21 03:16:06 +00:00
itojun
d4bff57bae
s/options^I^I/options ^I/
2003-01-21 02:44:15 +00:00
simonb
b2fd1c7b6d
Remove a line of unreachable code. It seems to be a remnant of starting
...
off with a different driver, and the way this code is structured the
offending line isn't needed.
2003-01-21 00:24:20 +00:00
christos
5c729d909f
finally: step 5: disable a KASSERT() if we are doing_shutdown.
...
now sync from ddb should work as badly as before the nathanw_sa merge.
2003-01-21 00:03:07 +00:00
christos
d00d441811
step 4: don't de-reference l, if you are going to test if it is NULL a couple
...
of lines below.
2003-01-21 00:02:07 +00:00
christos
3908d39e06
step 3. Assign lwp properly if null, so that we can PHOLD without segfaulting.
2003-01-21 00:01:14 +00:00
christos
2cc65e9f5e
step 2: fix sync so that it does not dereference null lwp and assign p properly.
2003-01-21 00:00:10 +00:00
christos
416978b15b
The hunt to make sync work from ddb again begins here.
...
Protect against lwp null dereference. set proc p properly.
2003-01-20 23:59:14 +00:00
christos
0f6167a798
name the component that should be leaf in the diagnostic.
2003-01-20 23:57:49 +00:00
scw
0767992461
If we don't explicitly recognise the trap type, only panic if it
...
came from kernel mode. Otherwise, print details of the exception
and send a SIGILL to the process.
The is necessary now that debug exceptions are handled here.
2003-01-20 22:32:26 +00:00