Commit Graph

82221 Commits

Author SHA1 Message Date
yamt
fa517f1fc0 make this compilable without kernfs in the case of !DOM0OPS && XEN3. 2006-07-07 18:15:53 +00:00
yamt
aa5b46a800 xbdsize: fix an null dereference. 2006-07-07 17:59:21 +00:00
skrll
e5bd1e1629 Disable DDB_DEBUG by default 2006-07-07 09:40:54 +00:00
skrll
0fd55006fe Fix use of user_backtrace. It takes a lwp pointer now. 2006-07-07 09:38:47 +00:00
cherry
8e4670dadf Towards building libc/arch/ia64 2006-07-07 06:42:32 +00:00
simonb
5f14059883 Regen. 2006-07-07 01:22:31 +00:00
simonb
bbed75b78f Add another Intel 3945 wireless minipci device id.
Small part of kern/33778 by Jean-Baptiste Campesato.
2006-07-07 01:21:37 +00:00
simonb
90498e88b2 s/writting/writing/. 2006-07-07 00:56:15 +00:00
perseant
a2aa7212a8 Protect lfs_order_freelist() with the segment lock. 2006-07-06 22:27:19 +00:00
perseant
b8ec630ade Fix a typo that caused a "multiple free" panic on unmounting a resized lfs. 2006-07-06 22:14:18 +00:00
martin
6bfe6be406 Make it compile on 64 bit machines 2006-07-06 21:55:06 +00:00
ross
96cf233754 more refinements for ppc64 PIC/PLT/TOC issues 2006-07-06 15:26:51 +00:00
scw
5914c06c4c Fix the entries for SPR_DC_ADR and SPR_DC_DAT. 2006-07-06 15:09:54 +00:00
wrstuden
1b9990ba67 Fix len=-4 issues.
When receiving a packet, if a receive buffer has length 0,
treat it the same way we treat a failed mapping.

