enami
b7ac697dae
s/than than/than/.
2002-11-08 02:05:16 +00:00
thorpej
c05e648e83
Ensure that some integer constants are always unsigned.
2002-11-08 01:31:23 +00:00
simonb
28cb103184
Note a new MIPS64_SB1 option that should be included in opt_cputype.h
...
one day.
2002-11-08 00:50:49 +00:00
simonb
220b08b128
Sprinkle a little more COP0_SYNC (in an unused function...).
2002-11-08 00:49:32 +00:00
thorpej
c2c9021d7d
Fix goof-ups in last (compiler used to test previously used a different
...
file).
2002-11-08 00:19:51 +00:00
thorpej
c138531637
Adjust stdargs/varargs for GCC 3.x.
2002-11-08 00:08:02 +00:00
cgd
a13b227af2
fix errors in calculating the ending VA to use in r4k_icache_sync_range_16
...
and r5k_icache_sync_range_32. (reviewed by thorpej.)
2002-11-07 23:03:21 +00:00
martin
c4349cac72
Add a driver for the Myson Technology MTD803 3-in-1 Fast Ethernet Controller,
...
provided by Peter Bex in PR 18675.
2002-11-07 21:56:56 +00:00
thorpej
94390e4587
Regen; add Intel i31244 Serial ATA controller.
2002-11-07 20:55:13 +00:00
thorpej
80195e6cb9
Add Intel i31244 Serial ATA controller.
2002-11-07 20:49:57 +00:00
martin
372a4df84d
Regen (Myson MTD804 added)
2002-11-07 20:41:27 +00:00
martin
bdac1eff58
Add Myson MTD803 3-in-1 Fast Ethernet Controller.
2002-11-07 20:40:28 +00:00
martin
e750674637
Regen (MYSON MTD803 added)
2002-11-07 20:37:03 +00:00
martin
d407db9cfd
Add MYSON MTD803
2002-11-07 20:35:55 +00:00
thorpej
55cd2960c9
In the IP_HDRINCL case of rip_output(), if the mbuf is read-only
...
then copy the header into a new mbuf before modifying it.
Fixes PR 18809. Thanks to Chuq Silvers for diagnosing it.
2002-11-07 17:49:08 +00:00
manu
be554117a6
Removed debug messages
2002-11-07 17:26:34 +00:00
someya
c8d97c4f27
Fix recording problem on SiS7018.
2002-11-07 11:44:12 +00:00
thorpej
ec2b09dc84
Fix a signed/unsigned comparison warning.
2002-11-07 08:21:36 +00:00
thorpej
b7d2ca250a
Fix signed/unsigned comparison warnings.
2002-11-07 08:13:10 +00:00
thorpej
1cba452d86
Fix signed/unsigned comparison warnings.
2002-11-07 08:02:09 +00:00
thorpej
f5c6a07c43
Fix more signed/unsigned comparison warnings.
2002-11-07 08:00:47 +00:00
thorpej
9c69b64bfa
Fix signed/unsigned comparison warnings.
2002-11-07 07:55:53 +00:00
thorpej
079b24a323
Make ifm_data unsigned.
2002-11-07 07:53:37 +00:00
thorpej
8b0970afaf
Fix signed/unsigned comparison warnings.
2002-11-07 07:46:39 +00:00
thorpej
d52f5f8ecb
Make mii_media_active unsigned.
2002-11-07 07:45:03 +00:00
thorpej
facf465586
Make media and mask unsigned.
2002-11-07 07:42:24 +00:00
thorpej
499a491929
Fix signed/unsigned comparison warnings.
2002-11-07 07:41:22 +00:00
thorpej
62b2879585
Fix signed/unsigned comparison warnings.
2002-11-07 07:15:19 +00:00
thorpej
db1c1d81f9
Fix signed/unsigned comparison warnings.
2002-11-07 07:04:13 +00:00
thorpej
c74bb099e4
Make the length argument of arc4_setkey() unsigned.
2002-11-07 07:03:11 +00:00
thorpej
68d2fcace6
Make the _CONCAT() macro work with ISO C preprocessor.
2002-11-07 06:58:44 +00:00
thorpej
1e1c759c66
Don't use newlines in string literals.
2002-11-07 06:54:25 +00:00
thorpej
61eddf92a7
Clean up token pasting so that this works with GCC 3.3's CPP.
2002-11-07 06:51:51 +00:00
cgd
d6cd994028
don't under COP0_SYNC. (approved by simonb.)
2002-11-07 05:39:48 +00:00
manu
9a4dfe85fa
Added two sysctl-able flags: proc.curproc.stopfork and proc.curproc.stopexec
...
that can be used to block a process after fork(2) or exec(2) calls. The
new process is created in the SSTOP state and is never scheduled for running.
This feature is designed so that it is esay to attach the process using gdb
before it has done anything.
It works also with sproc, kthread_create, clone...
2002-11-07 00:22:28 +00:00
kent
12ac4ab865
Fix LR contrary problem of mixer and record gain polarity
...
problem. The change is based on the patches in PR kern/12878 by
Zdenek Salvet and PR kern/18901 by SUNAKAWA Hirokatsu.
2002-11-06 16:58:37 +00:00
kent
dbf1b9ea9f
Add codec IDs for AD1981B, STAC9750/51, and STAC9766/67.
...
Whitespace.
2002-11-06 13:41:22 +00:00
dsainty
d85f3281dd
ARGSUSED/FALLTHROUGH delinting (first pass)
2002-11-06 10:56:22 +00:00
wiz
3b92bff08a
Fix typo. Reported by Jolan Luff in PR 18952.
2002-11-06 10:14:38 +00:00
onoe
d125f36802
Add support of Sony PEGA-WL100 CF Wireless LAN Card.
2002-11-06 05:45:17 +00:00
enami
8f82ec28ee
Factor out the COMPAT_16 code.
2002-11-06 02:31:34 +00:00
perry
eab4bb9593
include opt_inet.h -- found by David Laight
2002-11-05 21:46:42 +00:00
itojun
29ef3e950d
improve gif lookup performance, when there are many of those,
...
by using radix tree for lookups. tested by yshimizu@iij.
2002-11-05 16:58:11 +00:00
thorpej
aca074b95d
Add -mno-asm-pic to CFLAGS and AFLAGS.
2002-11-05 14:35:30 +00:00
mrg
3e8df71794
- do the COMPAT_16 dance in sysctl_diskstats() for the where == NULL case
...
as well. pointed out by enami@.
- defflag COMPAT_16.
2002-11-05 13:22:32 +00:00
cjs
faade5e87c
Fix typo.
2002-11-05 12:13:40 +00:00
cjs
c866abcfc9
Restore umass_fixup_sony so that Sony cameras work once again.
2002-11-05 12:06:58 +00:00
fair
f1db6afa29
Add udsbr(4) with radio(4) attachment to standard configs
2002-11-05 08:31:43 +00:00
chs
f9c2080322
merge pmap.c for all 4k-page motorola-MMU (or compatible) m68k platforms.
2002-11-05 07:41:17 +00:00
thorpej
e0f2bd703f
Only skip the copy if we are already relocated; always clear
...
the BSS.
2002-11-05 06:16:21 +00:00
thorpej
80369ce3c8
Set the entry point to 0 for the ELF case, too.
2002-11-05 06:10:35 +00:00
fair
97a835073c
Add the radio(4) driver to NetBSD/alpha
2002-11-05 04:45:09 +00:00
fair
caee39d926
Add required IPSEC #include files that prevented this from compiling.
2002-11-05 02:07:25 +00:00
thorpej
80f8dbe30a
Add a new VM map, lkm_map, which machine-dependent code can provide
...
in the event that it needs to use a special VM range (x86_64 falls
into this category). We fall back onto kernel_map if machine-dependent
code doesn't create a special map.
2002-11-05 01:24:35 +00:00
thorpej
0bc2a57e26
Use named indices for RA, SR, MULLO, MULHI, and EPC in the
...
trapframe.
2002-11-04 20:02:09 +00:00
thorpej
fab408c3af
Use named indices for trapframe slots, and use the TA0-TA3 names
...
where appropriate.
2002-11-04 19:51:05 +00:00
thorpej
c8fbf16072
Define named constants for the trapframe register idices (they
...
are different from the normal register numbers). Use these names
in genassym.cf. (Wow, how ever did that test kernel boot before...)
2002-11-04 19:40:04 +00:00
pooka
00f370741b
we don't own Jason, even if we'd like to
...
(fix typo in comment, in case you're wondering ;)
2002-11-04 19:17:33 +00:00
thorpej
ad825a97f1
t4-t7 -> ta0-ta3
2002-11-04 18:54:13 +00:00
thorpej
1d0b5f8106
A few more t4-t7 -> ta0-ta3 that I missed before.
2002-11-04 18:45:55 +00:00
thorpej
731fe805a1
t4-t7 -> ta0-ta3
2002-11-04 18:41:37 +00:00
thorpej
32d1740afc
Add FRAME_[TA0-TA3] and TF_REG_[TA0-TA3]. Change TF_REG_* to use
...
defined constants for register indices, rather than hard-coded numbers.
2002-11-04 18:41:03 +00:00
wiz
29d58d0333
s/sqiud/squid/ in comment, reported by skrueger at europe com.
2002-11-04 16:59:37 +00:00
kent
22d0e4bb85
auvia_set_params:
...
For a fixed-rate codec, when AUMODE_RECORD and AUDIO_ENCODING_MULAW or
AUDIO_ENCODING_ALAW, use AUDIO_ENCODING_SLINEAR_LE/16bit for native encoding
instead of AUDIO_ENCODING_ULINEAR/8bit because aurateconv does not support
sampling rate conversion for 8 bit PCM.
This change fixes PR kern/18834.
2002-11-04 16:38:49 +00:00
pooka
d6b170e2de
add support for the second DAC found on the chip. to attach the second
...
audio device, define EAP_USE_BOTH_DACS
2002-11-04 16:34:25 +00:00
jdolecek
2ba45545df
back previous off; don't install macho_machdep.h
2002-11-04 15:27:15 +00:00
kent
8eadd119b9
Add power-management register definitions.
2002-11-04 14:56:10 +00:00
wiz
98219f2782
regen (typo fix from PR 18921)
2002-11-04 12:36:25 +00:00
wiz
ec50e0a966
Fix typo reported by Nicolas Joly in PR 18921.
2002-11-04 12:35:27 +00:00
itohy
ba91c01b07
Fix asm usage. "tf" is an output operand, not an input.
2002-11-04 08:12:30 +00:00
junyoung
0c51bd608e
Missing '.'
2002-11-04 08:05:52 +00:00
itohy
94b2e6e61d
Dump DDB_* and SYMTAB_SPACE options to opt_ddbparam.h rather than opt_ddb.h.
...
These options are used in limited files but #include "opt_ddb.h" are
everywhere, and changing them caused almost full recompilation.
2002-11-04 06:24:38 +00:00
simonb
af5c630516
cpu_dump() has to return something if it bails early; make it so.
2002-11-04 05:41:29 +00:00
thorpej
65fdfe7d64
Add TA0-TA3 register indices.
2002-11-04 04:24:48 +00:00
thorpej
abaff8e1c6
t4-t7 -> ta0-ta3
2002-11-04 04:06:51 +00:00
thorpej
3e54f426e0
Rearrange mips_pagecopy() and mips_pagezero() for N32/LP64.
...
XXX Does not yet use the correct reg names for new-ABI.
2002-11-04 04:04:32 +00:00
mrg
5cad86b3ea
repair backwards compatibility with netbsd 1.6 - if we are not given the
...
wanted sizeof(struct disk_sysctl), use the old size. for non-COMPAT_16,
however, we return EINVAL so that all future programs are forced into
passing the wanted size. 1.6 iostat(8) works with -current kernel again.
as seen on tech-kern.
2002-11-04 03:50:07 +00:00
thorpej
1bf923d5f3
Add N32 register vars.
2002-11-04 03:46:18 +00:00
thorpej
aa2b9a65fc
Add SGI-compatible ta0-ta3 register names. These allow one to write
...
asm code which can be built easily in old-ABI and new-ABI environemnts.
In old-ABI, they map to t4-t7, and in new-ABI, they map to a4-a7. This
means that t0-t3,ta0-ta3,t8,t9 are available in both ABIs.
Because ta0-ta3 overlap with arg regs (albeit arg slots which are usually
unused), they should be used only if t0-t3,t8,t9 isn't enough.
2002-11-04 03:38:32 +00:00
thorpej
bae541911c
Add N32/N64 reg names.
2002-11-04 03:30:32 +00:00
itohy
babe417446
Initialize UTLB/ITLB data array 1 to zero.
...
If the VPN / PPN are not aligned to page boundary (the page size
is set by SZ bits in data array 1, which are random when power-up time),
unexpected exception occurs in some rare case, it seems....
Initialize SZ to zero (1KB page). Also, clear VPN / PPN to zero just in case.
Make __sh4_itlb_invalidate_all() static.
2002-11-04 01:31:43 +00:00
matt
85529376d3
Get rid of nsysent. Use EMULNAMEU to use the appropriate constant.
...
Revamp the mach_syscall_dispatch function to be much simplier (pass in
a syscall code and return a const struct sysent * pointer).
2002-11-04 00:01:02 +00:00
manu
873ed6f9ee
Added support for Darwin's PowerPC-only system calls:
...
ppccalls, with system call numbers starting at 0x6000
fasttraps, with system call numbers starting at 0x7FF0
Because the Mach system call dispatching code has grown a bit
too much, introduce an inline function to handle it (mach_syscall_dispatch).
While we are there, remove the Mach and Linux includes from
arch/powerpc/powerpc/syscall.c and push them into
arch/powerpc/powerpc/{mach|linux}_syscall.c
2002-11-03 23:17:18 +00:00
matt
6d54e503b3
LP64 changes (copied from mips and changed CHAR_MIN/MAX to 0/0xffU).
2002-11-03 22:55:24 +00:00
matt
c89494d09b
Change _MACHINE_foo_H_ to _POWERPC_foo_H_
2002-11-03 22:36:22 +00:00
matt
6dc0eb390f
Add LP64 bits (copied from MIPS).
2002-11-03 22:35:33 +00:00
matt
0d380378cf
Add LP64 limits.
2002-11-03 22:23:59 +00:00
chris
61578bc307
Checkin new interrupt handling code for the footbridge.
...
This is based upon Jason's work on xscale.
Most of the interrupt handling code is now written in C using an asm stub to
call into the C code.
spl* now only updates a software mask, and does not update the hardware,
this should be much faster.
The new code works well on cats, it's untested on netwinder, but should work.
The code implements generic soft interrupts.
More work is still required to bring the isa interrupt handling code upto
scratch currently all isa interrupts are handled at IPL_BIO on the footbridge.
This may cause isa interrupts to be handled later than they should be.
I plan to fix this in the near future.
2002-11-03 21:43:29 +00:00
jdc
09f6c6a9cc
Apply patch from Takeshi Nakayama on current-users which fixes problems
...
when trying to play audio CD's on some drives. The original message was :
> In my analysis, rev 1.19 of cd_scsi.c used cd_scsibus_set_mode()
> instead of scsipi_mode_select(). cd_scsibus_set_mode() had the code
> which clear a data.header.data_length, but scsipi_mode_select()
> does not have. So we need `data.header.data_length = 0;' before
> calling scsipi_mode_select().
Fixes PR 7299 and probably PR 15155 and PR 16883 too.
2002-11-03 21:14:28 +00:00
chris
230469d2ae
Remove an extra }
2002-11-03 21:12:27 +00:00
thorpej
15d3b348c9
Add LP64 limits.
2002-11-03 20:02:39 +00:00
chs
6348674004
merge pmap.h for all 4k-page motorola-MMU (or compatible) m68k platforms.
2002-11-03 19:56:27 +00:00
thorpej
9f9d6d33f4
Add LP64 types, limits, formats.
2002-11-03 19:55:23 +00:00
thorpej
f8dceffac5
Add LP64 macros.
2002-11-03 19:24:55 +00:00
thorpej
c88320f8d7
Add LP64 types.
2002-11-03 19:22:00 +00:00
tsutsui
0cc3f14252
HP360 does not have L2 cache, so no need to define CACHE_HAVE_PAC for it.
2002-11-03 17:44:07 +00:00
thorpej
16084f1873
Add _LP64 types.
2002-11-03 17:43:07 +00:00
thorpej
c5adb2880e
In the _MIPS_PADDR_T_64BIT case, only use "unsigned long long" if _LP64
...
is not defined.
2002-11-03 17:35:32 +00:00
aymeric
2c00b82f68
We don't need sys/syscallargs.h here anymore.
2002-11-03 15:39:39 +00:00
bjh21
b9870fb26c
Quieten lint a little.
2002-11-03 14:59:06 +00:00
nisimura
da22f42379
Add some informative comments about setrunqueue and remrunqueue.
2002-11-03 13:59:12 +00:00
nisimura
ad5b782866
Retire __HAVE_MD_RUNQUEUE from MD types.h and remove
...
setrunqueue/remrunqueue from locore.S. C codes are
compiled a bit shorter and provide better DIAGNOSTICs.
2002-11-03 13:47:34 +00:00
nisimura
5a63303fc1
Add two PRiD values.
...
- 0x55 for NEC Vr5500. ISA might be MIPS64.
- 0x38 for Toshiba TX79. This has thirty-two 128bit GPRs while
maintaining 32bit only virtual address space. Any of pointer related
registers have 32bit.
2002-11-03 13:16:11 +00:00
bjh21
bfd06a4ff0
Regen (Simtec USB).
2002-11-03 12:59:44 +00:00
bjh21
097f627f92
Add Simtec USB podule.
2002-11-03 12:58:15 +00:00
shiba
44b7622806
Support internal ADB keyboard of PowerBook 190,190cs.
...
The keyboard works fine now. I don't confirm working internal
ADB track pad.
But an internal IDE drive is not recognized, and
an internal SCSI host controller(sbc driver) don't work yet.
2002-11-03 11:04:35 +00:00
augustss
a098e7a97d
Avoid lint complaints.
2002-11-03 09:57:40 +00:00
chs
95aae207e0
use a merged sys_machdep.c for all the motorola-MMU m68k platforms.
2002-11-03 02:29:37 +00:00
isaki
b67132026b
Place catman in RELEASEDIR/installation/misc.
2002-11-03 02:12:18 +00:00
mrg
34113a54bc
redo the previous: it seems that the 2nd prom address value is ignored/useless
...
(it seems to be always zero), and that the channel & drive are encoded into the
first value as "channel * 2 + drive", so, look for this.
2002-11-03 01:54:45 +00:00
chs
42a0d8fa15
use "static __inline" instead of "extern __inline" so that we can
...
build without optimization.
2002-11-03 01:34:41 +00:00
chs
db6b326aab
merge all the m68k copies of kgdb_machdep.c.
2002-11-03 01:11:58 +00:00
jdolecek
9d0bfe1097
reduce number of <'s in FatalOp debug print, to not get mistaken with
...
CVS conflict marker
2002-11-02 20:58:17 +00:00
chs
bcfb5eee88
enhance the common m68k db_memrw.c to handle read-only kernel text
...
and switch all the motorola-MMU m68k platforms to use it.
2002-11-02 20:26:36 +00:00
chs
40e5b8394f
finish conversion to the common m68k cacheops:
...
add support for machine-specific flavors of the ops for off-chip caches.
many thanks to Izumi Tsutsui for his help with this.
2002-11-02 20:03:04 +00:00
dbj
1d1cd19e5f
use be32toh instead of ntohl, etc.
2002-11-02 19:31:09 +00:00
itojun
61eed162b2
cleanup ipsec.h dependency. commented by perry, sync w/kame
2002-11-02 19:03:44 +00:00
perry
c8815bffa1
1) egg, meet face. face, meet egg.
...
2) re-UL KERNBASE, but this time, protect it with #ifndef _LOCORE so we
don't get a big kaboom in .S files.
2002-11-02 17:30:15 +00:00
jdolecek
7aca3aed62
retval is 'register_t *', not 'int *'
2002-11-02 17:05:19 +00:00
perry
fbf4988104
gah. reversed a test.
2002-11-02 16:50:18 +00:00
perry
1645cbb7b4
change array to unsigned char. fixes 23430 lint warnings. "really!"
2002-11-02 16:26:03 +00:00
martin
b78c3d23e1
Need to cast a bus_space_addr_t to (u_long) before gcc allows us to cast
...
it to a pointer on 32bit spacr64 kernels. Sigh.
2002-11-02 15:54:10 +00:00
mrg
8cc4a98ea3
make compat_13_netbsd32_sigreturn() and netbsd32___sigreturn14() almost identical.
2002-11-02 13:51:18 +00:00
mrg
106c6ad374
match channel & disk when trying to determine if this IDE disk is the boot device.
...
now we can boot from any IDE disk on the system.
2002-11-02 13:49:15 +00:00
kristerw
0ed7608653
Revert previous. Nested comments are evil.
2002-11-02 12:00:03 +00:00
kristerw
7f2e5abcf1
Revert previous. The assembler bombs on UL integer suffix.
2002-11-02 11:55:24 +00:00
kristerw
e3355c4796
Removed unused structure.
2002-11-02 10:47:49 +00:00
perry
d360d70909
We don't need our on KERNLINTFLAGS any longer.
2002-11-02 07:59:26 +00:00
perry
7152bf6aeb
lint infrastructure overhaul to finally lint the kernel libs right.
...
XXX the dependencies for the kernel .ln files are just plain wrong. We
need some sort of extended make depend hack to do it right. We will
suffer with it for now.
2002-11-02 07:57:05 +00:00
perry
9fcaba1f66
Add lint infrastructure
2002-11-02 07:49:57 +00:00
perry
889bb793ca
set LLIBS= so we don't try to check the lint lib against llib-lc.ln
2002-11-02 07:49:29 +00:00
perry
efd79c70c9
Add lint infrastructure
2002-11-02 07:48:17 +00:00
perry
6448ffbdfe
set LLIBS= so we don't try to check the lint lib against llib-lc.ln
2002-11-02 07:46:42 +00:00
yamt
310b5f8041
correct asssertion in cpu_switch: spl higher than IPL_SCHED is also ok.
2002-11-02 07:41:30 +00:00
perry
bbad42171f
/*CONTCOND*/ while (0)'ed macros
2002-11-02 07:40:47 +00:00
perry
e6873029ee
/*CONSTCOND*/
2002-11-02 07:38:42 +00:00
jdolecek
80f0f798bc
back previous revision 1.9 off - compat code was changed to set
...
struct emul e_nsysent to *SYS_NSYSENT now, and the mask is more efficient
2002-11-02 07:37:33 +00:00
perry
dd07fed86d
/*CONTCOND*/, and protect UVMHIST_DECL with #ifdef UVMHIST
2002-11-02 07:37:14 +00:00
perry
4f27ab21b8
/*CONTCOND*/ while (0)'ed macros
2002-11-02 07:30:55 +00:00
perry
6858187df6
/*CONTCOND*/ while (0)'ed macros
2002-11-02 07:20:42 +00:00
perry
e4c3c3c99a
/*CONTCOND*/ a sizeof comparison
2002-11-02 07:19:51 +00:00
perry
3f03646323
/*CONTCOND*/ while (0)'ed macros
2002-11-02 07:17:31 +00:00
perry
1547f39c5a
/*CONTCOND*/ a while (0) macro
2002-11-02 07:15:07 +00:00
perry
7c42625da4
define KERNBASE with a UL -- eliminates 830 or so lines of lint.
2002-11-02 07:09:23 +00:00
perry
fa3fedc290
/*ARGSUSED*/ one function -- eliminates 414 lint complaints
2002-11-02 07:07:09 +00:00
yamt
80fb7e0013
M_ZERO for inline'ed MALLOC.
2002-11-02 06:24:34 +00:00
thorpej
3d93c95dc8
Make register_t == long long for N32, and == long for everthing else.
...
Use register_t in label_t.
2002-11-02 02:45:22 +00:00
perry
c290830eb1
changed asm()s to __asm()s.
...
XXX Now, could someone please explain to me why in the love of Bob a
file containing inline x86 assembler is in sys/dev/isa/????
This should be moved, fixed, or nuked from space.
2002-11-02 02:10:56 +00:00
thorpej
3517ae5f6a
Define N32/N64 register usage.
2002-11-02 02:00:17 +00:00
perry
a0839650fe
asm -> __asm
2002-11-02 01:58:51 +00:00
perry
58d2be532d
asm volatile -> __asm __volatile
2002-11-02 01:57:31 +00:00
perry
73a1e34586
asm -> __asm
2002-11-02 01:56:14 +00:00
thorpej
4b17905e0f
Add support for "link sets", which are arrays of pointers to objects
...
gathered together in named sections by the linker.
2002-11-01 22:58:44 +00:00
kristerw
85b746f61a
ISO C requires a statement after a label.
2002-11-01 21:46:51 +00:00
jdolecek
60c092247e
pckbc_poll_data1(): make sure the loop variable is always initialized
...
this potential problem found by Krister Walfridsson
2002-11-01 21:39:31 +00:00
jdolecek
6a40f5edcb
pipe_read(): initialize ocnt before pipelock() call; it might have been
...
used unitialized when the pipelock() call would fail
bug found by Krister Walfridsson
2002-11-01 21:34:30 +00:00
jdolecek
20e698bdc1
set nsysent to 512 (oh well, just three syscalls too many for 256)
2002-11-01 21:24:19 +00:00
kristerw
58efa0630e
Removed unused variables doclusterread and doclusterwrite.
2002-11-01 21:11:43 +00:00
jdolecek
3b4db9c39d
set nsysent to 256
2002-11-01 21:09:52 +00:00
jdolecek
2cfacee0a0
set nsysent to 256
2002-11-01 20:44:43 +00:00
jdolecek
22ca1fc9f1
set nsysent to 512
2002-11-01 20:32:13 +00:00
jdolecek
8bf8260072
regen: nsysent set to 256
2002-11-01 20:24:23 +00:00
jdolecek
11422af13d
nsysent set to 256, and use linux_sys_nosys()
2002-11-01 20:23:23 +00:00
jdolecek
d53c88616f
add appropriate nsysent, and use linux_sys_nosys as sys_nosys
2002-11-01 20:20:52 +00:00
jdolecek
faf637ce78
add appropriate nsysent
2002-11-01 20:20:10 +00:00
jdolecek
de9c76a3b0
add appropriate sys_nosys and nsysent (not that it matters here too much)
2002-11-01 20:19:29 +00:00
jdolecek
81d274c850
make compile without DEBUG_MACH
2002-11-01 20:04:40 +00:00
jdolecek
e608322a28
regen: bump nsysent to nearest p-o-2 (256)
2002-11-01 19:30:28 +00:00
jdolecek
a0d3a3c03f
bump nsysent to nearest p-o-2
2002-11-01 19:29:21 +00:00
jdolecek
2a9e0afa92
set emul_netbsd's e_nsysent to SYS_NSYSENT, not SYS_MAXSYSCALL
2002-11-01 19:27:05 +00:00
jdolecek
1524c4bf08
set struct emul's nsysent to compat SYS_NSYSENT, not SYS_MAXSYSCALL
2002-11-01 19:26:21 +00:00
simonb
307ae1b2e5
When calculating the space needed for the data, use the supplied
...
userland structure size (if passed in).
Use the supplied userland structure size (if passed in) to check if
there is enough room to copyout the next structure.
2002-11-01 15:20:03 +00:00
mrg
514174fe75
disk_unbusy() change -> NetBSD 1.6K.
2002-11-01 12:49:47 +00:00
mrg
603098b9b5
implement separate read/write disk statistics:
...
- disk_unbusy() gets a new parameter to tell the IO direction.
- struct disk_sysctl gets 4 new members for read/write bytes/transfers.
when processing hw.diskstats, add the read&write bytes/transfers for
the old combined stats to attempt to keep backwards compatibility.
unfortunately, due to multiple bugs, this will cause new kernels and old
vmstat/iostat/systat programs to fail. however, the next time this is
change it will not fail again.
this is just the kernel portion.
2002-11-01 11:31:50 +00:00
simonb
6971634c5e
Destroy "ioext" as well as "memext" when we're done with it.
2002-11-01 09:16:28 +00:00
enami
d1c7d5dcae
Cope with intr.h of rev. 1.29 to prevent panic when DEBUG is defined;
...
since splsched() now raises system priority level just to IPL_SCHED,
we can't assert that current priority level is IPL_HIGH on cpu_switch.
2002-11-01 06:06:17 +00:00
enami
68c7a9fc3f
Pass an argument to panic() correctly.
2002-11-01 05:49:01 +00:00
simonb
3338dd4bd0
Fix fallout from gehenna-devsw merge.
2002-11-01 05:47:23 +00:00
enami
fc1c4219ef
Make this works with QUEUEDEBUG defined; don't use queue pointer after
...
removing an element from queue.
2002-11-01 03:34:07 +00:00
enami
5eec77bccd
Cosmetic changes.
2002-11-01 03:32:21 +00:00
fvdl
4244ef3b22
For INTERLOCK_ACQUIRE, s/splsched/spllock/.
2002-11-01 01:13:32 +00:00
fvdl
5fca9b943c
Make splsched == splclock, and splserial > splsched. Unfortunately,
...
we have to retain the 'pick unlocked interrupt handler' hack for
the MP case for now.
2002-11-01 01:12:43 +00:00
matt
71416f6690
In struct emul, e_nsysent is *not* initialized to *SYS_NSYSENT but
...
*SYS_MAXSYSCALL. Adjust to this and simply compare 'code' to it instead
of doing the p-o-2 dance.
2002-11-01 00:02:40 +00:00
jdolecek
f7d9e82965
constify trap_type[]
2002-10-31 22:32:40 +00:00
jdolecek
b56a7c4e6b
update trap_type[] according to include/trap.h contents
2002-10-31 22:24:42 +00:00
matt
8b4993db5d
Convert to register prefixes. Use ANSI string concatenation for
...
multiline asm strings.
2002-10-31 21:31:08 +00:00
itojun
ad337ee31a
plug a memory leak. from sam leffler. sync w/kame
2002-10-31 17:36:16 +00:00
scw
f8647e7e3c
Make interrupt routing work for PCI slots 2 and 3.
2002-10-31 14:54:37 +00:00
scw
bc159224ed
Missing newline.
2002-10-31 14:52:54 +00:00
scw
78aeffb90b
Add an explicit ULL suffix to a 64-bit constant to appease gcc-current.
2002-10-31 14:52:30 +00:00
scw
3795c4e6f4
Since we keep a list of all mappings for a given physical page (even
...
unmanaged mappings) so we can deal with cache aliases, make sure to
skip unmanaged/wired mappings (added via pmap_kenter_pa()) when doing
things like pmap_page_protect().
2002-10-31 14:34:17 +00:00
scw
6a3f09110b
Catch NMIs when DDB is defined, instead of DEBUG.
...
Drop the interrupt level to zero when before handling ASTs in the
exit path of h/w interrupts.
2002-10-31 14:24:16 +00:00
scw
8bf915f645
When setting the SP for a process, copy the same value to the
...
process' FP for the sake of consistency.
2002-10-31 14:20:39 +00:00
martin
8ab4396fef
Rearange struct mach64screen to be derived from struct rasops_info,
...
move a few bits around and make adding screens after attach time
actually work.
When not booting as console, try to properly set up the hardware to
get a display nevertheless (XXX - does not yet work on my U5).
#if 0 some unused functions planned for future extensions (to make clear
they are unused now)
2002-10-31 14:10:07 +00:00
junyoung
c6326ab133
Now VGA_CONSOLE_SCREENTYPE can be specified with VGA_RASTERCONSOLE.
...
Currently only 80x25 and 80x30 modes are supported.
2002-10-31 13:06:50 +00:00
junyoung
78e97058d5
Simplify vga_raster_setscreentype() and clean up code.
2002-10-31 11:05:25 +00:00
ichiro
c0c620567a
regen
2002-10-31 10:40:19 +00:00
ichiro
5cbc05430b
add WLI-USB-KS11G USB wlan adapter
2002-10-31 10:36:42 +00:00
christos
e6535bf628
XXX: be32toh on powerpc does not cast to int32_t so passing u_long to
...
be32toh produces an unsigned long result, causing a printf argument
mismatch. This is the wrong fix, but I am not going to change the
powerpc macros; fix the powerpc macros and revert my change.
2002-10-31 02:40:41 +00:00
manu
293419f314
int format long arg problems
2002-10-30 23:08:00 +00:00
kleink
0917926472
Revert rev. 1.147, as per PR kern/17411.
...
While a hard link to a symbolic link is not ruled out by POSIX-2001,
the link(2) interface is to perform normal pathname resolution,
which includes the resolution of symbolic links.
2002-10-30 22:36:46 +00:00
matt
1cec255a41
Move child_return back to syscall.c
...
Fix syscall to use emulations SYS_syscall/SYS___syscall definitions.
Use the emulation NSYSENT to limit code.
Don't define *syscall_fancy if it will never be used.
2002-10-30 18:34:15 +00:00
matt
c9699a165e
Add missing file.
2002-10-30 18:31:39 +00:00
christos
74e8fc3424
fix fat binary architecture choosing code. mach binaries now execute as
...
poorly as before the x86 MP merge.
2002-10-30 15:21:01 +00:00
christos
dc5aff13e6
make this compile again.
2002-10-30 15:04:47 +00:00
christos
1e48015df9
more debugging for the overwrite trap.
2002-10-30 15:04:17 +00:00
christos
a22639c38a
make this link again [mp branch merge lossage]
2002-10-30 15:03:42 +00:00
tsutsui
f76d1dd00a
Tidy up config files:
...
- make GENERIC more generic
- add GENERIC_MD, which has MEMORY_DISK stuff and just includes GENERIC
- add a call of dbsym(8) in Makefile.dreamcast.inc
Approved by marcus.
2002-10-30 12:22:55 +00:00
manu
6224b0c0ce
Fixed mistakes
2002-10-30 07:39:40 +00:00
manu
28aec4f521
Added COMPAT_MACH and EXEC_MACHO
2002-10-30 06:45:17 +00:00
manu
fddf44c0bf
Add COMPAT_MACH and EXEC_MACHO support on the PowerPC
2002-10-30 06:41:45 +00:00
manu
a3da524774
Prepare syscall.c for COMPAT_MACH support. linux_syscall_intern is
...
moved to a Linux specific file, child_return is moved to trap.c,
and we introduce a EMULNAME macro co that syscall.c can be included to
define the system call handler for another emulation.
2002-10-30 06:37:37 +00:00
manu
fe4e91080d
Moved binary compatibility options from arch directory to cpu directory
2002-10-30 06:26:42 +00:00
manu
3d25c32160
Removed m68k OSes binary compatibility (this is a powerpc port, right?)
2002-10-30 06:20:01 +00:00
yamt
3a7bfaf54e
change "uoff" to voff_t from vaddr_t as it's offset within uvm object.
...
fix PR/18855.
2002-10-30 05:24:33 +00:00
simonb
a426ccb272
Fix whitespace bogon.
2002-10-30 02:48:28 +00:00
petrov
71614764a4
Compile with an ISO C preprocessor.
2002-10-30 01:46:09 +00:00
manu
9b4f3b0464
Introduce an array of supported CPU types by a given arch for Mach-O
2002-10-29 22:22:30 +00:00
leo
4ffdd69467
Fix typo (isic_isac_recover -> isic_recover). Noticed by Matthias Drochner.
2002-10-29 21:02:45 +00:00
manu
b57515f2c4
If the magic number is 0xfeedface instead of 0xcafebabe, this means that
...
the executable is not fat. The binary starts with an object header instead
of a mach fat header.
2002-10-29 19:28:19 +00:00
junyoung
d285dd8c38
Reduce the number of #ifdef __sparc__ from 5 to 3.
2002-10-29 17:54:40 +00:00
tsutsui
561b10d262
Remove no longer needed #ifdef __alpha__ and #ifdef __mips__.
2002-10-29 17:01:16 +00:00
tsutsui
48d369009d
Echo dbsym command.
2002-10-29 14:33:32 +00:00
tsutsui
4ece245b0e
Initialize statprev in setstatclockrate().
2002-10-29 14:30:03 +00:00
junyoung
93c1a9d0c7
Rename sparc_screen_is_console() to mach64_is_console() and turn it into
...
a MI interface.
2002-10-29 13:50:11 +00:00
blymn
29b7b4241f
Added support for fingerprinted executables aka verified exec
2002-10-29 12:31:20 +00:00
yamt
059aba1c85
fix panic (assertion failure) on error case.
...
if uiomove is failed, we should clean up pages past eof.
the problem reported by kay.
ok'ed by Chuck Silvers.
2002-10-29 10:15:16 +00:00
chs
fc374b9d4f
add Boca Research 4- and 8-port cards. from openbsd.
2002-10-29 08:59:36 +00:00
chs
cab484e445
move includes to the top so that this builds in libc context too.
2002-10-29 04:40:55 +00:00
hubertf
bf1b684897
Add dates. From src/doc/CHANGES* and CVS, mostly.
2002-10-29 01:13:01 +00:00
manu
f9cac3b168
Changed the ifndef guard of this header file from _MACH_EXEC_H_ to
...
_POWERPC_AOUT_EXEC_H_. The former was conflicting with
<compat/mach/mach_exec.h>.
2002-10-28 18:00:40 +00:00
itojun
02a04fd9fc
increase correct stat. KAME pr 445
2002-10-28 16:42:44 +00:00
jdolecek
5ab7d519a3
now that mem_no is emitted by config(8), there is no reason to keep
...
copy of more or less identical iskmemdev() for every arch; move the function
to spec_vnop.c, and g/c machine-dependant copies
2002-10-28 13:33:07 +00:00
chs
c28a94e9e1
untangle includes a bit:
...
don't include cpu.h in pmap.h, nor cacheops.h in cpu.h. instead,
include cpu.h and cacheops.h in just those .c files that need them.
2002-10-28 00:55:13 +00:00
chs
4e15ef25e9
include wscons definitions, dev/sun/kbdvar.h needs it now.
2002-10-27 23:23:48 +00:00
manu
e5620d742d
KNF
2002-10-27 22:22:04 +00:00
manu
998f955471
Inaccurate comment fixed: This is not about SVR4, it's Mach
2002-10-27 21:41:51 +00:00
augustss
94a55d86a0
Cosmetic changes.
2002-10-27 20:16:41 +00:00
chs
c04f87a03e
remove setjmp/longjmp from libkern, they're not used.
2002-10-27 18:45:11 +00:00
chs
c5a350ef59
use %g5 instead of %g7 (since we want to use %g7 for the cpu_info pointer
...
in the kernel). resync libc and libkern versions of this file.
2002-10-27 18:41:27 +00:00
chs
f921b6a46c
make this compile with DEBUG (name changes missed in rev. 1.172).
2002-10-27 18:39:17 +00:00
tsutsui
d0b20addb4
Add fmv and ne at isapnp, which are also working on cats.
2002-10-27 17:57:13 +00:00
chs
e60ad901b2
examine the B_ERROR flag instead of the b_error field to determine
...
whether or not an error has occured. pointed out by Stephan Uphoff.
2002-10-27 16:53:20 +00:00
martin
f22bd286db
Oops, forgot to commit this: include files.wscons instead of files.rcons.
2002-10-27 14:42:58 +00:00
tsutsui
d0e55f3720
Add fmv* at isapnp? for FMV-183.
2002-10-27 10:28:39 +00:00
isaki
a3708094fa
Retire it. Maintaining it (= syncing with GENERIC) is worthless
...
anymore. OK'ed by nsmrtsk.
2002-10-27 05:25:27 +00:00
martin
6837231089
Allow attaching wskbd at kbd, idea from Valeriy Ushakov.
...
This allows us to use both the old sun keyboard events (/dev/kbd) as
new wscons events (/dev/wskbd*).
TODO: Not implemented for the kbd at zstty attachment.
Wskbd as console does not yet work.
2002-10-26 19:11:13 +00:00
jdolecek
c82ab2eb79
now that mem_no is emitted by config(8), there is no reason to keep
...
copy of more or less identical iskmemdev() for every arch; move the function
to spec_vnop.c, and g/c machine-dependant copies
2002-10-26 13:50:17 +00:00
jdolecek
405d32e2db
g/c local offsetof(), it's defined in libkern.h
2002-10-26 13:24:55 +00:00
jdolecek
53ab400e78
add <machine/atomic.h> for netwinder (copied from cats, just wrapper
...
to #include <arm/atomic.h>)
2002-10-25 22:53:57 +00:00