Commit Graph

82004 Commits

Author SHA1 Message Date
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