Fix contributed by Wasabi Systems.
2006-07-05 23:51:50 +00:00
perry
202456461a Patches contributed by KIYOHARA Takashi, taken from FreeBSD.
These apparently sync up the sources to the current FreeBSD driver.
Tested by Matthias Drochner.
2006-07-05 18:46:42 +00:00
xtraeme
9c392ba6f4 Repeat after me, use __KERNEL_RCSID. 2006-07-05 18:17:59 +00:00
bouyer
de888ac7f5 Comment out acpi0, until someone can make it compile again after the recent
acpi changes.
2006-07-05 17:00:46 +00:00
itohy
3b04fb4334 Back out previous change. The problem was not here. Oops. 2006-07-05 15:19:38 +00:00
drochner
ff6945ed02 obey VM_PROT_EXECUTE in pmap_kenter_pa (just use protection_codes[]) 2006-07-05 14:36:29 +00:00
drochner
8d2b5419d9 make this compile with standard warning level 2006-07-05 14:33:20 +00:00
drochner
8c61e0077d Request executable memory for LKM code/data areas. This fixes LKMs
on alpha (which were broken for more than a year appearently and noone
noticed). (The other archs didn't suffer because their pmap_kenter_pa()
doesn't support non-executable mappings.)
2006-07-05 14:31:00 +00:00
drochner
ef8848c74a Introduce a UVM_KMF_EXEC flag for uvm_km_alloc() which enforces an
executable mapping. Up to now, only R+W was requested from pmap_kenter_pa.
On most CPUs, we get an executable mapping anyway, due to lack of
hardware support or due to lazyness in the pmap implementation. Only
alpha does obey VM_PROT_EXECUTE, afaics.
2006-07-05 14:26:42 +00:00
bjh21
6431f3b2de Descend into nbfs -- I think it's useful now. 2006-07-04 23:08:51 +00:00
bjh21
c6bb58fda2 We don't actually use NEWVERSWHAT, but we should still try to make it correct. 2006-07-04 23:08:10 +00:00
bjh21
ac8af88277 Add some definitions necessary for the latest NBFS, plus a couple of
functions that my boot32 hacks are likely to require.
2006-07-04 23:06:51 +00:00
rpaulo
81cc271bc5 Add missing semicolon. 2006-07-04 23:05:11 +00:00
bjh21
6022ed9721 Fix missing newline at end of file. 2006-07-04 22:42:11 +00:00
bjh21
b314f251e2 Add suppport for FSEntry_file 255, loading whole files. Now I can open
/etc/passwd in Zap.
2006-07-04 22:34:54 +00:00
christos
96c223fe5a spell NACPI correctly. 2006-07-04 18:46:42 +00:00
christos
f73658ad42 put depend back. 2006-07-04 18:43:35 +00:00
christos
e619d191dd more typos. 2006-07-04 18:43:13 +00:00
christos
9f1b8cb28e Another missed dependency. 2006-07-04 18:41:41 +00:00
rpaulo
32404d58a1 Coverity CID 3805: Close the firmware_handle on error and avoid leaks. 2006-07-04 18:26:29 +00:00
martin
1a8d6cd53d Initialize the "console screen" once - no matter if we are console or
not.
2006-07-04 18:14:44 +00:00
christos
a5bf930cbd PR/33912: tron: Building GENERIC kernel fails
Fallout from ACPI changes.
2006-07-04 14:53:47 +00:00
itohy
16b4260abb Do not define the link_set symbol as static, or a.out linker won't find it. 2006-07-04 14:09:37 +00:00
he
c3480eebba The declaration of mpacpi_active needs to be unconditional because
there's an unconditional use.
2006-07-04 10:05:06 +00:00
jld
3ebfa1a07d Fix accidentally unsigned comparison, which was causing the timer event
handler to run ~forever in the face of slightly unexpected input from
Xen (system_time apparently going backwards).  Pointed out by kardel@.
2006-07-04 07:35:28 +00:00
simonb
78877867ee Remove some unused variables. 2006-07-04 06:25:50 +00:00
christos
d16c773e0b fix typo 2006-07-04 00:47:47 +00:00
christos
01158ea892 Apply fvdl's acpi pci interrupt configuration code.
- MPACPI is no more.
- MPACPI_SCANPCI -> ACPI_SCANPCI
2006-07-04 00:30:21 +00:00
christos
8fed18e200 another dependency. 2006-07-04 00:16:05 +00:00
christos
4914e0cd44 typo 2006-07-04 00:13:35 +00:00
christos
8ace01b173 athrate_sample.o needs the generated header file 2006-07-04 00:10:34 +00:00
skrll
4b14ca6f7c Actually drop into ddb for unknown traps (with the right conditions) 2006-07-03 19:48:30 +00:00
cherry
daf99d36cd towards exec(): first round at fixing USPACE 2006-07-03 17:02:56 +00:00
cherry
46c3dfbc17 misc #define cleanups 2006-07-03 17:01:45 +00:00
cherry
f0def1c53a fix nbmake-ia64 to clean include links 2006-07-03 16:50:40 +00:00
yamt
d145ea66dc change KMEM_QUANTUM_SIZE from sizeof(void *) to (ALIGNBYTES + 1).
the latter is larger on eg. sparc.

noted by Christos Zoulas.
http://mail-index.NetBSD.org/port-sparc/2006/07/02/0001.html
2006-07-03 09:18:35 +00:00
christos
2f4b451441 Make sure we have at least PIPE_BUF bytes available in the socket send buffer.
Review and comment by yamt.
2006-07-03 02:34:39 +00:00
mrg
8a3f21aea4 always include the code to lookup bootinfo for memory size. however,
don't use it if biosbasemem or biosextmem are non-zero.  this allows
one to set these variables in /netbsd rather than a kernel rebuild with
options REALBASEMEM/REALEXTMEM, as used to be.  PR#33659.
2006-07-03 01:25:33 +00:00
mrg
ba1331d1b0 don't pass unsigned char * to functions wanting char *. 2006-07-03 01:21:50 +00:00
bjh21
32bed2b7b7 Add support or FSEntry_Func 14 and FSEntry_Func 15, which seem to be the
important directory-listing entry points.
2006-07-02 22:06:16 +00:00
bjh21
1b0f046ee7 Define LIBSA_NO_TWIDDLE, since NBFS really shouldn't twiddle(). 2006-07-02 22:05:07 +00:00
bjh21
7ec4d05a27 Add a *NBFS command to select NBFS as current filing system. 2006-07-02 22:03:23 +00:00
bouyer
2707ad28d9 Add a kernel config file for Xen3 Dom0, built as part or i386 release. 2006-07-02 21:28:39 +00:00
bouyer
a2847deb82 Fix a bogus gcc4 uninitialized warning. 2006-07-02 18:54:25 +00:00
bouyer
0692f212b3 Move acpi_timer.h outside of __HAVE_TIMECOUNTER, as we need acpitimer_init()
for the non-timecounter case too.
2006-07-02 18:53:33 +00:00
cherry
2d00b8d1f2 nits 2006-07-02 17:28:11 +00:00
cherry
efe41d02f0 trying MFS for ski FS 2006-07-02 17:23:59 +00:00
bouyer
b96fedac26 block device backend driver for Xen3. Add
pseudo-device xbdback
in your config file to use.
2006-07-02 16:35:24 +00:00
bouyer
3fc47e70cc Fix a off by one error in xstart_mmu[] that would cause bad corruption
when handling full batch of requests.
Linux expects to have 16 btyes free between the start of the RX buffer and the
start of the packet, handle this.
Get rid of the "hotplug-status" hack, we now have proper tools to deal with
it in userland.
Various minor fixes and code reorg.
2006-07-02 16:32:49 +00:00
bouyer
9b4c2c6758 m_copyback() doesn't adjust m->m_len if the data to copy is smaller than
the mbuf's size. Set it to a proper value before calling m_copyback().
This should fix panics in m_makewritable() reported by several peoples.
While there, add MCLAIM() calls where appropriate, a few more #ifdef DEBUG
checks, and various minor fixes.
2006-07-02 16:29:49 +00:00
tsutsui
344bead7dc Rearrange DELAY() macro to use an asm statement so that we'll get more
proper delay.
2006-07-02 11:24:43 +00:00
tsutsui
8fa9dbf439 Remove sc_table[] decl, which is in device.h. 2006-07-02 11:10:28 +00:00
tsutsui
8fee3d1ece Use a volatile variable in DELAY() macro so that gcc4 won't omit it.
Fixes output corruption on DCA console boot.

XXX some mips ports have the similar macro in <machine/param.h>.
2006-07-02 10:40:25 +00:00
jdc
94f3432c06 PCI device list and interrupt mapping for JavaStation Espresso.
Interrupt line values from Linux sparc sources.
2006-07-02 10:14:15 +00:00
tsutsui
554727189c Use register macro defined in <dev/ic/i8259reg.h>. 2006-07-02 04:22:38 +00:00
wiz
bd3700fe4c Uppercase CPU. 2006-07-02 01:33:55 +00:00
christos
46e62b977f - use aprint instead of printf.
- centralize all the suspend/resume glue in one function.
2006-07-01 21:44:13 +00:00
christos
2e36d566f6 If we the current process is a kernel proc, then we don't need to play with
the pmap, because the wakecode is already mapped. Makes the acpi based apm
shim work.
2006-07-01 21:42:39 +00:00
ross
db9b461644 Add ppc64 ENTRY() macro that defines the descriptor and the dot symbol. 2006-07-01 20:34:49 +00:00
xtraeme
50183b94a7 Added it(4) as MI driver. 2006-07-01 20:01:26 +00:00
xtraeme
22b2e63617 Add commented out it(4) entry, per suggestion in PR kern/33886. 2006-07-01 19:55:32 +00:00
tsutsui
e50565f96a No need to install autoconf.h. 2006-07-01 17:33:25 +00:00
tsutsui
3eb4d24002 No need to export autoconf.h to userland. 2006-07-01 17:24:19 +00:00
tsutsui
06801cfcf5 Remove obsolete display.h. 2006-07-01 17:19:39 +00:00
tsutsui
0b60e69029 Use MI <dev/ic/pcdisplay.h> rather than MD <machine/display.h>. 2006-07-01 17:15:46 +00:00
christos
5f5ceecc09 Revert previous change to bump the socket low watermark to sock_loan_thresh.
With sock_loan_thresh=4096, sb_lowat==sb_hiwat, and sowritable will never
be true (even if only a single byte is pending). Some programs (like screen)
expect select() to return that a socket is writable on a socket when there
is space to write to it. XXX: What is the right thing to do here?
2006-07-01 15:38:28 +00:00
chap
8576d4b377 Correct build failures when MIDI is not enabled (the idea!).
Specifically eap but no midi, which makes sense if you want sound,
and umidi but no midi, which makes little sense but shouldn't fail the
build.

Suggest changing the evbarm conf files containing umidi but #midi
to comment out umidi as well (even though this fix should let them build).
2006-07-01 15:22:06 +00:00
nakayama
401d23b252 Uncomment "midi* at midibus?" to make umidi work. 2006-07-01 15:19:32 +00:00
yamt
ce1a2b18c3 some comments taken from Jed Davis's patch. 2006-07-01 11:30:44 +00:00
yamt
e38f237e53 if a file is sillyrename'ed because it's a destination of rename,
make sillyrename (try to) use LINK operation rather than RENAME.
PR/33861 from Jed Davis.  he provided the almost same patch.
according to him, it also happen to be what opensolaris does in this case.

from the PR:
> In nfs_rename(), if the destination appears to exist and is "in use"
> (this check is apparently satisfied even if the file isn't in use by
> anything except the rename itself), it will sillyrename it, then delete
> the sillyrenamed file even if the rename fails -- for instance, because
> the "from" file no longer exists on the server.

> mkdir a b; touch a/x; perl -e 'fork(); rename("a/x","b/x") or die "$!\n"'
>
> Afterwards, neither a/x nor b/x will exist.

> 1) Lookup of b/x; fails with NOENT.
> 2) Rename from a/x to b/x; succeeds.
> 3) Lookup of b/x; fails with NOENT.
> 4) Rename from b/x to b/.nfsA23a3; succeeds.
> 5) Rename from a/x to b/x; fails with NOENT.
> 6) Remove of b/.nfsA23a3; succeeds.
2006-07-01 11:29:42 +00:00
martin
931985243c Redo previous differently - just use time_second.
Pointed out by Frank Kardel.
2006-07-01 10:12:36 +00:00
jmmv
ce9f9820ee Fix order of biosbasemem and biosextmem order in a comment to match reality.
Closes PR kern/32082 by Dave J. Barnes.
2006-07-01 09:21:28 +00:00
martin
c627e877cf Make it compile post time-counter merge 2006-07-01 08:42:39 +00:00
martin
2006fdaf3e Regen 2006-07-01 08:15:16 +00:00
martin
4b488fb5fa Add an ArkMicroChips serial adapter 2006-07-01 08:14:46 +00:00
mrg
5bf1ad3744 fix pointer signedness and build with GCC4. 2006-07-01 05:55:34 +00:00
kardel
6dc2fb00a7 L_CLR(time_adj) each round so adjtime() corrections don't
accumulate over time resulting in a constantly speeding/
slowing clock. found with wiz@ in a timecounter non NTP
kernel configuration.
2006-07-01 05:44:26 +00:00
kardel
596d823cde always call ntp initialisation for timecounter systems as
the ntp code degenerates to the adjtime implementation in the
non NTP case
2006-07-01 05:41:10 +00:00
ross
5a664ca53d Map powerpc64 to powerpc 2006-07-01 01:29:55 +00:00
xtraeme
8ad8d8401b Add __KERNEL_RCSID(). 2006-06-30 23:21:19 +00:00
xtraeme
1f14228ee9 Remove a debug printf. 2006-06-30 23:19:40 +00:00
freza
78037d3f6d Bring ibm4xx interrupt code up to date:
- generic soft interrupts (ie. use powerpc/softintr.c)
- interrupt event counters (using the ones from powerpc/cpu.h:cpu_info
  where appropriate)
