itojun
0319b78e54
copyright clarification. from openbsd
...
1.
Paul Mackerras and the Australian National University have worked things
out, and as a result, Paul now owns copyright on all these files, with the
proper terms.
2.
and... we managed to contact "Eric Rosenquist" <eric@rosenquist.com> through
the help of people who found him: first one was nick.stott@cogeco.ca
This now has a better license. Two authors left to go.
2002-09-13 14:32:11 +00:00
christos
9c59710333
Move humanize_number(9) to the ifdef _KERNEL section, because it conflicts
...
with humanize_number(3). In reality, the kernel version should be changed
to more closely match the userland version so that there are no prototype
conflicts.
2002-09-13 14:16:48 +00:00
ad
ca0ac2c78c
Driver for the Sun ZX/Leo framebuffer. This would be called leo, but the
...
amiga port already has a driver by that name.
2002-09-13 14:03:52 +00:00
gehenna
a1d78935eb
overload block/character into u_long field.
...
kern/18234: slightly modified
2002-09-13 13:08:53 +00:00
chuck
fa0cb6c277
increase sc_maxxfer from 63K to 64K. otherwise fsck fails for
...
file systems with larger block sizes.
2002-09-13 03:00:18 +00:00
simonb
f2721c1ee4
Fix indent botch.
2002-09-13 02:16:08 +00:00
simonb
7f4e82e47b
Add CPU_MIPS_DOUBLE_COUNT for the TX49xx cpus.
2002-09-13 01:27:46 +00:00
augustss
614176bdc6
No trailing , in enum (from OpenBSD).
2002-09-12 21:00:42 +00:00
ragge
683a9a8544
Add COMPAT_15 and COMPAT_16 and commented-out dmf.
2002-09-12 19:23:45 +00:00
ragge
32923df5d6
Fix a signal handler bug originally reported by Hugh Graham some year ago:
...
If two signals are sent after each other without the process being run in
userspace between them then the second one will overwrite part of the signal
info stored on the userstack.
Fixed by rewriting and simplifying both the signal delivery code and the
trampoline code. Also bump signal version number to 2.
2002-09-12 18:22:23 +00:00
mycroft
30d477000a
The entry point address for the interpreter must be adjusted by the text
...
section VMA on all platforms. It just happens to 0 normally on everything but
MIPS.
2002-09-12 16:57:44 +00:00
tsutsui
48bddc7728
bus_dmamap_load() can't take BUS_DMA_COHERENT flag.
2002-09-12 16:01:06 +00:00
abs
4bebaafe44
Protect extern zstty_cd with (NKBD > 0) || (NMS > 0)
2002-09-12 12:51:37 +00:00
scw
a9c1bc6c83
Add code to deal with the "Cache Purge/Invalidate can cause TLB Miss"
...
problem, such that a TLB miss no longer occurs.
With the above, it is now safe to enable write-back caching for userland
mappings.
TODO: Deal with cache issues for shared mappings with different VAs.
2002-09-12 12:44:13 +00:00
scw
7e0aa6fcfc
sh5_setasid() now returns the original ASID value.
2002-09-12 12:39:34 +00:00
scw
a73ea332f6
Adapt to new cacheops requirements.
2002-09-12 12:38:42 +00:00
scw
22569e09ed
The cacheops functions now need the physical address of the region
...
to be purged/invalidated.
2002-09-12 12:37:49 +00:00
scw
b0ecf76dd4
sh5_setasid() now returns the value of the previous ASID.
2002-09-12 12:35:00 +00:00
matt
02573a8516
Add non-_KERNEL variants so regress/sys/kern/lock will compile.
2002-09-12 07:31:13 +00:00
augustss
393ae71756
Make it compile. Rename a macro.
2002-09-12 06:42:54 +00:00
bouyer
2bbf86d46b
Regen: add 2 acard pciide controllers.
2002-09-11 20:43:42 +00:00
bouyer
60f292630a
Add 2 accard pciide controllers. From linux.
2002-09-11 20:43:07 +00:00
martin
000826593a
Make kernels without KTRACE work.
2002-09-11 20:19:45 +00:00
gehenna
fcba53f1a9
fix that no major numbers is assigned dynamically if the
...
not-listed-in-majors device switch is loaded.
2002-09-11 16:33:03 +00:00
mycroft
3294e33d95
Don't blindly receive all multicast packets just because we're on a turbo.
...
Pay lip service to making promiscuous mode work.
2002-09-11 13:15:58 +00:00
scw
08dfbb4305
- Be more consistent about using ptel_t where it matters.
...
- Add event counters for some key pmap events (similar to mpc6xx pmap).
- Use the cache-friendly, optimised copy/zero page functions.
- Add the necessary cache management code to enable WriteBack caching
of KSEG1 mappings. Seems to work fine so far.
2002-09-11 11:08:45 +00:00
scw
ecb4124668
- Add cache-friendly, optimised copypage/zeropage functions for use by
...
the pmap module.
- Add {,e}intrnames and {,e}intrcnt to keep kernel-symbol grovelling
tools like vmstat(8) happy.
2002-09-11 11:03:08 +00:00
scw
b08dae4d46
Tweak the interrupt names to properly match reality.
2002-09-11 10:57:50 +00:00
scw
e47c955f01
Get the correct evcnt structure and ipl number when initialising softints.
2002-09-11 10:56:43 +00:00
scw
2b0c53084c
Slight tweak to save one instruction in the pteg TLB miss case.
2002-09-11 10:55:05 +00:00
simonb
6ebf56cc52
Use AU1500_MAC0_BASE as well as a test for setting the MAC addresses
...
of the on-chip interfaces.
2002-09-11 08:30:48 +00:00
itojun
255121cf44
avoid from applying IPsec transport mode to the packets when the kernel
...
forwards the packets.
sync w/kame
2002-09-11 08:15:37 +00:00
thorpej
b00903c834
Fix signed/unsigned comparison warnings from gcc 3.3.
2002-09-11 07:22:19 +00:00
mycroft
f13a876c12
Remove straggling NEXT_TURBO #ifdefs.
2002-09-11 07:17:33 +00:00
mycroft
d6a62735b7
Attach nextdisplay on the mono turbo.
2002-09-11 07:06:16 +00:00
mycroft
8ac5416160
In en_put(), if we don't get a packet, just return 0. This is how we tell
...
the libsa code to retransmit.
2002-09-11 06:32:07 +00:00
itojun
822449ac65
KNF - return is not a function.
2002-09-11 05:36:26 +00:00
mycroft
d5e3432796
Don't know whether it works, but enable the '030 support for the Hell of it.
2002-09-11 04:17:01 +00:00
itojun
8808abb7b8
correct pointer signedness mixups. sync w/kame
2002-09-11 03:45:44 +00:00
itojun
75e1911429
reduce diff w/kame
2002-09-11 03:23:24 +00:00
oster
20185a3677
Amazingly enough, nothing is actually using the *_bxor3() functions.
...
#if 0 them.
2002-09-11 03:01:23 +00:00
oster
9dfe7eee91
Use the newly added RF_DEBUG_STRIPELOCK to effectively remove a bunch
...
of stuff that most of the world will never want to use.
2002-09-11 02:52:33 +00:00
oster
fc178c4727
Add a new debugging #define: RF_DEBUG_STRIPELOCK
2002-09-11 02:51:21 +00:00
itojun
9401012487
KNF - return is not a function. sync w/kame.
2002-09-11 02:46:42 +00:00
itojun
6dedde045a
correct signedness mixup in pointer passing. sync w/kame
2002-09-11 02:41:19 +00:00
oster
cdb79dd4ae
Nuke unneeded #include "rf_debugprint.h"
2002-09-11 02:22:49 +00:00
mycroft
a0688f1086
Determine turbo-ness based on the ROM machine type here, too.
2002-09-11 02:17:14 +00:00
mycroft
c618f2cc87
Comprehensive patches from Christian Limpach:
...
* Fix problems with the DMA and SCSI drivers.
* Make turbo machines sort of work.
Additional fixes from me:
* Determine if we're a turbo at boot time, by looking at the ROM machine type.
* Set the display size correctly (1120 pixels wide, but padded to 1152 only on
non-turbo machines).
Caveats:
* SCSI doesn't work on the turbo (or at least it blows chunks with no devices
attached).
* Media selection doesn't work on the turbo (the BMAP stuff doesn't exist on
turbo machines).
* The boot block is prone to timing out.
2002-09-11 01:46:29 +00:00
scw
151ee8c81a
Fix a devsw merge botch.
2002-09-10 21:10:18 +00:00
nathanw
cdee09ffbb
At least some versions of the M-Systems DiskOnKey also need
...
UMASS_QUIRK_NO_MAX_LUN.
2002-09-10 16:52:48 +00:00
scw
bd0dd2e2e1
Add "machine fpr" command. This dumps the FPU registers for the current,
...
or a specified, process.
2002-09-10 12:44:38 +00:00
scw
fe2f8acf65
Another big round of pmap fixes/cleanup:
...
- Use the PMAP_ASID_* constants from pmap.h
- Track pmap_pvo_{enter,remove}() depth in the same way as mpc6xx's pmap
(on which this pmap was originally based).
- Some misc. tidying up and added commentary.
- Use the VA/KVA to select whether to use the IPT or PTEG instead of
checking which pmap is being operated on.
- Add a handy DDB-callable function which will scan the kernel IPT
looking for inconsitencies.
- Finally, when unmapping a pool page, purge the data cache for the
page. This permits write-back caching to be enabled for kernel
text/data.
2002-09-10 12:42:03 +00:00
scw
bcf9491257
Always save/restore the FPSCR into/from the sigcontext.
2002-09-10 12:33:44 +00:00
scw
1a8208566d
- Remove the RESVEC vector table (panic/debug traps). It's now in
...
machine-specific code.
- Re-work the code which detects a nested critical section event.
We can now determine who is the owner of the critical section, and
what event occurred while it was owned.
- Work-around a silicon bug which can cause a nested critical event.
In the _EXCEPTION_ENTRY() macro (which sets up the critical section),
if there is a pending hardware interrupt which has a higher priority
than the current IMASK, then the "putcon" which supposedly clears SR.BL
and sets SR.IMASK to 0xf is not atomic. The pending hardware interrupt
will be taken, causing a nested critical section event. The work-around
is to update SR.BL and SR.IMASK separately using two "putcon" insns.
2002-09-10 12:27:21 +00:00
scw
cd4797ccfa
- Give a process a SIGFPE if it gets an FPU exception.
...
- Make it possible to at least *try* to resume execution if we
get an NMI.
- Major clean-up of the panic/critical section trap handlers.
The dumped state is now much more accurate.
2002-09-10 12:15:39 +00:00
scw
5359676ddc
- Add some comments,
...
- Fully initialise the FPU state (if enabled),
- Implement delay() in assembly code.
2002-09-10 12:11:03 +00:00
scw
c65ee4aa71
Add the critical section types, and cache mode values.
...
Delete a couple of unused struct cpu_info fields.
2002-09-10 12:08:49 +00:00
scw
d9d434b5ed
Always save/restore the FP status/control register across a context switch
...
(If the FPU is enabled).
Add a DEBUG check to ensure the incoming context's SR is sane.
2002-09-10 12:06:49 +00:00
scw
d7e84a627e
- Remove the version of delay() which used the cycle counter register.
...
There were some problems related to wrap-around which lead to
delaying much longer than requested.
- Cacheops additions.
2002-09-10 11:59:50 +00:00
scw
0d7cafd74b
Add a few more cpu-specific cacheop functions.
2002-09-10 11:56:32 +00:00
scw
7fa549e8d4
Move the RESVEC vector table/handlers to here, since some if it is,
...
essentially, machine dependent.
2002-09-10 11:53:14 +00:00
scw
fdd9155a03
Manifest constants for errors pertaining to recursive critical section
...
handling.
2002-09-10 11:51:01 +00:00
dbj
c1005e24ba
reorganized code slightly that converts a partition map to a disklabel.
...
No functional change intended by this commit.
2002-09-10 11:31:10 +00:00
dbj
1771e13a7e
added defines for new partition types found in the wild:
...
"Apple_UFS"
"Apple_Boot"
"Apple_Loader"
"Linux"
"Linux_swap"
removed duplicate define for "Apple_Patches"
2002-09-10 11:28:56 +00:00
scw
d2336580d6
Manifest constants for ASID values.
2002-09-10 11:11:44 +00:00
scw
8cd70003d7
Add external reference for _sh5_delay_constant.
2002-09-10 11:11:12 +00:00
gmcgarry
857f23b69e
Garbage-collect unused sdreset(). Remove commented-out prototypes.
2002-09-10 04:19:57 +00:00
jtk
2bbcff81d5
restore ancestral RCS ID from 4.4BSD-Lite2
2002-09-10 02:52:40 +00:00
simonb
db5e8d65c9
Fix tyop in local function name.
2002-09-10 00:52:37 +00:00
simonb
e2125ae174
Share disksubr.c across all evbmips "ports" (it was identical).
2002-09-09 06:40:40 +00:00
simonb
221f834ea3
Remove some unused code.
2002-09-09 06:36:39 +00:00
simonb
f41231cffc
Fix the order of the CPU revision and company options fields in the cpu
...
table for the Alchemy CPUs; successfully recognises an Au1500 now.
2002-09-09 03:42:04 +00:00
oster
5965f8b92a
Disallow 'reconstruct-in-place' on a component that has failed
...
and has already been reconstructed to a hot spare.
2002-09-09 02:44:17 +00:00
simonb
0f1300fa95
Remove commented-out NFS_BOOT_RWSIZE option.
2002-09-09 02:36:11 +00:00
simonb
54ef88d289
In the idle functions, set curproc to NULL and (#ifdef LOCKDEBUG) call
...
sched_unlock_idle before enabling interrupts. LOCKDEBUG kernels now
boot successfully.
Thanks to Chris Gilbert for helping fix this.
2002-09-09 02:32:38 +00:00
oster
23f63d631e
On a 'raidctl -f' or 'raidctl -F', close the failed component.
...
Thanks to Grant and Matt (phone) for poking me about this.
2002-09-09 01:54:53 +00:00
simonb
378a5c4c85
Include "opt_lockdebug.h" here to #ifdef LOCKDEBUG actually does something.
2002-09-09 01:03:10 +00:00
isaki
4ff27b57fb
Correct xfer->busy_free status in DIAGNOSTIC.
2002-09-08 07:58:14 +00:00
elric
c242f201c5
Modified to avoid compiler warnings. The specific warning related
...
to const BF_KEY * vars, and I chose to ``fix'' it in this file
rather than elsewhere in the framework because, although the other
fix was more appropriate, nothing seems to use the code in this
file and hence the risk of disrupting other people was lower. In
the future, the more appropriate change would be to change blowfish.h
and bf_enc.c to have functions with signatures:
BF_encrypt(BF_LONG *, const BF_KEY *);
BF_decrypt(BF_LONG *, const BF_KEY *);
2002-09-08 07:52:41 +00:00
elric
b6db42eac8
Added an include of sys/types.h to get u_int32_t and so on.
2002-09-08 07:41:01 +00:00
tsutsui
be0f4cfb13
Rename some auto variables which might cause misleadings.
2002-09-08 05:35:42 +00:00
elric
7fbd07ccbe
Include <sys/types.h> to allow compilation to occur.
2002-09-07 23:35:37 +00:00
oster
b07b6381d5
Protect rf_PrintDAGList() in a few more places. Thanks to Monroe Williams
...
on current-users for the patch.
2002-09-07 23:11:46 +00:00
elric
29db5af4a5
repoint include file for kernel use.
2002-09-07 22:58:04 +00:00
scw
7af71ec12b
Some tidying up, and a fix for an event counter array overrun
...
which was responsible for corrupting the kernel IPT.
2002-09-07 20:43:32 +00:00
tsutsui
bf49a76d3b
Call setcontext{4,4m}() directly when we already know the CPU type.
...
(inspired by OpenBSD)
2002-09-07 18:51:05 +00:00
gehenna
44802dc550
make this compile.
2002-09-07 11:56:33 +00:00
enami
c2428db9db
Make usr.sbin/ipf/ipftest compiles again.
2002-09-07 00:10:24 +00:00
uwe
d7b7f858cb
Regen for Integraphics Systems CyberPro 2000 and 2010.
2002-09-06 23:58:11 +00:00
uwe
5619fe21f9
Add product ids for Integraphics Systems CyberPro 2000 and 2010.
2002-09-06 23:41:56 +00:00
matt
45e5f68016
Allow MAXPHYS to be overriden. Increase the default MSGBUFSIZE to 2 pages.
2002-09-06 19:26:26 +00:00
gehenna
70c867953d
make this compile with _LKM.
2002-09-06 17:36:19 +00:00
gehenna
13cbb957cf
make this compile.
2002-09-06 16:56:13 +00:00
scw
b5ad0bee9e
Numerous fixes, and some more debug instrumentation.
...
NetBSD/sh5 now reaches multi-user, although there is still
an occasional wedging problem after a wee while of running.
2002-09-06 16:20:48 +00:00
scw
e7281ceb93
- When casting void * to register_t, go via intptr_t instead of uintptr_t
...
so the register is correctly sign-extended.
- Some comment fixes.
- Restore the FP state from the sigcontext if FP regs were saved.
- Fix up r0 for the benefit of the syscall stub.
2002-09-06 15:48:51 +00:00
scw
3644ff25b2
Small optimisation and tweak to copy{,in,out}str() to make them
...
work as advertised for corner cases.
2002-09-06 15:41:07 +00:00
scw
ed033ad71d
Restore the branch-target registers from the correct place...
2002-09-06 15:39:16 +00:00
scw
905138641a
Add the User Status Register to db_regs[].
2002-09-06 15:37:14 +00:00
scw
690813872b
Account for the clock interrupt itself in CLKF_INTR().
2002-09-06 15:36:16 +00:00
scw
12968d78e9
Double-precision FP regs use a single register_t, despite the FP number
...
being a multiple of two. Correct for this in the _JB_DR macro.
2002-09-06 15:35:41 +00:00