jdolecek
3323852a95
put compat-specific locore code to separate *_locore.s files
2000-11-21 21:13:23 +00:00
chs
0ac52aaf1d
remove MD functions for printing vnodes and buffers since there are
...
MI versions now.
2000-11-21 16:34:52 +00:00
ad
20ef6ae40a
Fix netbooting on the 2100/3100. Partially from Thilo Manske
...
<Thilo.Manske@HEH.Uni-Oldenburg.DE> in PR 11212.
2000-11-21 14:21:36 +00:00
ad
bd4ff2a804
PMIN vs. PMAX in boot message. Pointed out by Thilo Manske
...
<Thilo.Manske@HEH.Uni-Oldenburg.DE> in PR 11212.
2000-11-21 14:19:10 +00:00
tsutsui
2c7e91a09e
Define proper macros for FP frame offsets rather than magic numbers.
2000-11-21 13:54:13 +00:00
tsutsui
20494c8f05
Pull in dev/i2o/files.i2o, which is required by files.pci.
2000-11-21 13:34:57 +00:00
jdolecek
ad1c55c73b
implement PTRACE_{GET|SET}FPREGS and framework for PTRACE_{PEEK|POKE}USER
...
this makes it possible to attach to linux process with linux gdb and
see top-most function on traceback; lower functions are not available,
probably due to bad frame setup
it's not possible to setup breakpoints - Linux gdb uses hw breakpoints,
so support for them would need to be written
2000-11-21 12:28:15 +00:00
jdolecek
a53687b13e
(de)allocate linux emuldata on fork/exec/exit as needed
2000-11-21 12:23:29 +00:00
jdolecek
33d7a60ccc
comment out ps_siginfo from struct emuldata for now, add int debugreg[8]
...
update comment a bit
2000-11-21 12:21:43 +00:00
tsutsui
690b28f91e
Add a couple of fonts used on Sony NEWS.
...
Generated from (recently removed) sys/arch/newsmips/dev/fnt{,24}.c.
2000-11-21 11:44:45 +00:00
scw
f33cb83f53
Call zs_set_speed() to calculate the initial timing constants.
2000-11-21 11:41:37 +00:00
chs
c588bbbe76
add a missing newline in a printf().
2000-11-21 08:14:17 +00:00
nisimura
ce10334de9
Fix errors in color lookup table initialization. Glyph is rendered
...
in visible color now.
2000-11-21 07:42:02 +00:00
chs
7af6378fca
two changes to arm32 fault handling:
...
- when pcb_onfault is set, allow UVM to attempt to resolve permission faults
as well as translation faults (rather than immediately invoking the
onfault handler for permission faults). this is needed for UBC since
it will be normal for uiomove() to fault on read-only mappings which
will be made writable by the pager.
- clear pcb_onfault before calling uvm_fault() and restore it afterward.
if the fault handler generates a pagefault, we'd like to panic rather
than invoking the onfault handler.
2000-11-21 06:30:05 +00:00
chs
197f7aae9c
two changes to pmap_enter():
...
- allow entry of the same mapping that's already there.
this can happen with UBC.
- if PMAP_CANFAIL, return failure rather than sleeping
when we fail to allocate a ptp.
2000-11-21 06:14:40 +00:00
chs
2116915a30
eliminate TRUNC_PAGE() and ROUND_PAGE() in favor of their
...
lowercase counterparts. also, a little misc cleanup.
2000-11-21 05:49:07 +00:00
soren
290a66c213
Reduce probe noise.
2000-11-21 05:23:37 +00:00
enami
29f1bcd8e2
Unlock mutex before jumping off from the critical region instead of
...
testing if locked.
2000-11-21 03:53:27 +00:00
soren
4927de268a
Adjust for p_emul change.
2000-11-21 02:26:07 +00:00
jdolecek
baae0324b9
restructure struct emul and execsw, in preparation to make emulations LKMable:
...
* move all exec-type specific information from struct emul to execsw[] and
provide single struct emul per emulation
* elf:
- kern/exec_elf32.c:probe_funcs[] is gone, execsw[] how has one entry
per emulation and contains pointer to respective probe function
- interp is allocated via MALLOC() rather than on stack
- elf_args structure is allocated via MALLOC() rather than malloc()
* ecoff: the per-emulation hooks moved from alpha and mips specific code
to OSF1 and Ultrix compat code as appropriate, execsw[] has one entry per
emulation supporting ecoff with appropriate probe function
* the makecmds/probe functions don't set emulation, pointer to emulation is
part of appropriate execsw[] entry
* constify couple of structures
2000-11-21 00:37:49 +00:00
soren
1a5d87c9fa
Regen.
2000-11-21 00:25:43 +00:00
soren
219abdb871
Typo.
2000-11-21 00:25:35 +00:00
soren
6faa85c6d3
Note 3Com card support.
2000-11-21 00:25:20 +00:00
soren
6f8985cf15
Regen.
2000-11-21 00:25:04 +00:00
soren
7736bcc821
Add Prolific printer adapter.
2000-11-21 00:24:12 +00:00
soren
e38c89a886
s/iRDA/IrDA/
2000-11-21 00:20:30 +00:00
soren
1bbc3bd9b5
Same as sys/dev/md_root.c.
2000-11-21 00:18:03 +00:00
soren
0bb338521a
Use dev/md_root.c.
2000-11-21 00:17:33 +00:00
soren
d1b07f4fee
Same as sys/dev/md_root.c.
2000-11-21 00:17:08 +00:00
soren
36ae7c2b02
Use dev/md_root.c.
2000-11-21 00:16:33 +00:00
soren
263f913967
Remove obsolete comment.
2000-11-21 00:15:20 +00:00
jdolecek
e5b244c609
disable the LM_EXEC stuff for now, it doesn't work anyway
...
this will be fixed 'soon'
2000-11-21 00:11:38 +00:00
perseant
c398987151
More locked_queue_* and lfs_avail accounting fixes from Jesse Off
...
<joff@gci-net.com>. Remove a specious btodb() in lfs_fragextend, and
count blocks shrunk or removed by VOP_TRUNCATE in lfs_avail.
2000-11-21 00:00:31 +00:00
thorpej
f595d8e741
Ooops, do the last only if MULTIPROCESSOR.
2000-11-20 21:18:07 +00:00
thorpej
13c94ca56c
We've fixed enough bugs that we can actually acquire the scheduler
...
lock, jump into the idle loop, and run user code! Yippee!
2000-11-20 20:40:17 +00:00
thorpej
b37faa6ca5
Protect microtime_slock appropriately.
2000-11-20 20:37:52 +00:00
jdolecek
bc146d0eb0
make const the struct emul * pointers passed/used in stackgap_init(),
...
stackgap_alloc()
2000-11-20 20:23:07 +00:00
thorpej
e12f731db5
On the Alpha, interprocessor interrupts come in at the same priority
...
as normal device interrupts. Because of this, we won't get IPIs while
servicing such interrupts. This can lead to the following deadlock
scenario as reported by Bill Sommerfeld:
- Process runs on cpu1, but has FP state on cpu0.
- Process executes FP-using insn, causing an FP trap, which causes
the kernel lock to be acquired.
- At roughly the same time, cpu0 receives a device interrupt, and attempts
to acquire the kernel lock, which blocks since cpu1 already has it.
- cpu1 sends cpu0 a SYNCH FPU IPI, and waits for cpu0 to release its
FP state.
- Since cpu0 cannot notice the IPI until it has processed the device
interrupt, which it cannot do because it cannot acquire the kernel
lock, we have deadlock.
Solve the problem by adding a spinlock interlock release hook which
checks for pending IPIs and processes them.
Idea from Bill Sommerfeld.
2000-11-20 20:17:13 +00:00
jdolecek
0630488eda
fix typo
2000-11-20 20:07:36 +00:00
thorpej
3075dec01a
Allow machine dependent code to specify a hook to be run when a
...
spinlock's interlock is released.
Idea from Bill Sommerfeld.
2000-11-20 20:04:49 +00:00
jdolecek
3b15e411a3
add moxa0 at isa entry, marked as experimental
...
This was not added also to other config files primarily because the
driver is not properly tested yet; this entry is primarily meant as an example
for those brave souls who want to try moxa.
2000-11-20 19:53:43 +00:00
scw
b6f0a678dd
Add support for the m68060-based machines: MVME-172 and MVME-177.
...
CPU support taken from a combination of NetBSD/amiga and NetBSD/x68k.
At this time, MVME-172 works but MVME-177 is untested. Since the '177
is otherwise identical to the MVME-167, this should *just work*.
2000-11-20 19:35:28 +00:00
jdolecek
1964a728da
add moxa
2000-11-20 19:27:16 +00:00
thorpej
fdfb847e3e
Make ci_ipis volatile.
2000-11-20 19:25:43 +00:00
jdolecek
c27af44fc0
Add an attachment for MOXA 168P isa multiport card. This code was
...
written by Christoph Badura.
This was reported to work by user of this code. It's not tested
by me, but it's probably more useful in tree anyway.
2000-11-20 19:24:39 +00:00
thorpej
7f059c8e69
Move IPI processing into a separate function.
2000-11-20 19:24:36 +00:00
thorpej
5a22e57dc3
Print the CPU ID while dumping trap info.
2000-11-20 15:33:39 +00:00
tsubai
11b48d8a4d
Thermal Management Interrupt is available on 750, too.
2000-11-20 15:16:04 +00:00
tsutsui
2cd77d5700
Fix swapped keycode for '[' and ']'.
2000-11-20 14:55:15 +00:00
onoe
2819c7b688
Use DMA from mbuf instead of copy in transmit.
...
Still use memcpy in receiving because we must use buffer fill mode
and many packets may share single receive buffer.
XXX: Workaround(?) for CXD3222: it fails to DMA for selfid packet according
to code placement. I'm not sure about the reason (cache? timing? bug?).
Fixed the bug: transmitter sometimes stop and OACTIVE bit of if_fw
never be cleared.
Fixed the bug: freeing free buffer.
Enable ieee1394_drain and ieee1394_watchdog for loss of fragment.
2000-11-20 12:12:18 +00:00
chs
c62d17a551
rationalize the use of b_flags for geteblk() buffers.
...
rather than assigning to the whole field, set or clear individual flags,
which implies that the B_BUSY and B_INVAL flags will remain set.
this allows us to make the assertion in brelse() that B_BUSY is set,
which is the purpose of all this.
2000-11-20 08:24:08 +00:00
veego
a174b8a595
simple_lock_held is only defined when you use LOCKDEBUG.
...
Put it for now in an ifdef LOCKDEBUG.
2000-11-20 06:36:02 +00:00
onoe
4e1e677996
regen.
...
CXD32222 -> CXD3222 (Sony OHCI Controller)
2000-11-20 06:23:13 +00:00
onoe
e51b1f604e
CXD32222 -> CXD3222 (Sony OHCI Controller)
2000-11-20 06:22:13 +00:00
thorpej
2f1e131332
Delete a block of code that was intended to get the second
...
CPU to handle interrupts, but prevents a whole slew of things
from working properly on the second CPU. It is no longer
necessary now that several other bugs have been fixed.
2000-11-20 03:15:15 +00:00
thorpej
fe5b367ce6
In Idle(), only switch to the idle PCB if we're not already running
...
on it, and make sure to deactivate the old process's address space,
as this will not otherwise be done by cpu_switch() later once we're
on the idle PCB.
Also, update some comments related to when s0 (i.e. the old process)
is NULL in the context switching code.
2000-11-20 02:44:45 +00:00
soren
046ce58634
Enable com at cardbus.
2000-11-20 02:00:46 +00:00
simonb
f104ee65be
Add a sysctl_rdminstruct() function - same as sysctl_rdstruct() but
...
can return short data if *oldlenp is less than len.
2000-11-20 01:46:56 +00:00
jdolecek
2faa9db8c1
cosmetic change in brand string handling (NULL vs. "")
...
drop Xeon from PIII Cascades entry, it should be handled by the brand id
support (pointed out by Scott Telford in private e-mail).
2000-11-19 23:38:22 +00:00
jdolecek
26fe6166ed
check_pty(): simple_unlock() might have been called even if the lock was
...
not locked previously in some cases; unlock only if the lock is held
2000-11-19 22:34:56 +00:00
matt
95a8447ccf
Add G4 specific exceptions (include AltiVec).
2000-11-19 20:48:20 +00:00
matt
bb71a6b332
Add AltiVec VSCR definitions.
2000-11-19 20:41:04 +00:00
sommerfeld
2a0dca4bec
Correct conditionalization of last change.
2000-11-19 20:11:12 +00:00
sommerfeld
8074b0b0b2
MULTIPROCESSOR: context switch to cpu's idle pcb before unlocking the
...
scheduler in idle so our stack doesn't get stolen out from underneath us.
2000-11-19 20:08:36 +00:00
sommerfeld
c0c9c552c0
Fix obvious typo (don't mark current cpu as not running when doing a
...
broadcast IPI).
2000-11-19 20:05:25 +00:00
matt
b1e1cfdb4a
Add AltiVec VEC bit.
2000-11-19 19:52:37 +00:00
thorpej
87819535b2
Synch cpu_hatch() with the i386:
...
- print the same style message when the CPU is running.
- Initialize ci->ci_schedstate.spc_runtime on the CPU.
2000-11-19 19:18:19 +00:00
thorpej
69a3a857be
As a temporary measure, protect microtime() with a simple lock.
...
XXX Needs to be rewritten from scratch.
2000-11-19 19:16:44 +00:00
martin
4a0283d9f0
Allow changing of settings via ioctl only for the superuser.
...
Fixes PR security/11524.
2000-11-19 18:48:44 +00:00
bouyer
d81861796a
Add support for Intel ICH2
2000-11-19 15:32:24 +00:00
mrg
5d04f7b69d
update to reality. sync with GENERIC32.
2000-11-19 15:23:55 +00:00
mrg
1368967d8c
fix some comments.
2000-11-19 15:22:51 +00:00
tsutsui
ae33b9bc92
More cosmetics.
...
BTW, why these two "generic" config files exist?
2000-11-19 14:23:34 +00:00
tsutsui
d805c3822e
Remove "rnd is EXPERIMENTAL" comment.
2000-11-19 14:14:31 +00:00
tsutsui
523ec808a6
- Add bba* at ioasic?
...
- Some cosmetics
2000-11-19 14:10:56 +00:00
tsutsui
13c5a51b02
Add some newer stuff from GENERIC and enable rnd.
2000-11-19 14:03:39 +00:00
tsutsui
f6c12f31f0
Sync with GENERIC.
2000-11-19 13:46:29 +00:00
simonb
f2df695c3b
Update extern declarations of {hpux,ultrix}_syscallnames for change
...
to e_syscallnames in struct emul. Untested on HP, but should be ok.
2000-11-19 12:47:51 +00:00
chs
ade4906074
verify that a LIST or TAILQ isn't already corrupted before modifying it.
...
enable with "options QUEUEDEBUG".
2000-11-19 06:00:57 +00:00
chs
3a947bfaf7
avoid removing syncer vnodes from the worklist twice.
2000-11-19 05:53:21 +00:00
thorpej
b9ad1f75b9
Make VM_MAX_KERNEL_ADDRESS end on a page boundary.
2000-11-19 03:16:55 +00:00
thorpej
561db1fb7e
Implement pmap_growkernel().
2000-11-19 03:16:34 +00:00
sommerfeld
0cc75528c8
If MULTIPROCESSOR, count cpus and use that for hw.ncpu
2000-11-19 01:46:26 +00:00
sommerfeld
89b4aa9918
Preliminary MULTIPROCESSOR support:
...
- for CP_TIME, sum the times across all processors.
- for kinfo_proc2, fill in cpu_id.
2000-11-19 01:34:58 +00:00
sommerfeld
c9313ae2fd
Back out mistaken commits.
2000-11-19 00:56:39 +00:00
sommerfeld
d9969892eb
Extend kinfo_proc2 with CPU id
2000-11-19 00:54:50 +00:00
sommerfeld
f276315e1c
In pool_setlowat(), only call pool_catchup() if the pool is under the
...
low water mark. (Avoids annoying warning when you setlowat a static
pool).
2000-11-19 00:29:51 +00:00
mrg
e97f9e9f7a
use OpenFirmware, not prom version 0, operations. eeprom(8) works now.
2000-11-18 23:45:05 +00:00
mrg
a2ea64e265
sync with sparc port. add support for OF_setprop(), OF_nextprop(),
...
OF_interpret() and OF_milliseconds().
2000-11-18 23:43:06 +00:00
scw
a29dff3290
Fix a braino in the last commit.
2000-11-18 22:46:07 +00:00
scw
4b0eb0e2dd
Allow a degree of tolerance when calculating the baudrate timing constant.
2000-11-18 22:34:25 +00:00
tsutsui
ed94d05b50
Clear %fp to terminate backtrace on gdb.
2000-11-18 20:46:28 +00:00
soren
60239485e8
Some CRIME definitions.
2000-11-18 19:33:49 +00:00
soren
4227c8ce3a
Use ETHER_ADDR_LEN.
2000-11-18 19:32:34 +00:00
thorpej
137c030d5b
Count individual interprocessor interrupts -- it's good to know where
...
they all come from.
2000-11-18 19:25:35 +00:00
thorpej
34f24f4819
Make sure that the cpu_info points at the correct softc on
...
single-processor kernels running on multi-processor systems.
2000-11-18 17:45:31 +00:00
sommerfeld
859adc84de
Loading the cpu_info value into the kgp for the new cpu isn't likely to work
...
very well.
2000-11-18 16:21:37 +00:00
simonb
3f9e6ed0b8
Don't use alloca() - breaks compile on alpha (alloca is not prototyped
...
anywhere).
2000-11-18 15:58:13 +00:00
sommerfeld
acc196c4a9
Initialize ring buffer pointers when the ring buffer is allocated.
...
(comsoft() can be invoked before comopen() on serial consoles; a character
received before the console is opened "for real" can result in a fatal trap
unless the ring buffer pointers are initialized early)
2000-11-18 15:46:23 +00:00
lukem
9f10280ff3
OF_nextprop(): change 'char *nextprop' -> 'void *nextprop', in line with
...
pk's change to sys/dev/ofw/openfirm.h rev 1.15.
2000-11-18 12:15:50 +00:00
thorpej
73265fa0c9
Duh, don't need SGMAP-related includes on this chipset.
2000-11-18 05:56:20 +00:00
thorpej
0aea00f57c
Regen.
2000-11-18 05:29:27 +00:00
thorpej
cec0022eeb
Add some 3D Labs products, from XFree86, via groo@netbsd.org
2000-11-18 05:29:00 +00:00
mrg
d6d4159b1a
s/register//
2000-11-18 03:52:50 +00:00
mrg
40095eb6a1
struct pcb's lastcall is const char *
2000-11-18 03:51:14 +00:00
mrg
0485f611f1
remove dead debugging code.
2000-11-18 03:49:38 +00:00
mrg
822cec2475
get rid of remaining warnings.
2000-11-18 03:23:53 +00:00
toshii
92a17c6ecd
Make buildable again.
...
The previous commit was a backout of rev. 1.45, which must be an accident.
2000-11-18 02:11:23 +00:00
lukem
a687c7deac
pull up stuff changed in GENERIC from 1.370 - 1.377, appropriately
...
commented out if it's not relevant to a laptop
2000-11-18 02:08:30 +00:00
mrg
e4f5ca29a9
kill gcc warnings.
2000-11-18 02:00:50 +00:00
mrg
215d0d2dcd
pull over from sparc port's mem.c:
...
>revision 1.26
>date: 2000/11/13 15:31:44; author: pk; state: Exp; lines: +10 -1
>Detect "EOF" conditions on the memory-special files.
2000-11-17 23:18:53 +00:00
thorpej
72a145bd5e
I have long since upgraded the boot block on my test system. (Actually,
...
I have an entirely different test system now.)
2000-11-17 22:47:30 +00:00
thorpej
db3db664bd
Make this compile again.
2000-11-17 21:40:04 +00:00
bouyer
1e533cd38c
Pull up FreeBSD changes:
...
1.39:
Have if_ti stop "hiding" the softc pointer in the buffer region. Rather,
use the available void * passed to the free routine and pass the softc
pointer through there.
1.33:
Add support for the Netgear GA620T copper gigabit card.
1.32:
Tweak probe message so that 1000baseSX and 1000baseT cards are
explicitly identified.
1.31:
Update the Tigon driver to support 1000baseTX gigE over copper AceNIC
cards. This basically involves switching to the 12.4.13 firmware, plus
a couple of minor tweaks to the driver.
NetBSD changes:
get rid of ti_inuse, the mbuf ref counting code should call ti_free() when
needed.
Use hardware 802.1q support.
2000-11-17 19:33:25 +00:00
bouyer
54e36dbaa6
Update to firmware 12.4.13+wpaul, from FreeBSD
2000-11-17 19:23:35 +00:00
bouyer
6e08061c2a
Supports hardware 802.1q VLAN tagging, per discussion on tech-net. The tag is
...
stored in a m_aux mbuf defined by AF_LINK, ETHERTYPE_VLAN.
Thanks to Jason & Itojun for the feedback.
2000-11-17 19:21:53 +00:00
perseant
31fc62d4e9
Correct accounting of lfs_avail, locked_queue_count, and locked_queue_bytes.
...
(PR #11468 ). In the case of fragment allocation, check to see if enough
space is available before extending a fragment already scheduled for writing.
The locked_queue_* variables indicate the number of buffer headers and bytes,
respectively, that are unavailable to getnewbuf() because they are locked up
waiting for LFS to flush them; make sure that that is actually what we're
counting, i.e., never count malloced buffers, and always use b_bufsize instead
of b_bcount.
If DEBUG is defined, the periodic calls to lfs_countlocked will now complain
if either counter is incorrect. (In the future lfs_countlocked will not need
to be called at all if DEBUG is not defined.)
2000-11-17 19:14:41 +00:00
bouyer
42681a6a9f
Supports ETHERCAP_VLAN_MTU. Tested on sbus hme on Ultra/1.
...
Thanks to Andrei Petrov for the hint !
2000-11-17 19:08:00 +00:00
mrg
45d83e5996
add SWAP_GETDUMPDEV command support.
2000-11-17 11:39:39 +00:00
mrg
04e13e6ce8
add SWAP_GETDUMPDEV command.
2000-11-17 11:32:55 +00:00
simonb
1982741ab4
Don't need to extern ncpus - <sys/systm.h> has this.
2000-11-17 05:07:45 +00:00
erh
7d91e4941a
Regen.
2000-11-17 03:58:01 +00:00
erh
f96aee80d6
Make the linux compatibilty code work on the alpha. (horay!) (at last!)
...
Two main changes:
Create a linux_elf64_copyargs that uses the linux specific LinuxAuxInfo
structure. This is only used on the alpha. i386 and m68k use the
standard elf copyargs function.
Since linux's approach to binary compatibilty is to look as much
like osf1 as possible, add all the osf1 syscalls that we have
implemented to the linux syscall table. This includes get/setsysinfo,
ported from FreeBSD.
In order for linux compat to work you must have COMPAT_OSF1, COMPAT_43,
COMPAT_09, COMPAT_12 and COMPAT_13 on also.
2000-11-17 03:55:17 +00:00
erh
dad312de14
Provide some more useful information.
2000-11-17 03:40:25 +00:00
erh
2681c46114
Regen.
2000-11-17 03:07:25 +00:00
erh
447472c902
Port FreeBSD's osf1_sys_getsysinfo() and fill in setsysinfo. These are
...
incomplete at the moment (notable the fp_control stuff) but they need to
exist for the linux compatibilty code. All other osf1 syscalls needed for
linux compat are already here.
2000-11-17 03:06:28 +00:00
jdolecek
4ba9d75b97
pass pointer to used exec_package to emulation-specific exec hook -
...
emulation code may make decisions based on e.g. exec format
2000-11-16 20:04:33 +00:00
matt
b605c997e2
Commit changes to SCSI working on the VS4000/9x. "Don't overthink the
...
plumbing! Duh!".
2000-11-16 19:25:40 +00:00
scw
d00258d484
bus_dmamem_map() expect a cpu-relative physical address...
2000-11-16 19:12:20 +00:00
thorpej
40460ae8eb
Need to provide CACHELINESIZE in _STANDALONE environments, too.
2000-11-16 19:02:33 +00:00
jdolecek
97669de104
make i386_nocpuid_cpus[] and i386_cpuid_cpus[] const - this pushes
...
another ~1.4KB to text section
2000-11-16 17:00:17 +00:00
jdolecek
def6d1b4ac
Newer Intel PIII processors also make available Brand ID value through
...
cpuid instruction, which is used to differentiate between Celeron, common PIII
and PIII Xeon; recognize it and print appropriate info if applicable
Information taken from Intel's (R)
Intel Processor Identification and the CPUID Instruction, AP-485
2000-11-16 10:19:02 +00:00
jdolecek
a9ad986a90
Update cpuid table according to information sent by Scott Telford
...
in port-i386/11502, with only sligh change for Coppermine entry -
cpus with family 6, model 8 are not all Celerons, they can be
either common PIII, Xeon or Celeron
2000-11-16 09:06:17 +00:00
matt
9dd26cf7c4
It's hfs.c, not hfs. Add -I${.CURDIR} for objdirs. XXX hfs.c should
...
be integrated into libsa.
2000-11-16 07:36:04 +00:00
scottr
4db27b3da4
Enhance readability through consistent function parameter names and KNF.
...
There are no functional changes.
2000-11-16 07:04:12 +00:00
thorpej
d96bb89daf
Use <powerpc/powerpc/trap_subr.S>
2000-11-16 05:34:03 +00:00
thorpej
216902b8d2
Trap routines from the macppc port, to be used by other PowerPC
...
ports (only amigappc's differs).
2000-11-16 05:33:04 +00:00
thorpej
eb04d01500
Add an lcsplx() ("splx for locore") like the other PowerPC ports
...
have. This will allow us to share locore code with them.
2000-11-16 01:56:05 +00:00
scw
598ce19336
Doh! Revert all but the baudrate clock changes from that last commit;
...
a bunch of local stuff crept in.
2000-11-15 21:32:03 +00:00
thorpej
b48d3f7bd0
change a couple of needs-count to needs-flag (which is all they need).
2000-11-15 21:14:14 +00:00
jdolecek
ea9f7ed6d5
introduce SIGACTION_PS() macro - this is similar to SIGACTION(), but works
...
for (struct sigacts *) instead of (struct proc *)
2000-11-15 21:13:58 +00:00
jdolecek
4046a1bd78
if AC97_CODEC_DOES_VRA is not supported, only print warning than
...
hw Variable Rate Audio is not supported and continue attaching the driver.
This is I believe more correct than what was done in rev 1.5
2000-11-15 21:06:33 +00:00
thorpej
e6fa7f2fc8
Move the ISA DMA cookie into isadma_machdep.c.
2000-11-15 19:31:35 +00:00
thorpej
9298fd52fc
Garbage-collect some more stuff.
2000-11-15 19:30:10 +00:00
bouyer
0d0fd7718e
Per discussion with Jason, change flags filter to
...
(IFF_UP | IFF_BROADCAST | IFF_RUNNING | IFF_ALLMULTI | IFF_SIMPLEX)
Also, put the ifp->if_opackets++ at the rigth place so that the counter is
incremented even when the parent is OACTIVE.
Fix a bug in vlan_input where the ethernet src and dst addrs would not be
correct because we only memmove() only ifv->ifv_encaplen instead of
sizeof(struct ether_header).
2000-11-15 18:15:11 +00:00
pk
521b17daa6
Adjust OF_setprop() prototype.
2000-11-15 16:15:01 +00:00
pk
4a80a32735
Adjust setprop() prototype to match the one in dev/ofw/openfirm.h
2000-11-15 16:14:13 +00:00
pk
439b4b325a
OF_getproplen(), OF_nextprop() and OF_setprop() prototypes are now in
...
dev/ofw/openfirm.h
2000-11-15 16:13:10 +00:00
pk
11eb59d511
Adjust setprop() prototype to match that in dev/ofw/openfirm.h
2000-11-15 16:12:01 +00:00
tsubai
ced4cea08e
Fix an uninitialized variable reference.
2000-11-15 15:01:14 +00:00
tsubai
654fcfa344
Remove an unused variable.
2000-11-15 14:43:44 +00:00
augustss
ef36370776
Regen.
2000-11-15 14:36:50 +00:00
augustss
d57ee8b358
Add Sony memory stick.
2000-11-15 14:36:09 +00:00
tsubai
0d339b0df5
Screen console works now.
2000-11-15 14:29:40 +00:00
pk
503701f0d3
OF_nextprop: make OUT argument type `void *'
2000-11-15 14:27:26 +00:00
tsubai
9b85cc40d4
Keyboard and mouse support for news5000.
2000-11-15 14:04:05 +00:00
onoe
1e584c9cec
Adopt the recent change to makesyscalls.sh (char * -> const char * const)
...
to make kdump compilable for arch without linux emulation.
2000-11-15 08:34:03 +00:00
scottr
96cb29b773
As was the original intent a long, long time ago -- but in this galaxy, and
...
in fact on this planet -- generate a SIGILL for user-mode A-line traps.
The core of this change is taken verbatim from PR 10511, submitted by
Christian Bauer.
2000-11-15 07:15:36 +00:00
scottr
1609858811
The Cuda-based ADB hardware has the ability to queue some commands and
...
return control to the main CPU before completing the ADB transaction.
Double the adb_op_sync() timeout as a result. Fixes PR 11310.
2000-11-15 06:35:51 +00:00
enami
038ca0a146
Make isa_machdep.c compile again.
2000-11-15 02:00:31 +00:00
enami
1ef516e9be
Pull in uvm_extern for PAGE_SIZE.
2000-11-15 01:59:35 +00:00
enami
c4c6285008
Don't allow t_linesw to be NULL.
2000-11-15 01:47:14 +00:00
enami
c816e13706
Adjust nlinesw correctly.
2000-11-15 01:42:53 +00:00
enami
54f723723a
Cosmetic changes.
2000-11-15 01:41:22 +00:00
thorpej
b84f740be0
Move bpfattach()/bpfdetach() calls into ether_ifattach()/ether_ifdetach().
2000-11-15 01:02:11 +00:00
matt
960800cbb8
Convert some spaces to tabs.
2000-11-15 00:49:31 +00:00
matt
e720f8addf
Add MFS and vnd.
2000-11-15 00:46:35 +00:00
matt
dbe8de94a8
back out my change powerpc/conf/files.ofw. Enable the inclusion of
...
dev/ofw/files.ofw on macppc. Add openfirm to ofppc/conf.c
2000-11-15 00:39:31 +00:00
matt
39dc5fc58b
Add openfirm pseudo-device.
2000-11-14 23:42:35 +00:00
matt
c0122f4013
Add fwlynx PCI attachment
2000-11-14 23:40:44 +00:00
matt
ffd7494144
Add openfirm
2000-11-14 23:37:58 +00:00
matt
617742b256
Add a fwlynx device. Move the file for fwohci to files.ieee1394
2000-11-14 23:37:20 +00:00
thorpej
990d23039d
NBPG -> PAGE_SIZE.
2000-11-14 22:55:51 +00:00
thorpej
ec0069dd37
NBPG -> PAGE_SIZE
2000-11-14 22:55:05 +00:00
matt
8ba706bdfd
Add rnd & openfirm to POWERMAC
...
Add openfirm and commmented-out firewire stuff to GENERIC
2000-11-14 22:33:24 +00:00
thorpej
e6f6181e82
NBPG -> PAGE_SIZE
2000-11-14 22:26:32 +00:00
thorpej
be14fd9db1
Use round_page() instead of roundup(..., NBPG).
2000-11-14 22:23:06 +00:00
thorpej
e39f7bbe1c
NBPG -> PAGE_SIZE
2000-11-14 22:16:38 +00:00
thorpej
38ee35826a
NBPG -> PAGE_SIZE.
2000-11-14 22:14:53 +00:00
thorpej
b7d004daa6
Use round_page() instead of roundup(..., NBPG).
2000-11-14 22:13:20 +00:00
matt
ca735c9a04
Add initial support dual-CPU G4. At least finds 2nd CPU.
2000-11-14 21:55:25 +00:00
matt
6e88c0d0d6
Add a openfirm entry to conf.c
2000-11-14 21:46:09 +00:00
matt
58645ba248
Add support for /dev/openfirm.
...
Add OF_nextprop support.
2000-11-14 21:22:43 +00:00
matt
1936d0565a
some cleanup. Add back OFIOCGETOPTNODE.
2000-11-14 21:10:05 +00:00
matt
a790bc7690
Add OFIOCGETOPTNODE (now that I know how to implement it).
2000-11-14 21:07:26 +00:00
pooka
56d104de33
add I2O to make config work again
2000-11-14 20:28:22 +00:00
itojun
68f0fe3840
make sure every m_aux will be freed.
...
there are direct use of MFREE() from sys/kern.
(we experienced no memory leak so far, but if we use m_aux for other purposes,
we will need this change)
2000-11-14 20:05:28 +00:00
augustss
eb9736c09a
Add uscanner.
2000-11-14 19:52:04 +00:00
thorpej
fb50850754
We use 4K VM pages on the VAX. Make PAGE_SIZE and friends into
...
compile-time constants.
2000-11-14 19:49:57 +00:00
thorpej
eff2f3d04f
We use 4K pages on the x86k. Make PAGE_SIZE and friends into
...
compile-time constants.
2000-11-14 19:47:25 +00:00
itojun
99fac6ed3e
need uvm/uvm_extern.h for PAGE_SIZE
2000-11-14 19:44:34 +00:00
thorpej
c9ff0b7af1
Sun3 and Sun3x both use 8K pages. Make PAGE_* and friends into
...
compile-time constants.
2000-11-14 19:34:26 +00:00
thorpej
fc082857f5
'532 has 4K pages. Make PAGE_SIZE and friends into compile-time
...
constants.
2000-11-14 19:31:51 +00:00
thorpej
3d2726d992
We use 4K pages on the NeXT. Define PAGE_SIZE and friends to be
...
compile-time constants.
2000-11-14 19:29:00 +00:00
thorpej
091d40d586
We use 4K pages on the news68k. Make PAGE_SIZE and friends into
...
compile-time constants.
2000-11-14 19:23:07 +00:00
thorpej
ecf0470012
We use 4K pages on the mvme68k. Override PAGE_SIZE and friends to
...
be compile-time constants.
2000-11-14 19:12:58 +00:00
thorpej
9f60ecd809
We use 4K pages on the mac68k. Make PAGE_SIZE and friends into
...
compile-time constants.
2000-11-14 19:07:34 +00:00
thorpej
186d9e105e
We use 4K pages on the hp300. Make PAGE_SIZE and friends
...
compile-time constants.
2000-11-14 19:03:22 +00:00
thorpej
e6da7eebba
We use 8K pages on the Atari. Make PAGE_SIZE and friends into
...
compile-time constants.
2000-11-14 19:01:09 +00:00
thorpej
f74dfc7755
We use 8K pages on the Amiga. Make PAGE_SIZE and friends into
...
compile-time constants.
2000-11-14 18:58:29 +00:00
thorpej
cb38ab39ab
We use 4K pages on MIPS systems (see mips_param.h), so override
...
PAGE_SIZE and friends to be compile-time constants.
2000-11-14 18:55:16 +00:00
thorpej
cfe0892ed3
NBPG -> PAGE_SIZE
2000-11-14 18:42:55 +00:00
thorpej
60f33f91c2
Pull in <uvm/uvm_extern.h>
2000-11-14 18:35:10 +00:00
thorpej
275539f03c
NBPG -> PAGE_SIZE
2000-11-14 18:21:00 +00:00
thorpej
10b31e1ebc
The i386 page size is fixed -- override PAGE_SIZE, et al, so that they
...
are compile-time constants.
2000-11-14 18:01:54 +00:00
bouyer
34a57dc139
Regen.
2000-11-14 16:20:55 +00:00
bouyer
41e8f20175
Add Alteon and netgear 1000baseT variants of the gigabit ethernet adapter.
...
From FreeBSD
2000-11-14 16:20:20 +00:00
augustss
1ae6bcbbf0
Acerscan 320U doesn't do strings right. From FreeBSD.
2000-11-14 15:33:04 +00:00
tsubai
f744e6327a
Correct VRAM size.
2000-11-14 15:32:03 +00:00
augustss
ab324086df
Set the open flag when opening the scanner.
2000-11-14 13:57:16 +00:00
kleink
a5a6bbd1a8
Defopt BLINK.
2000-11-14 11:34:51 +00:00
tsubai
e3ae93dfd4
Add hfs support. Currently this layer simply throw the request to the OF
...
(and the OF recognizes HFS).
2000-11-14 11:25:34 +00:00
onoe
f1c77e81db
Add support for link fragmentation and reassemble for IEEE-1394.
...
XXX: drain is still not yet implemented, thus memory leak will occur
in case of any of fragment lost.
2000-11-14 11:14:55 +00:00
pk
fbf62501af
Mark the "TOSHIBA, XM-4101TASUNSLCD" CD-R for a-sync operation only.
2000-11-14 08:52:35 +00:00
matt
edc0af8cd3
Add OF_nextprop and required conf-glue for /dev/openfirm.
2000-11-14 07:13:02 +00:00
matt
7d085e8e51
Add openfirmio which is an ioctl interface to OpenFirmware.
2000-11-14 06:45:54 +00:00
matt
3b275bc230
Add OF_nextprop and OF_setprop prototypes.
2000-11-14 06:44:12 +00:00
matt
1365092255
de __P'd.
2000-11-14 06:42:27 +00:00
thorpej
45804ccf0e
A respectable GENERIC, loosely based on the macppc GENERIC.
2000-11-14 06:01:09 +00:00
perseant
b880487624
Initialize the cleaner information in the Ifile from the same info from
...
the superblock at fs mount time, enabling the previous patch to fsck_lfs.
Patch from Jesse Off <joff@gci-net.com> (Closes PR #11470 ).
2000-11-14 00:42:55 +00:00
jdolecek
78b866e95a
change the type of *syscallnames[] array to 'const char * const foo[]'
2000-11-13 21:32:15 +00:00
tsubai
03fa172a01
No longer used.
2000-11-13 19:05:58 +00:00
abs
d72a269feb
If we only ever have a strongarm CPU, use
...
makeoptions COPTS="-O2 -march=armv4 -mtune=strongarm"
some files previously had
makeoptions COPTS="-O2 -march=strongarm -mtune=strongarm"
some had no option at all
2000-11-13 18:40:34 +00:00
tsubai
a564a7a2a9
Switch to wscons.
2000-11-13 16:48:41 +00:00
jdolecek
ec93c3dd25
when evaluating CPU speed, make the wait 0.1s instead of 1s - the accuracy
...
difference is like 0.008% on my system and the delay is now almost unnoticable:)
Discussed with Jason Thorpe, Frank van den Linden.
2000-11-13 16:40:40 +00:00
pk
db6832a4b6
Detect "EOF" conditions on the memory-special files.
2000-11-13 15:31:44 +00:00
pk
4c54ce2034
Define ncr53c9x_ioctl() and use it to start sync negotiation.
2000-11-13 15:24:22 +00:00
minoura
21e684b743
New line discipline.
2000-11-13 15:20:28 +00:00
chs
1fd1a318cb
in swap_off(), reverse the order of vrele() and VOP_CLOSE() so that
...
devices will actually be notified if this is the last close.
this allows raidframe swap devices to be marked clean.
also, move the corresponding vref() into swap_on() for symmetry
and improve some comments.
2000-11-13 14:50:55 +00:00
minoura
fd524293aa
Look at opt_m680x0.h to determine whether to use -m68060 compiler option,
...
since options M68060 (etc.) is now defopt'ed.
Pointed out by NISHIMURA Takeshi <nsmrtks@comd.nara.sharp.co.jp>.
Use -m68020-60 instead of -m68060 to ensure not to use new instructions.
2000-11-13 14:47:14 +00:00
perseant
a07c936a59
Remove debugging code that accidentally went in with yesterday's commit.
2000-11-13 00:24:30 +00:00
pk
84ee07379b
Remove left-over turds from previous __P() cleanup.
2000-11-12 21:07:21 +00:00
thorpej
e37508421d
Due to a quirk (err, bug?) in IP Filter (mbuf freed without setting *mp
...
to NULL), the NULL check is insufficient. Also make sure fr_check()
returned 0.
2000-11-12 19:50:47 +00:00
bouyer
3659b305e5
In vlan_config(), filter flags inherited from parent interface to
...
(IFF_UP | IFF_BROADCAST | IFF_RUNNING | IFF_ALLMULTI | IFF_SIMPLEX)
Without this, if the parent is OACTIVE of PROMISC at config time, we
loose.
2000-11-12 19:39:42 +00:00
thorpej
cbf6f69cb2
Oops, the mbuf may have been freed -- do a NULL check in the wrapper.
2000-11-12 19:29:31 +00:00
bouyer
089961e7c5
- use jumbo rx if mtu is too big to fit in one mbuf, not when larger than
...
ETHERMTU.
- add support for ETHERCAP_VLAN_MTU.
2000-11-12 18:32:43 +00:00
jdolecek
ab8c5177be
use SIGACTION() macro to get on appropriate sigaction
...
structure
2000-11-12 18:17:56 +00:00
perseant
c4c7b2adbb
Do not needlessly dirty segment table blocks during lfs_segwrite,
...
preventing needless disk activity when the filesystem is idle. (PR #10979.)
2000-11-12 07:58:36 +00:00
mycroft
63270df506
Sync with GENERIC.
2000-11-12 06:52:37 +00:00
toshii
af22f56146
Fix obsolete comments in lfs_writeinode since rev. 1.27.
...
New comments are mostly from perseant, with my additions.
2000-11-12 02:13:51 +00:00
pk
258784289c
This file is no longer needed; it's superseded by the MI mk48xx driver.
2000-11-11 12:34:22 +00:00
pk
d80d0a8b06
Print host ID in hex.
2000-11-11 12:24:07 +00:00
pk
f88b137bd5
De-__P() this file.
2000-11-11 12:19:20 +00:00
pk
53c656364f
Switch to MI mk48xx and intersil7170 time-of-day clock drivers.
2000-11-11 12:14:03 +00:00
pk
109cb0fd5e
Rename storage for the sun4 idprom structure to `sun4_idprom_store'.
2000-11-11 12:12:46 +00:00
pk
ad9bda9339
Change `nvram size' data type to `bus_size_t'.
2000-11-11 11:59:42 +00:00
scw
d7b439dff5
udp.c is now needed in SRC_sa.
2000-11-11 11:36:17 +00:00
pk
0d4a68ac9b
Pull in the mk48txx and intersil7170 drivers.
2000-11-11 11:19:52 +00:00
pk
035ceca5b2
Add note about time-of-day and interval timer programming on this chip
...
are combined into the same (write-only!) control register.
2000-11-11 11:18:07 +00:00
pk
526def8fd1
Add a function to retrieve the size of the on-chip NVRAM area.
2000-11-11 11:03:31 +00:00