- cleanup ibm4xx_intr.h, move implementation details to intr.c

Convert all affected evbppc platforms.

OK by simonb@, some points discussed with matt@
2006-06-30 17:54:50 +00:00
nisimura
00ef0ad833 Refer to kse as an MI driver. 2006-06-30 17:21:00 +00:00
nisimura
28ad8aedac Regen after Micrel KSZ8842/8841 product addtion. 2006-06-30 17:19:32 +00:00
nisimura
9a76d77bfb Add kse(4) driver for Micrel KSZ8842/8841 Ethernet controller. 2006-06-30 17:17:09 +00:00
xtraeme
cc39aa8f95 Match IT8211 IDE Controller. 2006-06-30 17:01:32 +00:00
xtraeme
52905b27a4 regen 2006-06-30 17:01:09 +00:00
xtraeme
326252b4eb Add ITE IT8211 IDE Controller. 2006-06-30 17:00:18 +00:00
xtraeme
df1031319c Match ATI IXP SB600 IDE/SATA. 2006-06-30 16:28:40 +00:00
xtraeme
8edb097c79 regen 2006-06-30 16:23:27 +00:00
xtraeme
e11c4cc307 Add some missing ATI devices. 2006-06-30 16:22:54 +00:00
drochner
ad1ca09fb9 -fix for previous: don't malloc() with spinlock held
-wrap some long lines
2006-06-30 15:50:46 +00:00
chap
710af63468 Ankh-Morpork, we have a MIDI driver....
Merge from chap-midi branch, after
~month for review
Comments by thorpej@ drochner@ and Alexandre Ratchov

