mrg
490518af32
convert __ldstub() from a ({}) macro into a properly static inline function.
...
the latter is not valid for C++ so says GCC3.
2003-12-26 06:00:58 +00:00
jmc
0fe36533f0
Wrap some areas with #ifndef _LOCORE so assembly files can pick up some defs
...
from here. Needed for bioscall fixes in PR#14946
2003-12-25 21:03:55 +00:00
jmc
f84b0cd795
Partial fix for PR#14946. Make sure x86 symlinks exist also
2003-12-25 21:02:58 +00:00
nonaka
916ad8c80e
Added corega WLCFL-11 entry.
2003-12-25 17:34:09 +00:00
nonaka
0198828c00
regen.
2003-12-25 17:33:22 +00:00
nonaka
eb9d2e0742
Added "corega WLCFL-11" CF size wireless LAN card.
2003-12-25 17:32:54 +00:00
uwe
2e00e2438d
If "pause before boot" is not set (i.e. user will not be given last
...
chance to cancel the boot), give user a hint by using MB_ICONWARNING
for the "Are you sure?" dialog.
2003-12-25 03:44:11 +00:00
uwe
376514e2fe
Lowercase labels of the "Boot" and "Cancel" buttons.
...
Init progress bar step/position in ProgressBar::create.
Specify WS_EX_CLIENTEDGE style for the progress bar, an empty gray
area between the buttons looks stupid. With 3d edge a user has a hint
there's a progress bar there. While here, make it PBS_SMOOTH, it
looks nicer that way.
2003-12-25 03:19:53 +00:00
manu
834aafd284
Rework Mach exception and Darwin's ptrace. gdb is now able to attach a
...
remote process. This new implementation also passes all the test programs
I've written so far.
- When exceptions come from traps, no UNIX signal should evet be sent.
- Add a lock to ensure a debugger handles only one exception at a time
- Use a structure to hold flavor and behavior in exception ports, instead
of stuffing the two argument into an int.
- Implement new Mach services: thread_suspend, thread_resume and thread_abort
- Implement Darwin's ptrace PT_ATTACHEXC and PT_THUPDATE commands
- Handle NULL second argument correctly in sigprocmask.
- One mistake in the last commit (darwin_tracesig prototype)
2003-12-24 23:22:22 +00:00
manu
3bc6a59873
Small prototype mistake (I'm juggling with too much uncommitted files)
2003-12-24 22:57:22 +00:00
manu
ffb3de5522
Move the sigfilter hook to a more adequate location, and rename it to better
...
fit what it does.
The softsignal feature is used in Darwin to trace processes. When the
traced process gets a signal, this raises an exception. The debugger will
receive the exception message, use ptrace with PT_THUPDATE to pass the
signal to the child or discard it, and then it will send a reply to the
exception message, to resume the child.
With the hook at the beginnng of kpsignal2, we are in the context of the
signal sender, which can be the kill(1) command, for instance. We cannot
afford to sleep until the debugger tells us if the signal should be
delivered or not.
Therefore, the hook to generate the Mach exception must be in the traced
process context. That was we can sleep awaiting for the debugger opinion
about the signal, this is not a problem. The hook is hence located into
issignal, at the place where normally SIGCHILD is sent to the debugger,
whereas the traced process is stopped. If the hook returns 0, we bypass
thoses operations, the Mach exception mecanism will take care of notifying
the debugger (through a Mach exception), and stop the faulting thread.
2003-12-24 22:53:59 +00:00
manu
54db0e51ad
Split sys_lwp_suspend, just like sys_lwp_unsuspend is split. We get
...
sys_lwp_suspend, with the sanity checks, and lwp_suspend, with the
actual implementation.
2003-12-24 22:42:11 +00:00
briggs
5786d9fb02
Configuration file for the TeamASA NPWR-FC.
...
XXX - Note that, because the serial interrupt uses the i80321's HPI, this
configuration will not work as-is without some changes in i80321_icu.c.
2003-12-24 19:41:09 +00:00
tron
3b56a667e6
Support i82845G/GL based motherboards without an Integrated Graphics
...
Device. Patch supplied by Nicolas Joly in PR kern/23860.
2003-12-23 19:56:58 +00:00
uwe
a766825ba3
Trim trailing whitespace.
2003-12-23 17:22:20 +00:00
uwe
37536630d1
Make the progress bar use the whole width between the Boot and Cancel
...
buttons. Since there are 11 calls to menu.progress() in hpcboot, set
the progress bar range to 0..11, not 0..12.
In RootWindow::WMCreate - when we mean to adjust the top of the client
are by the button height, use _button_height, instead of cmdbar_height
(they now happen to be equal).
2003-12-23 17:18:25 +00:00
uwe
0c9676c97b
Set meaningful error_message is attachLoader fails.
...
Tweak the way we set "default" error_message.
2003-12-23 16:50:22 +00:00
uwe
55cc78e064
Trim trailing whitespace.
2003-12-23 16:26:48 +00:00
uwe
780ccfc58e
Move IDC_OPT_AUTO_INPUT after IDC_OPT_AUTO to get the expected tab-order.
2003-12-23 16:25:35 +00:00
uwe
849e108215
Reverse the order of IDC_CONS_CHK* checkboxes so that they have
...
"expected" left-to-right Tab-order.
2003-12-23 15:37:11 +00:00
uwe
15cd36d7f0
Widen the "root file system" group to line up with the controls above it.
2003-12-23 15:29:36 +00:00
uwe
789be11611
In MainTabWindow::layout don't touch the Z-order of IDC_MAIN_OPTION_*
...
controls as this has a nasty side effect of messing the Tab-order as
well.
2003-12-23 15:24:26 +00:00
uwe
734ce0e5ab
Trim trailing whitespace.
2003-12-23 15:10:01 +00:00
uwe
f35f57125f
Do not replace the boot log text completely on every print - that
...
causes horrible flicker. Instead append it and scroll to the caret.
2003-12-23 15:08:33 +00:00
martin
d11a3aeebb
Only ACK pending interrupts (instead of all possible). Log interrupts we
...
probably should have handled but didn't. Minor cleanup.
2003-12-23 13:46:18 +00:00
pk
041503b9d5
xycattach: use correct map in vme_dmamap_create().
2003-12-23 13:15:18 +00:00
pk
d1c155d15c
Some older devices do not understand the `disable block descriptors' bit in
...
the mode sense request. So fall back on mode sense data including a block
descriptor section.
XXX this applies to the `page 4' case. The `page 5' didn't consider the
possible presence of a block descriptor at all, though it did allow the
device to return one. While that's fixed now, the `page 5' mode sense
does not use the `disable block descriptors' bit.
I'm not sure we should bother with this at all..
2003-12-23 13:12:25 +00:00
kochi
71ef8c54d3
add ACPICA_PEDANTIC option.
2003-12-23 10:11:42 +00:00
ad
520489e15a
MAXINE keyboard and mouse now works, albeit with some minor issues.
2003-12-23 09:39:46 +00:00
hamajima
14ee57b05b
only aceride nedds in L-Router
2003-12-23 08:40:55 +00:00
uwe
c87372b749
Load ".symtab" section before ".strtab". The code to pack the symbol
...
table (kern_ksyms.c:addsymtab) relies on that order.
2003-12-23 04:59:44 +00:00
uwe
36fce64101
Call UpdateWindow after user responded to the safety message dialog,
...
so that the window can repaint areas damaged by the dialog before the
message pump is stopped while the boot is in progress.
2003-12-23 04:41:13 +00:00
uwe
816df014fc
Oops, add braces forgotten in 1.8.
2003-12-23 03:18:13 +00:00
sekiya
5c3f47767d
Regen.
2003-12-22 10:29:41 +00:00
sekiya
4e9f2db432
Add MELCO LUA-U2-KTX 10/100 USB network interface IDs. Uses uax driver.
2003-12-22 10:27:51 +00:00
dyoung
66e744eb8b
Fix typo: atw(4) was listed as an Aironet card instead of ADMtek.
2003-12-22 10:10:41 +00:00
dsl
4bf8ba6f30
Fix problems booting disks with extended partition from grub (and other
...
non-netbsd mbr code) - thanks to Joe Thiemann for finding this...
2003-12-21 20:56:40 +00:00
oster
cdbecad002
(Although I want this code to Go Away, I might as well fix this bug for completeness)
...
If we don't have enough memory to allocate the pda freelist, make sure to
cleanup the asm freelist.
2003-12-21 19:36:31 +00:00
oster
ad00b9c9b0
Since the 5th arg of pool_init() wasn't actually the number
...
of items with which to prime the pool, we now prime each
pool using pool_prime().
2003-12-21 15:56:20 +00:00
manu
ebbd46991b
clock_sleep was 10 times too fast because of a wrong constant.
2003-12-21 14:44:43 +00:00
simonb
16846040d7
Remove trailing blank line.
2003-12-21 11:54:16 +00:00
simonb
2b9ac03f55
No need to break a line - the full line is less than 80 chars long.
2003-12-21 11:38:46 +00:00
kochi
392db58804
correct handling of _SI.SST method as it is described in ACPI spec.
2003-12-21 10:27:23 +00:00
nisimura
eef6d5b9ab
Vr4100 and Vr4300 are not capable of having external caches.
2003-12-21 07:59:25 +00:00
simonb
740725d725
Fix usage of fifth argument to pool_init().
2003-12-21 07:53:58 +00:00
kochi
503ef186e1
Make ACPI interpreter a bit permissive:
...
* emulate ReturnOp where expected but not existing
(which is found in some buggy firmwares)
from FreeBSD's local changes
2003-12-21 07:53:57 +00:00
kochi
2bd0af644b
Give up unresponding hardware when entering sleep state.
...
from FreeBSD's local changes.
2003-12-21 07:51:18 +00:00
kochi
d4eea31ad8
Make ACPI interpreter a bit permissive:
...
* allow access beyond limit of a region
(which is found in some buggy firmwares)
from FreeBSD's local changes
2003-12-21 07:50:26 +00:00
uwe
e769028e50
Fix indentation in previous.
2003-12-21 03:22:20 +00:00
uwe
f94c4399a5
Move progress bar management to rootwindow.cpp so that hpcmenu.cpp
...
doesn't need to know about the GUI hierarchy, etc.
If boot is aborted, rewind the progress bar.
2003-12-21 03:18:31 +00:00
jdolecek
1895548280
comment out COMPAT_NETBSD32 - it doesn't compile, some required
...
datatypes are not defined
2003-12-20 22:12:21 +00:00
lha
56a919527c
add more fields to ata_smart_attr, add structures for selftest log
2003-12-20 19:53:54 +00:00
lha
b8fd6b90c7
add SMART Read Log constant
2003-12-20 19:45:52 +00:00
manu
066436a916
Provide a kernel port for each thread. This makes the emulation of
...
Mach threads much more accurate: we do not confuse threads and tasks
anymore.
2003-12-20 19:43:17 +00:00
fvdl
d99705e941
Put back Emmanuel's sigfilter hooks, as decided by Core.
2003-12-20 19:01:29 +00:00
manu
b23b73b953
Introduce lwp_emuldata and the associated hooks. No hook is provided for the
...
exec case, as the emulation already has the ability to intercept that
with the e_proc_exec hook. It is the responsability of the emulation to
take appropriaye action about lwp_emuldata in e_proc_exec.
Patch reviewed by Christos.
2003-12-20 18:22:16 +00:00
jdolecek
0eb4701e8f
don't enumerate individual minor number cases in mmioctl(), handle all
...
as single 'default' case
adresses part of port-arm/23581 by Richard Earnshaw
2003-12-20 16:22:14 +00:00
tsutsui
4664ac3ea2
- Add /* CONSTCOND */ where appropriate.
...
- Use SFBWRITE32() in recently added sfb_screenblank() too.
2003-12-20 09:17:28 +00:00
yamt
8b9614a490
update a comment to match with the previous change (rev.1.12).
2003-12-20 07:33:03 +00:00
yamt
4dd4230680
restore functionality to decrease kern.maxvnodes which
...
has been backed out during sysctl rework.
2003-12-20 07:26:27 +00:00
nisimura
8dc9a144ab
- Minor coding modifications for VDAC register access.
...
- De-__P() this time.
Tested valid with 4MAXINE.
2003-12-20 07:10:00 +00:00
nisimura
d2164550f9
- Use volatile designations for memory writes to prevent compiler
...
change fallouts.
- De-__P() this time.
Tested valid with DEC3000/300 and 4MAXINE.
2003-12-20 06:41:14 +00:00
thorpej
cbec492f32
Fix a typo.
2003-12-20 06:26:47 +00:00
thorpej
98d14a3f5f
Add support for the Silicon Image 3114 SATALink 4-port SATA controller.
2003-12-20 03:51:27 +00:00
thorpej
37b4ae0b5d
Regen: Add product ID for the SiI 3124 SATALink.
2003-12-20 03:35:00 +00:00
thorpej
ceaa3fe9f5
Add product ID for the SiI 3124 SATALink.
2003-12-20 03:34:19 +00:00
is
cbe2f83110
man/prod id submitted by Pavel Chwalowski in PR 23789.
2003-12-19 22:33:30 +00:00
thorpej
b5a6099c59
While legacy PCI IDE controllers have only 2 channels, it is quite common
...
for modern PCI SATA controllers to have more. Define a new PCIIDE_MAX_CHANNELS
which to specify the maximum number of channels we support, and use it to
allocate channel resources.
2003-12-19 19:29:10 +00:00
thorpej
f6aaf54d60
Some controllers must have certain bits always be set in the IDEDMA_CMD
...
register for proper operation. Add a prototype field in the pciide_channel
for this register and use it as necessary when writing the IDEDMA_CMD
register.
2003-12-19 19:09:20 +00:00
christos
778502d669
More unsigned long casts to make this work on ppc. Fix formatting of debug
...
statements to 0x when there are hex numbers printed.
2003-12-19 19:00:00 +00:00
christos
0ad7f14d46
PR/23802: KIYOHARA Takashi: Bad printf format with CBB_DEBUG. While I am
...
there, make all printfs consistent 0x%lx and (unsigned long) cast.
2003-12-19 18:16:43 +00:00
manu
61257a84f2
fixes for Brazilian keyboard from Rafael Diniz <rafael2k@terra.com.br>
...
http://mail-index.netbsd.org/port-hpcarm/2003/12/18/0000.html
2003-12-19 12:16:36 +00:00
tsutsui
10a356924e
- add options COMPAT_16
...
- Netbsd -> NetBSD
- use options<space><tab>
2003-12-19 11:39:30 +00:00
tsutsui
77cc90f021
- Netbsd -> NetBSD
...
- use options<space><tab>
2003-12-19 11:38:18 +00:00
gavan
f2c2467d5c
Correct masks for PCIXSR decomposition
2003-12-19 10:08:11 +00:00
simonb
b9fbceaf46
Unindent a code block that doens't need to be indented.
2003-12-19 06:02:50 +00:00
thorpej
f94de27bbd
Const poison the channel name.
2003-12-19 05:55:12 +00:00
thorpej
deed3938a2
Move the PCIIDE_OPTIONS_* constants into pciidevar.h
2003-12-19 05:16:57 +00:00
thorpej
07ba04af94
Regen: Add product ID for the Silicon Image 3114 SATALink.
2003-12-19 03:43:07 +00:00
thorpej
d6decc84cb
Add product ID for the Silicon Image 3114 SATALink.
2003-12-19 03:41:21 +00:00
thorpej
df5956af24
Use a register map to find the offsets of various per-channel
...
registers in the BA5 space.
2003-12-19 03:33:52 +00:00
thorpej
52f06d7766
If we're running on a Connectix Virtual PC, we might get a packet longer
...
than a max size Ethernet frame without getting a frame-too-long error. VPC
seems to be adding 4 zeros at the end of every frame. Detect this condition
and simply truncate the packet to a max size Ethernet frame.
I now have no problems with networking on NetBSD inside Virtual PC 6.
2003-12-18 18:39:36 +00:00
thorpej
54da81c66c
A kernel configuration file suitable for Connectix Virtual PC 6.
2003-12-18 17:08:35 +00:00
pk
3c96ae431b
* Introduce uvm_km_kmemalloc1() which allows alignment and preferred offset
...
to be passed to uvm_map().
* Turn all uvm_km_valloc*() macros back into (inlined) functions to retain
binary compatibility with any 3rd party modules.
2003-12-18 15:02:04 +00:00
pk
5218af0651
Use uvm_km_zalloc(...) instead of uvm_km_alloc1(...,1).
2003-12-18 14:15:55 +00:00
uwe
53680504af
Add MB_ICONQUESTION style to the message box.
2003-12-18 12:34:10 +00:00
uwe
d3dfc4c864
Add MB_ICONWARNING style to the message box. Use explicit MB_OK.
2003-12-18 12:25:03 +00:00
uwe
e696bfb83c
Tweak error message.
2003-12-18 12:21:36 +00:00
uwe
545bd4c3b1
Add MB_ICON* styles to message boxes. Use explicit MB_OK.
...
Capitalize messages. Minor tweaks.
2003-12-18 12:18:53 +00:00
uwe
f578e43dec
Capitalize error messages. Consistently use "can't". Minor tweaks.
2003-12-18 12:15:40 +00:00
pk
60181444ca
Condense all existing variants of uvm_km_valloc into a single function:
...
uvm_km_valloc1(), and use it to express all of
uvm_km_valloc()
uvm_km_valloc_wait()
uvm_km_valloc_prefer()
uvm_km_valloc_prefer_wait()
uvm_km_valloc_align()
in terms of it by macro expansion.
2003-12-18 08:15:42 +00:00
grant
44ed233ab5
KNF, spelling and english fixes to some comments. remove trailing
...
whitespace.
2003-12-18 01:10:20 +00:00
uwe
8b377aad68
Add MB_ICONEXCLAMATION style to the "Last chance..." dialog. Change
...
the text to "Push YES...", because that's a Yes/No dialog, not Ok/Cancel.
If the user cancels the boot, set error_message appropriately.
Add MB_ICONERROR style to the "BOOT FAILED" dialog. Explicitly make
it MB_OK, don't rely on the numerology.
2003-12-18 00:00:19 +00:00
abs
7b5d232918
Small fixed to tense in comment.
2003-12-17 22:03:24 +00:00
thorpej
376fccb2a5
Add BA5 space tag/handles for Silicon Image SATALink.
2003-12-17 21:08:29 +00:00
lha
2b1cb68e2f
Fix ICMPV6CTL_ND6_[DP]RLIST, they broke with new sysctl.
...
Makes ndp -r/ndp -p work again, patch from atatat
2003-12-17 18:49:38 +00:00
thorpej
d6d47a7224
Some additional SATA-II registers.
2003-12-17 16:16:36 +00:00
bsh
7ff9ddf063
mask all interrupts during bootstrap *correctly*.
...
call s3c2xx0_intr_bootstrap() to initialize variables used by splfoo().
2003-12-17 13:21:33 +00:00
bsh
7020653430
add a function to initialize variables used by splfoo().
...
This should be called in bootstrap so that splfoo() doesn't touch illegal address.
2003-12-17 13:20:04 +00:00
yamt
009640868e
set VBWAIT when waiting v_numoutput to be drained.
2003-12-17 10:38:39 +00:00
tls
c58ee50077
Add "sk" driver for SysKonnect/Marvell GigE cards.
2003-12-17 09:18:45 +00:00
tls
0c041019a4
Add support for some more Marvell-based adapters to the sk driver:
...
D-Link DGE-530T
Linksys EG1032v2
Linksys EG1064v2
The Linux driver treats all of these the same. Tested with a DGE-530T;
it works, though performance on at least one of my systems is atrocious.
Fix setting of ethernet capabilities into interface capabilites word in
attach routine.
Manual page: note that jumbo support doesn't work and checksum support
doesn't exist.
2003-12-17 09:17:07 +00:00
martin
6c7d761c0e
Fix commented out pcmcia entries: adjust comments, add FULL_SPARC_BUS_SPACE,
...
adapt wd* at pcmcia to new atabus attachment, and add wi* at pcmcia.
Noticed by Michael Wolfson.
2003-12-17 08:08:02 +00:00
yamt
ce11c3ce4e
remove a redundant substitution.
2003-12-17 07:14:03 +00:00
uwe
ad370cb0ff
Provide dummy machine/mcontext.h.
2003-12-17 06:17:03 +00:00
simonb
4805123b12
Nuke register prefix for local variables, clean up indentation a little.
2003-12-17 04:04:40 +00:00
ad
35a755ce3a
- Restore the display to a sane state when leaving mapped mode.
...
- OR updates into sc_changed, and protect with spltty()/splx().
2003-12-17 03:59:32 +00:00
uwe
6854a82ca1
Add btodb() define.
2003-12-16 18:59:10 +00:00
uwe
2b3e06be32
Add directory "res" to INCDIR_LIST and drop the "res/" prefix from
...
#include's in hpcmenu.rc. This makes it possible to open hpcmenu.rc
in the eVC resource editor.
2003-12-16 18:23:36 +00:00
uwe
5f83499620
Protect __KERNEL_RCSID with #if !defined(_WIN32) for the sake of
...
hpcboot.exe, that uses this file too. Compiling for WinCE defeats the
logic in cdefs_aout.h.
2003-12-16 17:16:43 +00:00
manu
966a0ee30b
Darwin's sigprocmask is an hybrid between or modern sigprocmak (old set
...
argument, large sigset), and the older sigprocset (no old set argument,
small sigset). It feature old set argument and small sigset.
We now emulates this correctly.
2003-12-16 16:13:59 +00:00
uwe
a8250ce937
Drop adler32.c from SRCFILE_LIST, it's no longer in sys/lib/libz.
2003-12-16 15:26:37 +00:00
he
a5915f4ecb
Replace cmd_ioh with cmd_baseioh, to track changes to wdcvar.h, so
...
that this compiles again. Untested for now.
Reviewed by leo.
2003-12-16 14:07:20 +00:00
yamt
6b95193071
- reduce code duplication.
...
- use boolean_t where appropriate.
2003-12-16 13:47:48 +00:00
manu
d2b4a2c0fa
Enable SA_SIGINFO for COMPAT_DARWIN
2003-12-16 13:38:25 +00:00
manu
c3eb252046
GPR5 does not hold code, it holds the signal number (this is the first
...
argument to the signal handler). It's an extraordinary luck that test
programs worked so far.
2003-12-16 13:36:18 +00:00
keihan
35ef6c8653
netbsd.org -> NetBSD.org
2003-12-16 12:22:24 +00:00
abs
8724ebf7f9
Comment out #undef LARGE_NAT so LARGE_NAT can be set in a kernel config file
...
without having to edit this file as well.
2003-12-16 12:15:04 +00:00
sekiya
af4ac18e50
Introduce abstraction layer for HPC registers and values, which addresses the
...
divergence between HPC revision 1.5 and revision 3.
The wdsc driver has been updated to reflect this layer (and may now work on
IP20). The sq driver needs a bit more work before it can be committed.
2003-12-16 11:59:04 +00:00
yamt
98e9a8c373
g/c lfs_no_inactive.
2003-12-16 11:45:07 +00:00
sekiya
c7a0d0b9f4
iocreg.h has moved.
2003-12-16 10:20:10 +00:00
dyoung
59eb8ab913
Synchronize with FreeBSD:
...
* add constants to enums
* HAL update: stops panics, fixes ad hoc-mode beacons, some API
changes
* get and use mac/phy/rf front-end revision codes
* add a custom ath(4) ic_node_getrssi callback which does RSSI
averaging
* do not immediately scan, but re-associate after missing beacons.
* bug fix: don't if_init after detach.
* HAL diagnostics ioctl, SIOCGATHDIAG
* send DS parameters element in beacons
* const-ify some pointers
* consolidate rx-filter settings into ath_calcrxfilter
* abstract FreeBSD `ticks', NetBSD `hardclock_ticks' with ATH_TICKS()
* misc. other changes
2003-12-16 06:48:08 +00:00
sekiya
b91ae185fb
A slighly more descriptive iocreg.h now lives in ../ioc.
2003-12-16 05:27:40 +00:00
gavan
5232db351e
The PIRSR is at location 0xffffe1ec, not 0xffffe2ec.
...
Source: Intel(R) 80321 I/O Processor Developer's Manual, page 578
2003-12-16 00:04:09 +00:00
jmc
d9948df6dd
Clean up tmp files on exit. Fixes PR#23723
2003-12-15 20:07:39 +00:00
martin
b7019538c6
Add config files for Mr.Coffee JavaStatin 1 machines.
...
Unfortunately we need two slightly different ones for now (OBP vs. OF)
2003-12-15 19:33:01 +00:00
martin
170c19e9bf
Rename the JavaStation network boot loader: bootjs.elf -> bootjs.net.
2003-12-15 17:34:36 +00:00
manu
aad6b2204e
Brazilian keymap, submitted by Rafael Diniz
...
http://mail-index.netbsd.org/port-hpcarm/2003/12/14/0000.html
2003-12-15 16:11:34 +00:00
tsutsui
b386fab8f8
Use aprint_debug() instead of aprint_normal() for debug info.
2003-12-15 15:13:55 +00:00
sekiya
a51a4e0a69
Part two in the Great Renaming. ip22.c becomes ip2x.c, and all generic ip2x
...
routines become ip2x_*.
2003-12-15 13:02:28 +00:00
sekiya
01a7cd0853
Change all IP22 preprocessor conditionals to IP2X preprocessor conditionals.
...
Part one of two -- part two will be renaming ip22_*() to ip2x_*().
2003-12-15 12:48:37 +00:00
sekiya
441e82538f
IP20 belongs to the IP2x family, thus this should no longer exist.
2003-12-15 12:34:56 +00:00
sekiya
90e0aa001b
Add ioc driver to IP2x config file, pull in ioc/files.ioc as well. Note that
...
IP2x now has blinkenlitzen.
2003-12-15 10:26:38 +00:00
sekiya
3568a47283
Move IOC-specific initialization code from sgimips/ip22.c to ioc/ioc.c.
2003-12-15 10:24:47 +00:00
sekiya
aa10d0203e
Add dedicated IOC (I/O Controller) driver. pckbc, zstty, and lpt will each
...
receive *_ioc.c attachments; machines without IOC (i.e., IP20) will use *_hpc.c
stubs.
2003-12-15 10:23:52 +00:00
scw
5f0d6f1b24
Work-around an obscure bug (reported by a couple of people, and reproduced
...
exactly twice by me) which causes the code at the top of copyin which
word-aligns the destination pointer to copy more bytes than necessary,
resulting in an alignment fault later on.
The bug is difficult to reproduce, but as far as I can tell it seems
to be as a result of the condition codes being corrupted, possibly
following a page fault caused by the first ldrbt/strb instructions.
The subsequent ldr<cc>bt/str<cc>b instructions then _always_ execute.
I can't think of any obvious reason why this would happen, though.
2003-12-15 09:27:18 +00:00
scw
fbdf861fac
The last cpsr_all change was misguided. Just use cpsr_c wherever possible.
2003-12-15 09:18:21 +00:00
simonb
210a9530eb
Use UART_SIZE instead of a (redefined) COM_NPORTS.
2003-12-15 09:13:41 +00:00
jdolecek
e1a0411746
print complete contents of the second feature byte; this also fixes
...
printing of DMA32 bit
2003-12-15 08:38:01 +00:00
jmc
43bf89bfc6
Fixes from PR#23177. Various lint/logic fixes:
...
Fix some non-initialized variables
close the output files when done
Redo the printing for RCS strings so they don't expand in the awk script too
Do proper tests for variables existance before accessing
Verified output from all scripts is identical to original versions
2003-12-15 07:32:20 +00:00
lonewolf
bf0b94a750
Add pckbc/wscons/newport related attachments.
2003-12-15 05:29:20 +00:00
lonewolf
280382edf9
Add support for attaching newport/pckbc as console on IP22 (Indy).
...
XXX Does this work on Indigo2 too?
XXX Ugly hardcoded bus_space_tags and stuff.
XXX This whole file is one damn ugly mess.
2003-12-15 05:28:14 +00:00
lonewolf
613491354d
Implement direct configuration for GIO devices.
...
XXX Still needs a way to handle Indigo2 spurious "productid 0x04 revision 0x00"
XXX phantom devices.
2003-12-15 05:26:56 +00:00
lonewolf
3e256e53b0
Support for SGI NG1 ("newport") graphics controller.
2003-12-15 05:24:51 +00:00
thorpej
1534ca51d1
Remove the notice that was in cmdide.c before SATALink support was split
...
out. All of the code in this file was written by me.
2003-12-15 00:37:38 +00:00
thorpej
7fca07b0d8
Use the SControl and SStatus registers to query the SATA PHY for
...
device detection.
2003-12-15 00:36:23 +00:00
thorpej
9de2760c3e
Add a (*drv_probe)() optional callback into the driver to probe for
...
drives on a channel. Drivers should provide this if they have some
sort of intelligent probing mechanism.
2003-12-15 00:27:13 +00:00
he
f9e95c8ced
Stop the install from trying to strip the ECOFF executable.
...
The MIPS strip program seg-faults if that is attempted.
2003-12-14 22:57:54 +00:00
dsl
97356a5fa8
Defer writing of KTR_EMUL entry until first trace done by target process.
...
Stops ktrops sleeping with the pid table locked.
2003-12-14 22:56:45 +00:00
ragge
57fa6bb861
TOPDOWN_VM is now mandatory on vax.
2003-12-14 19:39:24 +00:00
thorpej
e4aa90cdc6
Rename __wdcprobe() to wdcprobe1().
2003-12-14 18:51:10 +00:00
martin
9eead0293e
Make this look more like GENERIC.
2003-12-14 17:26:58 +00:00
thorpej
5af2747f1e
Serial ATA register definitions.
2003-12-14 17:14:47 +00:00
fredb
d19528e4e0
Adapt to MI ATA/wdc changes. Especially, now that the address of
...
each individual ATA register is in the attachment structure, we
can dispense with the custom bus_space mapping hack which set the
stride, then unset it for particular bus_space functions. (There
is really no stride; the data register is read and written to
consecutive bytes. The control register mappings just happen to
be separated by four bytes.) While we're here, de-__P(), and lose
a confusing shift.
This has been tested on Quadra 630. Reviewed by bouyer.
2003-12-14 15:31:23 +00:00
tsutsui
cae6629a57
Include <bsd.own.mk> at the top so that machine-links are also created
...
on "make depend". Tested on my RaQ2, and fixes port-cobalt/23711.
While here, two more cosmetics:
- remove redundant definitions
- use NOMAN rather than setting MAN empty
2003-12-14 11:58:38 +00:00
tsutsui
bd3274f615
Change unit and part variables for wd from u_int8_t to u_int.
2003-12-14 11:53:52 +00:00
dyoung
ea63a1a6cd
PR 23428: support National Datacomm Corporation NCP130A2 board.
...
Thanks T. M. Pederson for sending the patches.
2003-12-14 10:04:33 +00:00
dyoung
9280f4b428
Synchronize with FreeBSD sources from 12 Dec 2003.
2003-12-14 09:56:53 +00:00
dyoung
10d1fa6e70
Add ath(4) for Atheros 802.11a/b/g cards.
2003-12-14 09:54:01 +00:00
sekiya
a15d89e48a
Move IOC (integrated peripheral controller) init code into the IP22-specific
...
routine, as IP20 does not possess an IOC. This will eventually be moved into
a dedicated IOC driver that attaches its peripherals as children, but the
changes involved are too intrusive right now.
2003-12-14 07:53:10 +00:00
sekiya
3e021de39c
Uncomment dpclock, remove IP20 option. IP20 now boots as far as the
...
boot device selection prompt using the GENERIC kernel.
2003-12-14 07:31:02 +00:00
sekiya
fa349eb13c
Allow hpc to attach on IP20.
2003-12-14 07:28:17 +00:00
sekiya
264219f697
Bus-space'ify the memory controller driver, and add IP20-specific bits.
2003-12-14 07:21:51 +00:00
sekiya
4aeb14dce4
IP20 should handle the watchdog timer in the same manner as for IP22.
2003-12-14 06:11:35 +00:00
sekiya
8302dd42e0
The serial controller on IP20 lives in a different place. Modify
...
zs_get_chan_addr() to reflect this.
XXX hardcoded addresses are quite distasteful. This should be passed in
through consinit() -- to avoid conflicts with Ilpo's soon-to-be-committed
framebuffer driver, I'll hold off until his code hits the tree.
2003-12-14 05:59:50 +00:00
sekiya
6f71ce82f5
For the purposes of machdep.c, consider IP20 to be a variant of IP22. ip20.c
...
and #ifdef IP20 will go away (short-term), ip22_* will be renamed to ip2x_*
(slighly longer-term).
2003-12-14 05:49:14 +00:00
thorpej
b9ee1b0117
Move the wddone() prototype to wd.c
2003-12-14 05:38:20 +00:00
thorpej
777270ce9b
Garbage-collect __ATA_DISK_PRIVATE; it is no longer needed.
2003-12-14 05:37:25 +00:00
thorpej
d8f4e7306d
No need to include wdvar.h anymore.
2003-12-14 05:34:29 +00:00
thorpej
a58ada4aad
Instead of calling wddone() directly, set a (*drv_done)() callback in
...
the ata_drive_datas structure and invoke that.
2003-12-14 05:33:29 +00:00
sekiya
f9ff3d87e9
The ARCBIOS->FlushAllCaches() vector is NULL on at least one SGI platform
...
(ip20) and has no actual operational effect, thus it should not be invoked here.
2003-12-14 05:33:22 +00:00
sekiya
f2b161aa21
Compile sgimips/ip[23]2.c iff the corresponding IP[23] is defined in the
...
config file.
2003-12-14 05:23:12 +00:00
thorpej
08227d36cb
No need to include wdvar.h anymore.
2003-12-14 05:15:53 +00:00
thorpej
3dd2f16d75
Move struct ata_device from wdvar.h to atavar.h.
2003-12-14 05:14:39 +00:00
thorpej
09bbcae770
Move struct ata_bustype from wdvar.h to atavar.h.
2003-12-14 05:10:19 +00:00
thorpej
be3146e7b3
Move struct ata_bio from wdvar.h to atavar.h.
2003-12-14 05:03:28 +00:00
thorpej
86046f9e1b
Tidy up the whitespace.
2003-12-14 04:59:40 +00:00
tsutsui
4bad747a15
Regen: added ATI Radeon 9200SE.
2003-12-14 04:58:15 +00:00
tsutsui
adedc23811
Add ATI Radeon 9200SE.
2003-12-14 04:57:16 +00:00
uwe
3fcefe2a85
Use callout_schedule instead of callout_reset to re-establish keyboard
...
callouts.
While here, #if 0 the code in pfckbd_callout_hp to read (and ignore)
PFC registers G and H.
2003-12-14 04:03:16 +00:00
uwe
b9588a2c89
There's no such thing as "JavaStation-10". Krups official name is
...
"JavaStation-NC". Pointed out by Pete Zaitcev (long ago).
2003-12-14 03:25:46 +00:00
jonathan
c4e9405150
Do 5704-specific setup of DMA control register for all 5704 variants,
...
including chips that matched only the asic-revision fallback table.
When dong DMA setup for 5703 and 5704, use the new BGE_ASICREV() macro
to extract the ASIC revision.
2003-12-14 03:08:12 +00:00
uwe
85a134f3c1
Use CONFIG_HOOK_BRIGHTNESS* to support WSDISPLAYIO_PARAM_BRIGHTNESS.
...
Use CONFIG_HOOK_POWERCONTROL_LCDLIGHT to turn on/off the LCD in
response to WSDISPLAYIO_SVIDEO.
Implementation of these hooks for Jornada 680 is to follow shortly.
2003-12-14 02:52:15 +00:00
thorpej
a644de6271
Liberally apply static.
2003-12-14 02:48:36 +00:00
thorpej
0848b66944
Cosmetic changes in some autoconfiguration messages.
2003-12-14 02:46:34 +00:00
thorpej
51132ab100
De-__P and use ANSI-style function decls.
2003-12-14 02:45:48 +00:00
thorpej
9a136c5211
Remove piixide, since these boards will never, ever have one.
2003-12-14 01:33:15 +00:00
thorpej
2f2ca9e66b
Split the Intel i31244 SATA controller ("Artisea") driver out of piixide
...
into its own driver (artsata).
2003-12-14 01:32:01 +00:00
ad
188f029f3f
Missing splx() calls.
2003-12-14 01:18:36 +00:00
thorpej
0c4c58a70b
Fix syntax errors in CHECK_NMBCLUSTER_PARAMS().
2003-12-14 01:14:24 +00:00
thorpej
a5f1f3523b
Liberally apply "static", and wrap a line.
2003-12-14 00:17:05 +00:00
jonathan
9c1a5c5570
Second part of hashed IP_reassembly changes:
...
When under pressure for mbufs or we have too many fragments in the IP
reassembly queue, drop half of all fragments. This multiplicative-drop
strategy ensures we return to a healthy state, even under borderline
denial-of-service from extremely lossy NFS-over-UDP peers.
The multiplicative-drop phase currently drops 50% of fragments, but
has pre-placed support for implementing drop-fractions other than 50%
The threshhold for the `drop-half' phase is the new variable,
ip_maxfrags which is calculated as nmbclusters/4.
ip_input.c now keeps ip_nmbclusters, a cached copy of nmbclusters.
Before using limits derived from nmbclusters, we check if nmbclusters
and ip_nmclusters are equal. If not, we recompute Ip parameters
derived from nmbclusters. Based on a suggestion by Jason Thorpe.
ip_maxfrags is currently auto-recalcuated.
The counters ip_nfrags and ip_nfragpacketsr are now declared static
and uninitialized (bss), to discourage tampering with them.
2003-12-14 00:09:24 +00:00
thorpej
084803988a
Remove the IDE controllers that only exist in southbridge chips (which
...
none of these boards have).
XXX piixide stays for now, because that's where the Intel i31244 SATA
controller is. That will change, eventually.
2003-12-13 23:31:21 +00:00
thorpej
22267f63f3
Collapse the atabus declaration into "atabus* at ata? channel ?".
2003-12-13 23:28:11 +00:00
thorpej
a291e39668
The Netwinder can only have a Symphony IDE chip on it, so remove all the
...
others (leave the generic "pciide" there, but commented out).
2003-12-13 23:26:04 +00:00
thorpej
9e321b3a18
Collapse the atabus declaration into "atabus* at ata? channel ?".
2003-12-13 23:24:47 +00:00
thorpej
98f7d12017
Split out the Silicon Image SATALink support into its own driver,
...
"satalink".
2003-12-13 23:13:40 +00:00
ad
9aa9b8ebf5
Add drivers for the desktop bus, DC-7085 and pm display. Make it possible to
...
select between rcons or wscons at compile time. Ok'ed by simonb.
2003-12-13 23:04:37 +00:00
ad
57ed05ac29
Make this compile again.
2003-12-13 23:02:50 +00:00
ad
3234027240
Add write barriers (a no-op on vax).
2003-12-13 23:02:33 +00:00
thorpej
523e3bb618
I haven't had this laptop for a long time now.
2003-12-13 22:48:02 +00:00
he
1423e83c49
Adapt to rename of WDC_CAP_LBA48 to ATA_CMD2_LBA48 in atareg.h,
...
and don't use types which will be promoted when passed as ...,
causing a warning.
2003-12-13 22:34:30 +00:00
chs
6b91282609
ramdisk doesn't fit in 400k anymore, make it 500k.
2003-12-13 22:06:23 +00:00
hannken
c0395cd920
Use ioctl(..., DIOCGPART, ...) instead of vn_stat() to get the size of the
...
underlying block device. vn_stat() gives the wrong size for the root fs.
Remove fssdetach() and fss_attached.
2003-12-13 18:59:29 +00:00
kochi
c2adc9e9b9
Merge ACPI-CA 20031203
2003-12-13 18:10:59 +00:00
rearnsha
94c1474569
The machdep.debug sysctl variable uses code CPU_DEBUG
...
(not CPU_CONSDEV).
2003-12-13 12:07:41 +00:00
martin
b4467b848f
Don't touch the PROM VA on JavaStations. From Valeriy.
2003-12-13 10:26:13 +00:00
martin
d741bf72ed
Remove a comment - this is no longer experimental and works with an
...
unpatched tree.
2003-12-13 09:31:20 +00:00
sekiya
f398c5e022
Remove MIPS3_L2CACHE_ABSENT.
2003-12-13 01:30:50 +00:00
simonb
701a167dd3
In sysctl_kern_lwp adjust offsets into the mib entries so that
...
they are now correct. Fixes problems with "ps -s" not working.
Also use KERN_LWPSLOP instead of KERN_PROCSLOP.
Both changes from Andrew Brown.
2003-12-12 23:21:44 +00:00
jmc
f3a436d0a1
Add a .WAIT after common so libs get built before they're needed
2003-12-12 23:00:09 +00:00
martin
cc7556d487
Fix compilation for ports w/o __GENERIC_SOFT_INTERRUPTS_ALL_LEVELS.
2003-12-12 22:35:13 +00:00
martin
ef9590543d
Add support to build bootjs.elf - the secondary bootstrap used to netboot
...
JavaStations. Based on patches from Valeriy E. Ushakov.
2003-12-12 22:15:59 +00:00
thorpej
2731c72b47
Cast an expression with sizeof() to long.
2003-12-12 21:36:32 +00:00
scw
6aec1d6812
Make fast-ipsec and ipflow (Fast Forwarding) interoperate.
...
The idea is that we only clear M_CANFASTFWD if an SPD exists
for the packet. Otherwise, it's safe to add a fast-forward
cache entry for the route.
To make this work properly, we invalidate the entire ipflow
cache if a fast-ipsec key is added or changed.
2003-12-12 21:17:59 +00:00
scw
4b9d54ff56
Add KEYCTL_DUMPSA/KEYCTL_DUMPSP support.
...
setkey(8)'s -D and -P options now work as expected with fast-ipsec.
2003-12-12 21:04:03 +00:00
scw
1cbe65fa6a
Pull in netinet/ip_ecn.c if FAST_IPSEC is defined.
2003-12-12 20:54:30 +00:00
nathanw
d7a0075027
Trap 0x8 (T_DOUBLEFLT) and 0x11 (T_ALIGNFLT) should be TRAP, not
...
ZTRAP; while the error code is always 0, the processor indeed pushes
the 0 on the stack, according to table 5-1 in the IA32 SPG.
2003-12-12 20:17:53 +00:00
thorpej
648d5e6e22
Add a default case to avoid an uninitialized variable warning.
2003-12-12 16:42:44 +00:00
jmc
e63a18f899
Initialize clksp as gcc can't figure out that it gets set before the switch
2003-12-12 16:21:35 +00:00
jmc
c594ed376d
Needs a .WAIT before doing boot/bootxx
2003-12-12 15:57:32 +00:00
sekiya
c0996cb32c
Remove preprocessor conditional MIPS3_L2CACHE_ABSENT, which was rendered
...
superfluous by Tsutsui-san's previous changes.
(this change differs slightly from that posted to port-mips@, as
mips_flushcache_allpvh should be compiled iff MIPS3_PLUS is defined and
MIPS3_L2CACHE_ABSENT should be removed from files.mips as well)
2003-12-12 14:55:58 +00:00
martin
119a91826a
If compiling for JavaStations, modify kernal VA layout to not conflict
...
with the PROM. From Valeriy E. Ushakov. This is a hack, but as long as
we don't have a way to arrange for a proper VA layout on this machines
(i.e. beyound the PROM) it is needed.
2003-12-12 14:51:48 +00:00
martin
808a75e1c5
Use the new split hard/softinterrupt handlers to avoid running mouse/keyboard
...
input functions to be run at IPL_SERIAL (instead of the intended IPL_TTY).
2003-12-12 14:31:39 +00:00
martin
9489d737cd
In parallel to the interrupt handler pckbcintr provide two functions
...
pckbcintr_hard and pckbcintr_soft, which, together, do the same as
pckbcintr. The first is called from the interrupt handler, the second
from a softinterrupt at arbitrary protection level (lower or equal to
IPL_TTY). They pass data via a small ringbuffer.
The new functions are intended for platforms that, due to
hardware/firmware restrictions are not able to make pckbcintr called at
IPL_TTY, like Krups javastations. Using the monolithic pckbcintr on
these plattforms leads to the input handlers for the slot data to be
run at elevated priority, causing various race conditions.
2003-12-12 14:30:16 +00:00
jmc
867ec2f3a6
Just use the default field separator
2003-12-12 06:51:47 +00:00
jmc
fde398f9ce
Regen (picks up PNP8389 after devlist2h.awk changes
2003-12-12 06:51:36 +00:00
jmc
6125716f79
Fix from PR#23177. Pass lint and while here use a regular field separator
...
and shift off the first entry to get the description. This fixes one that
was getting missed and prevents future errors
2003-12-12 06:50:54 +00:00
jmc
3ac305c74a
Add a stub for the majors (which just includes amiga's majors file).
2003-12-12 04:12:09 +00:00
atatat
74b1767b3c
The machdep.debug node is an int, not a struct
2003-12-12 03:52:56 +00:00
scw
6222bc14b8
Fix a typo in bswr2rb() which resulted in an 8-bit load instead 16-bit.
...
Pointed out by Derek Godfrey.
2003-12-11 23:52:25 +00:00
matt
0ecc4c35b5
Copy ksi->ksi_info, not all of ksi, to user stack.
2003-12-11 18:33:52 +00:00
matt
567c7f35d1
Use KSI_TRAP_P in KSI_TRAPCODE. Add some missing (..) for macro arguments.
2003-12-11 18:33:03 +00:00
christos
165834b297
make this compile again.
2003-12-11 17:46:23 +00:00
matt
786b602bd3
Rework things to move common stuff into Makefile.inc.
2003-12-11 17:34:09 +00:00
uch
f948356718
Update for new world of indirect wdc registers.
2003-12-11 09:53:15 +00:00
martin
8198b105e1
Bump SYMTAB_SPACE, we need more nowadays.
2003-12-11 08:42:20 +00:00
matt
98c902b471
Convert fixcoff into a true host tool by making it under tools.
2003-12-11 00:27:42 +00:00
itojun
235e090dea
gi_len is ip_len, so it has to be network byteorder. markus friedl
2003-12-11 00:22:29 +00:00
itojun
b37e7ce6ef
do not touch sav->xx after key_freesav(). from hajimu umemoto
2003-12-10 23:46:42 +00:00
matt
cd3cb31917
Make sure to pick up nbcompat definitions
2003-12-10 23:45:25 +00:00
matt
b1865b274e
Use be16toh/htobe16 instead of ntohs/htons.
2003-12-10 23:36:07 +00:00
matt
104c58abbf
s/u_int16_t/uint16_t/ for more portability
2003-12-10 23:08:14 +00:00
itojun
d8ac1c6007
fix cases where pktinfo specifies outgoing interface of "0".
2003-12-10 22:35:35 +00:00
petrov
90efe83bb9
Fix strict-aliasing compiler warning.
2003-12-10 20:09:05 +00:00
drochner
bfae4c94ef
if the code segment is not enlarged, return 0 in pmap_exec_fixup
...
so that the trap is not retried
(fixes cases where a program traps for good reasons)
2003-12-10 18:13:32 +00:00
tsutsui
556423a6ac
Bump SYMTAB_SPACE to 204800.
2003-12-10 18:08:50 +00:00
jdolecek
d5bf86dcf4
Modify the licences of code written by Theo De Raadt from a 4-clause
...
to a 2-clause licence (retaining UCB clauses (1) and (2)), per PR
22409 from Joel Baker, approved by Theo de Raadt.
2003-12-10 16:35:20 +00:00
drochner
a33b8b088c
a little bit more namespace sanity
2003-12-10 14:19:02 +00:00
atatat
e3796202c5
Make kern.dump_on_panic writeable again, too
2003-12-10 14:16:12 +00:00