Incorporated: points by thorpej@ drochner@; preliminary support for
a stats-collecting ioctl suggested by martin@ from comments by A.R.

PR kern/32441 kern/32442 kern/32567 kern/32588 kern/32694 kern/33590
kern/33614 and one instance of kern/32651

ok martin@
2006-06-30 13:56:25 +00:00
tsutsui
1c1d619cf7 Regen from GENERIC.in rev 1.53:
> Add CARP to further platforms
2006-06-30 10:54:09 +00:00
tsutsui
62040eebd7 Add (commented out) pseudo-device carp. 2006-06-30 10:51:46 +00:00
tsutsui
90c32d008c Sync with GENERIC (commented out UDF, carp, VND_COMPRESSION, and veriexec) 2006-06-30 10:48:57 +00:00
tsutsui
bc766890f7 Make GENERIC config really generic and change GENERIC32 config for 32 bit
compat kernel to include the GENERIC and use "no" keywords of config(1).
Also merge std.sparc64-64 into std.sparc64 and prepare std.sparc64-32
which uses "no" keywords for 32 bit kernels. OK'ed by mrg.
2006-06-30 10:27:48 +00:00
yamt
2246835eec wrap long lines and fix indents after kauth merge. 2006-06-30 09:56:03 +00:00
yamt
3333e8aa5c fix handling of NFSERR_NOTSUPP and NFSERR_BAD_COOKIE,
which have been broken since nfs_socket.c rev.1.115.
2006-06-30 09:55:34 +00:00
yamt
2a9a8246f0 nfs_request: don't bother to handle NFSERR_STALEWRITEVERF
because it isn't a real nfs error value.
2006-06-30 09:55:06 +00:00
he
68f1dc24e6 Convert from using the no-longer-existing sys_socket to using the
recently introduced compat_30_sys_socket.
2006-06-30 09:06:32 +00:00
tacha
3fb751b1b5 Make 802.11 devices to work with stealth AP even when scanning
channels marked passive.

From FreeBSD.
2006-06-30 06:17:10 +00:00
perseant
b99e4c8268 Don't wake up the cleaner if the filesystem is unwrappable, and fix the
compatibility fcntls.

Also includes one-line fixes for an MP locking bug and a zero-length FINFO
problem that manifested during testing.
2006-06-29 19:28:21 +00:00
garbled
793a3b26d8 Change how the MPIC/OpenPIC is configured at boot. Rather than scanning
for a magical PCI device location (that is sometimes wrong), we scan the
residual data for an MPIC, and if we find one, wire it up from there.
This will hopefully allow interrupts to work on the MPC750 and the
7025-F40. I suspect however the interrupt vector address on the 7025 will
still need some work.
2006-06-29 17:16:59 +00:00
liamjfoy
56054d1bbb Fix a minor printf found while reading the code 2006-06-29 16:56:31 +00:00
martin
e61efdcd34 Style nits from Christos. 2006-06-29 16:12:27 +00:00
martin
e7c025db82 The arguments to syscalls (struct args) need 64 bit alignment for some
syscalls (like mmap), and the same is true for return values (lseek).
Make both structs a union to force alignment. Thanks to uwe for helping
analyze this!
While there move the non syscall-related functions out of this file
(back to trap.c).

This makes kernels compiled with gcc4 and -Os work.
2006-06-29 15:05:06 +00:00
liamjfoy
d00a9ac91b Add CARP to further platforms
ok christos, julian coleman and matthew green
2006-06-29 14:00:55 +00:00
lukem
7a08c82b0b whitespace cleanup 2006-06-29 06:39:38 +00:00
lukem
e84a5a6bd9 Use BUILDSYMLINKS & DPSRCS to simplify the creation of includedir symlinks. 2006-06-29 06:37:19 +00:00
lukem
accbe31e2f support MAKEVERBOSE 2006-06-29 06:31:12 +00:00
lukem
005d886d08 whitespace cleanup. 2006-06-29 06:29:39 +00:00
lukem
419dfdd76b Use BUILDSYMLINKS & DPSRCS to simplify the creation of includedir symlinks. 2006-06-29 06:24:50 +00:00
pavel
60646c8d46 Regen after addition of sys___ntp_gettime30 and sys___socket30. 2006-06-29 06:02:42 +00:00
pavel
78789f2545 after sys_socket() versioning, add the new socket syscall. 2006-06-29 05:58:00 +00:00
pavel
43ffaf603b Add the new ntp_gettime syscall to match native syscalls.master. 2006-06-29 05:54:18 +00:00
lukem
d315681443 Support MAKEVERBOSE 2006-06-29 03:46:43 +00:00
lukem
0de20fdaf1 Rename LDFLAGS to LINKFLAGS, as the former is for CC not LD. 2006-06-29 03:38:24 +00:00
lukem
1e9eece03f support MAKEVERBOSE 2006-06-29 01:45:03 +00:00
lukem
aa161fb130 Rename LDFLAGS to LINKFLAGS, as the former is for CC not LD. 2006-06-29 01:28:33 +00:00
lukem
3358af6498 support MAKEVERBOSE 2006-06-29 00:30:32 +00:00
lukem
9969942b49 Rename LDFLAGS to LINKFLAGS, as the former is for CC not LD. 2006-06-29 00:28:30 +00:00
he
34485a4327 Make devsw non-static to match libsa/stand.h. 2006-06-28 22:22:50 +00:00
martin
378dec2fe2 Align the size and alignment of label_t (kernel jmp_buf equivalent)
with the use in setjmp/longjmp. Duh!
This makes DDB work again on sparc kernels compiled with gcc4.
2006-06-28 20:55:45 +00:00
martin
74f5218c64 Initialize portno 2006-06-28 18:20:36 +00:00
tsutsui
17e0f13ac0 Sync with GENERIC:
> Add CARP to GENERIC kernel configs. CARP is not enabled by default.
2006-06-28 18:11:18 +00:00
he
6117af14a1 Fix a build problem ('kernel_l1pt.pv_va may be used uninitialized'). 2006-06-28 18:10:13 +00:00
drochner
7d0c55ee34 fix the dad_count logic: if we send a packet successfully, reset the counter
for sent tries -- otherwise it gets confused if dad_count is set to >15
by the sysctl, and addresses get stuck in "tentative" state forever
2006-06-28 16:43:43 +00:00
lukem
18f00f5cff support MAKEVERBOSE 2006-06-28 16:28:51 +00:00
lukem
78538138b4 Rename LDFLAGS to LINKFLAGS, as the former is for CC not LD. 2006-06-28 16:27:27 +00:00
lukem
b231a333f6 more MAKEVERBOSE 2006-06-28 16:24:08 +00:00
lukem
0b18a2cbf7 support MAKEVERBOSE 2006-06-28 16:23:24 +00:00
lukem
dcf5685dbf Rename LDFLAGS to LINKFLAGS, as the former is for CC not LD. 2006-06-28 16:20:42 +00:00
drochner
270bc37d08 add a missing splx() in an error path 2006-06-28 16:19:01 +00:00
liamjfoy
aeee5deab9 Add CARP to GENERIC kernel configs. CARP is not enabled by default.
ok: christos
2006-06-28 15:19:27 +00:00
tron
bffca25254 Actually initialize the "struct midi_info" in midi_getinfo().
Problem found by GCC 4.x.
2006-06-28 10:04:56 +00:00
tsutsui
12b8371e3a Remove extern decls for static variables. 2006-06-28 09:55:08 +00:00
lukem
b1abc055c0 support MAKEVERBOSE 2006-06-28 09:27:17 +00:00
lukem
b03adcaa93 Convert to using CC instead of LD, as LDFLAGS is for CC not LD. 2006-06-28 02:20:44 +00:00
garbled
d0b840b1df General fixups:
1) Fix support for the powerstack E1.  This machine needs to use the 8259
directly, and cannot use the prep interrupt vector register.  Place a
quirk entry in the table for the machine.
2) Add a new com0_vreset boot image.  The vreset code only works on a few
machines, and breaks others like the 7025-F40.  Its only limitedly useful
when used with the com0, so just make it an optional image the user can
install by hand if they want.
3) Bump the bootloader to 1.8 with the above change.
2006-06-27 23:26:13 +00:00
he
22d1eb4faa Fix a build problem ('kernel_l1pt.pv_va may be used uninitialized'). 2006-06-27 23:02:04 +00:00
kent
fa7f95d3ad * azalia_pci_attach()
print the vendor name of the device
* azalia_pci_detach()
 add some debug messages
* azalia_codec_delete()
 fix a possible NULL dereference
2006-06-27 22:02:14 +00:00
kent
bb47f6722f regen for NVIDA MCP55_HDA 2006-06-27 21:39:28 +00:00
kent
544b415e14 improve the description of NVIDIA MCP55_HDA 2006-06-27 21:38:40 +00:00
peter
0c9a60ff27 Hide the bit invertion/shifting of values received from and send to the MCU
inside the j720ssp_readwrite function. This simplifies the calls to this
function a little.
2006-06-27 14:36:50 +00:00
drochner
62663607af fix some pointer botches which made wiconfig panic my machine 2006-06-27 14:30:52 +00:00
peter
7d389a2c21 Invert the brightness/contrast values so that higher values will
give more brightness/contrast instead of less.

No objection on port-hpcarm.
2006-06-27 14:18:00 +00:00
peter
a92b58da31 KNF. Correct some spelling errors. 2006-06-27 13:58:08 +00:00
peter
d6a89fc155 "AUTHOR" is really meant here, not "REGENTS".
Eleminate some use of #ifdef SED_DEBUG.
2006-06-27 13:30:19 +00:00
peter
257aff65b2 Minor KNF, correct some comments. 2006-06-27 13:26:44 +00:00
tsutsui
b9927f2311 Remove static from devsw[] declaration since it's declared as extern
in <lib/libsa/stand.h>.
2006-06-27 11:12:57 +00:00
tsutsui
267074cf60 - fix signed/unsigned mismatch
- fix lvalue cast
2006-06-27 11:07:17 +00:00
peter
5fb2d42e80 Use symbolic constants for the UART register locations.
Consistently write "SA-11x0".
2006-06-27 11:01:41 +00:00
peter
f4aa0d8f5a Fix typo in a comment. 2006-06-27 10:56:16 +00:00
tsutsui
762bb578e9 Include <stdlib.h> for exit(3) prototype. 2006-06-27 10:55:16 +00:00
tsutsui
d03388424c volatile void func(decl) -> void func(decl) __attribute__((__noreturn__))
to appease gcc4.
2006-06-27 10:53:11 +00:00
tron
d700257e96 Make this build with GCC 4.x. 2006-06-27 10:45:09 +00:00
peter
72b6ac7a94 Add a symbolic constant for the Infrared Communications Port. 2006-06-27 10:45:06 +00:00
peter
94ebfefbcd Set the jornada 720 volume up/down and play buttons to ignore
instead of unknown.
2006-06-27 10:42:41 +00:00
tron
9021894476 Make this build with GCC 4.x. 2006-06-27 10:34:25 +00:00
tsutsui
c4a04b7ba4 Backout previous since there is an objection and I'm not a toolchain guy. 2006-06-27 09:22:30 +00:00
pavel
a78062784c Use the new socket call for Linux and SVR4, because those systems (at
least Linux 2.4.31, Irix 6.5.20 and Solaris 10) use EAFNOSUPPORT.

Only the Linux emulation has been tested.

XXX somebody should audit the other emulations...
2006-06-27 09:09:40 +00:00
he
b1682c2909 Make use of -Wno-pointer-sign conditional on HAVE_GCC > 3, and include
<bsd.own.mk> so that HAVE_GCC is appropriately defined.
2006-06-27 06:37:26 +00:00
mrg
8406bcbe00 that should be _STANDALONE, not STANDALONE. 2006-06-27 03:49:08 +00:00
jmcneill
7508425eaa Protect audio_powerhook with '#if NAUDIO > 0'. PR kern/33832. 2006-06-27 02:07:08 +00:00
mrg
1b7ff51599 regenerate. 2006-06-26 21:30:50 +00:00
mrg
e2eb31d3a3 version the socket(2) syscall. for compat30 socket, we use
EPROTONOSUPPORT instead of EAFNOSUPPORT.

from pavel@ with a little bit of clean up from myself.

XXX: netbsd32 (and perhaps other emulations) should be able
XXX: to call the standard socket calls for this i think, but
XXX: revisit this at another time.
2006-06-26 21:23:56 +00:00
mrg
6294d76e22 fix the swap16/swap32 macros to actually swap the argument,
not discard the swapped value.
2006-06-26 19:48:41 +00:00
drochner
e7c88abe60 Better explicitely specify the "ki2c" interface attribute,
so that the "config_found" can't hit "i2cbus".
Up to now, this relied on the fact that the i2cbus and ki2c
attach args both had a string as first element which was used
to distinguish. Now, interface attributes should take care
that attach arguments are not misinterpreted.
2006-06-26 18:37:53 +00:00
drochner
a3464e1d27 use the "i2cbus" interface attribute rather than putting a string name
into the i2cbus attach args
2006-06-26 18:21:38 +00:00
drochner
665742bb91 remove the "name" element from the i2cbus attach args, that's what
interface attributes are good for
2006-06-26 18:19:40 +00:00
xtraeme
aa32e3a36b Add support for SIS 660/760 IDE Controllers and SIS 181/182
SATA Controllers (from obsd).
2006-06-26 18:19:08 +00:00
xtraeme
c5161d5850 regen 2006-06-26 18:16:23 +00:00
xtraeme
75619f2ba3 Add SIS 660, 760, 761 IDE Controllers and SIS 181/182 SATA controllers
(from obsd).
2006-06-26 18:15:44 +00:00
xtraeme
36f7e0755d Add missing __KERNEL_RCSID() 2006-06-26 17:54:06 +00:00
xtraeme
920e0164f7 Add support for PDC20775 and PDC40518. 2006-06-26 17:45:39 +00:00
xtraeme
4763d17e4a regen 2006-06-26 17:41:27 +00:00
xtraeme
6e16c09f9d Add PROMISE PDC20775 and PDC40718 SATA controllers (from obsd). 2006-06-26 17:40:50 +00:00
drochner
996322f640 oops, need to commit the register definition for PM mapping too 2006-06-26 17:33:40 +00:00
drochner
cbf845a55e -make sure it is a PIIX4 before accessing counter stuff
(there might be usable registers on 440mx and that ATI thing too,
  but that needs to be checked/tested)
-make sure the I/O access to the power management stuff was enabled
 by the BIOS before trying to map/access stuff
-most PIIX4s have a bug in the timer latch which causes jitter or worse
 if it is read naively - check the revision
-use common code in dev/ic/acpipmtimer.c
2006-06-26 17:17:20 +00:00
kiyohara
409c2af88f Add lmtemp(4). 2006-06-26 16:20:50 +00:00
drochner
eff818776d add some common code to support the ACPI power management timer
independly of ACPI
2006-06-26 16:13:21 +00:00
christos
ff147f9d5b define PC_ADVANCE to avoid a LHS cast which makes gcc4 unhappy.
From Kurt Schreiner
2006-06-26 14:11:29 +00:00
drochner
3ce3b9b485 test the PM timer for glitches (using the algorithm from FreeBSD)
and use a single read if the timer looks good,
patch from Juan RP, with minor simplification by me
2006-06-26 12:29:36 +00:00
kent
14db0438ab * custom mixer table for ALC880
* remove useless mixers of ALC882
2006-06-26 11:06:01 +00:00
yamt
ffa1c23e58 fix VM_BESTFIT. 2006-06-26 10:23:20 +00:00
yamt
9595f19850 wrap long lines. 2006-06-26 10:21:59 +00:00
yamt
a3b2d62857 sa_stackused, sa_setstackfree: share some common code. 2006-06-26 10:21:34 +00:00
manu
0a52064ba3 Do not implement exit_group() the right way on platforms that do not
define LINUX_NPTL yet, that cause firefox-bin to fail.
2006-06-26 07:42:00 +00:00
christos
0279cf0176 add a missing dependency. 2006-06-25 22:39:51 +00:00
christos
29c1a4c22e GCC4 fixes from Mike Pumford 2006-06-25 21:32:39 +00:00
bouyer
9e9d09bf73 Use the right test for ring full condition. Avoid an infinite loop when the
ring is full (because the domU is in ddb for example).
2006-06-25 19:46:52 +00:00
bouyer
58af96f414 Don't loop forever if we receive a packet while the interface is down. 2006-06-25 18:34:09 +00:00
bouyer
65918da968 DTRT when the number of grants to map or unmap is more than one. 2006-06-25 18:03:49 +00:00
tsutsui
1cf7251d79 - use (uint8_t *) for scsi buffers
- u_char -> uint8_t for byte data
- use proper type variable
2006-06-25 17:40:14 +00:00
tsutsui
c06815799e Use (uint8_t *) to specify buffers for hpib xfers. 2006-06-25 17:37:43 +00:00
tsutsui
5845cc2e3c Fix unsigned/signed mismatch. 2006-06-25 17:35:12 +00:00
tsutsui
6d0b292e48 - move declaration for sc_table from samachdep.h to device.h
- include <lib/libsa/stand.h> from samachdep.h for struct fs_ops
- remove unneeded declarations from samachdep.h
2006-06-25 17:34:30 +00:00
tsutsui
eec8d4d1e5 Make some local functions static. 2006-06-25 16:52:01 +00:00
bouyer
2613e19eec Add a 'base' argument to xenbus_read_ul, so that we can read number is base
other than 10.
2006-06-25 16:46:59 +00:00
tsutsui
0aa05e92ff Remove unused struct abus stuff. 2006-06-25 16:46:15 +00:00
tsutsui
d71cfc62f0 Make some local functions static. 2006-06-25 16:44:02 +00:00
tsutsui
6e1a8fe413 - make a local variable static
- remove struct user dumppcb, which is declared in mips_machdep.c
2006-06-25 16:29:14 +00:00
manu
ce7e36a5a9 Regen 2006-06-25 16:16:52 +00:00
manu
b7432513dc - Complete exit_group() implementation. We now maintain a list of Linux
threads in a processes and kill them properly. The code is a bit too
complicated, but I could not find a simplier way of dealing with it

- Change getpid() and getppid() semantics to match what Linux does,
and implement gettid(). In the Linux kernel, threads are implemnted
as plain old processes. A thread group is just a set of processes,
with the parent called leader. Thread ID, which are returned by gettid(),
are just the PID of the plain old processes, and getpid() returns the
PID of the thread group leader.

- Remove struct linux32_emuldata. COMPAT_LINUX32 uses a lot of COMPAT_LINUX
code, where a struct linux_emuldata is assumed. By having distinct emuldata
structure with different sizes and layouts, we caused kernel memory
corruptions.

- Fix setprioriry() and getpriority()

Thanks to Nicolas Joly for tracking down the problem and providing me the
hardware to fix them.
2006-06-25 16:15:39 +00:00
tsutsui
82f68c0092 Rename arc_trap.c to interrupt.c, which derived from ancient pica_trap.c
but currently contains only interrupt stuff. Ok'ed by soda.
2006-06-25 16:11:41 +00:00
bouyer
22247e56e0 Adapt for new xen_shm_* signatures.
While here add more xenbus_dev_fatal() calls for some failure cases.
2006-06-25 15:20:39 +00:00
bouyer
b063155744 Allow xen_shm_map() to map multiple grants in a contigous virtual address
space.
While here garbage-collect unused xen_shm_vaddr2ma()
2006-06-25 15:18:53 +00:00
lukem
6e749ba167 Use ${TOOL_STAT} to get the size, instead of ls | tr | cut. 2006-06-25 15:01:00 +00:00
jmcneill
507a433a4e Make sure that a powerhook was successfully established before trying to
disestablish it on detach.
2006-06-25 14:49:49 +00:00
lukem
186054d0dd Convert to using CC instead of LD, as LDFLAGS is for CC not LD. 2006-06-25 14:49:32 +00:00
lukem
4c28e73199 Use -Wl,-Ttext,foo instead of -Ttext foo when using $(CC) 2006-06-25 14:35:18 +00:00
lukem
8c4a6c51bf whitespace consistency 2006-06-25 14:24:53 +00:00
tsutsui
45e77c51c9 XXX: Appease gcc4 -Wuninitialized warnings. 2006-06-25 14:19:56 +00:00
tsutsui
da091c39ed Fix "warning: matching constraint does not allow a register" on gcc4.
(I guess constraints "0-9" are valid only for register operands, right?)
2006-06-25 14:17:40 +00:00
tsutsui
0099b09a49 Remove unused extern variable declarations. Noticed by gcc4. 2006-06-25 14:14:18 +00:00
lukem
51c3e093dc Use LDFLAGS (with $(CC) syntax) instead of appending to LD. 2006-06-25 14:12:14 +00:00
kent
b2c67a5653 * disconnect a stream and audio converters on a halt of the stream
* enable S/PDIF for a digital audio converter when connecting
 a stream
* rename "inputs.usingdac" to "playback.mode", and
 "record.usingadc" to "record.mode"
* add S/PDIF output configuration to ALC882
2006-06-25 13:41:58 +00:00
lukem
9073aac5f2 Convert to using CC instead of LD, as LDFLAGS is for CC not LD. 2006-06-25 13:36:26 +00:00
kiyohara
383a50d6cd Supoort read/write word. 2006-06-25 13:32:16 +00:00
yamt
f374633f81 remove some unnecessary casts. 2006-06-25 08:13:28 +00:00
yamt
0fca5c447b move SA related pools to where they are used. make them static. 2006-06-25 08:12:54 +00:00
yamt
44c017beb2 sa_makeupcalls: don't leak kernel stack garbage to userland. 2006-06-25 08:12:10 +00:00
yamt
bf0859e932 netbsd32_sacopyout: don't leak kernel stack garbage to userland. 2006-06-25 08:11:06 +00:00
yamt
8308eb1f7a implement kmem_zalloc. 2006-06-25 08:10:04 +00:00
yamt
23fcb7c3d3 sa_makeupcalls: cleanup usage of sae_sacopyout. 2006-06-25 08:09:10 +00:00
yamt
d038c11b60 sa_makeupcalls: simplify code and fix an sau leak on error. 2006-06-25 08:08:13 +00:00
yamt
5df39bb5be sa_makeupcalls: don't allocate big structures on stack. 2006-06-25 08:05:36 +00:00
yamt
d447115889 make amap use kmem_alloc, rather than malloc.
(ie. make it use kernel_map, rather than kmem_map.)
kmem_map is more restricted than kernel_map,
and there's no point for amap to use it.
2006-06-25 08:03:46 +00:00
yamt
bc4977819f 1. implement solaris-like vmem. (still primitive, though)
2. implement solaris-like kmem_alloc/free api, using #1.
   (note: this implementation is backed by kernel_map, thus can't be
   used from interrupt context.)
2006-06-25 08:00:01 +00:00
yamt
8dc7b19627 add a comment on if_agrprivate. 2006-06-25 07:50:00 +00:00
yamt
6108244889 remove unused M_SA. 2006-06-25 07:46:39 +00:00
kent
6d02918db1 ALC260 & Fujitsu LOOX:
mute the internal speaker when the headphone is inserted, and
unmute the internal speaker when the headphone is pulled out.
2006-06-25 07:36:33 +00:00
kent
59dc5ba7f0 printf() -> DPRINTF(()) 2006-06-25 06:37:20 +00:00
kent
3bd12046d3 avoid infinite recursive call of azalia_rirb_kick_unsol_events() 2006-06-25 06:34:08 +00:00
mrg
f71386cb37 -fwritable-strings is not valid for GCC4. 2006-06-25 05:12:29 +00:00
mrg
404c14b93f apply -Wno-pointer-sign and -fno-strict-aliasing. 2006-06-25 05:11:42 +00:00