Commit Graph

115384 Commits

Author SHA1 Message Date
des
22364437ff The Nocona may be AMD64 compatible, but it is still an Intel part.
Pointy hat to:	trhodes
MFC after:	1 week
2005-05-08 10:11:33 +00:00
wpaul
e02010ec59 Avoid trying to queue up an interrupt handler DPC if the driver
hasn't called NdisMRegisterInterrupt() yet.
2005-05-08 09:36:16 +00:00
wpaul
65c336d015 Correct the patch table entries for the 64-bit intrinsic math
routines (_alldiv(), _allmul(), _alludiv(), _aullmul(), etc...)
that use the _stdcall calling convention.

These routines all take two arguments, but the arguments are 64 bits wide.
On the i386 this means they each consume two 32-bit slots on the stack.
Consequently, when we specify the argument count in the IMPORT_SFUNC()
macro, we have to lie and claim there are 4 arguments instead of two.
This will cause the resulting i386 assembly wrapper to push the right
number of longwords onto the stack.

This fixes a crash I discovered with the RealTek 8180 driver, which
uses these routines a lot during initialization.
2005-05-08 09:16:33 +00:00
brueffer
ed30e816bd Fix typo in a comment. 2005-05-08 08:54:23 +00:00
kientzle
3f2e9d3f45 Clarify some error messages. 2005-05-08 06:25:15 +00:00
maxim
e8f64efb8b Capitalize at the start of sentence. 2005-05-08 02:20:10 +00:00
wpaul
ff41626821 Minor correction to the logic for selecting the proper device index. 2005-05-08 02:06:57 +00:00
maxim
93c7c6f46a o N_SETMAGIC/N_GET{MAGIC,MID,FLAG} macros live in imgact_aout.h
not in a.out.h.  Update the comment accordingly.

PR:		kern/80741
Submitted by:	Wojciech A. Koszek
MFC after:	3 days
2005-05-08 01:48:04 +00:00
grehan
62930f7db2 Fix tinderbox build on ppc.
Requested by:  mlaier
2005-05-08 00:29:15 +00:00
schweikh
3ca643b8b8 Nuke a corrupted duplicate.
Some white space and punctuation fixes.
2005-05-07 17:56:50 +00:00
brueffer
343a100693 Link to the new acpi_ibm(4) manpage. 2005-05-07 13:46:20 +00:00
brueffer
26e2eb3e08 Manual page for the acpi_ibm(4) hotkey driver. 2005-05-07 13:42:15 +00:00
brueffer
9ed02fef98 Join two lines. 2005-05-07 11:02:34 +00:00
cperciva
bc6c5f6abe Fix two issues which were missed in FreeBSD-SA-05:08.kmem.
Reported by:	Uwe Doering
2005-05-07 00:41:36 +00:00
bmah
3d7c05a8d0 Revised release note: Corrected advisory name of SA-05:07.ldt. 2005-05-06 23:16:55 +00:00
anholt
f806ec1181 Staticize some symbols that are each only used in one corresponding .c file.
PR:		kern/43610
Submitted by:	Matt Emmerton, matt at gsicomp dot on dot ca
2005-05-06 20:53:34 +00:00
anholt
9243266b35 Staticize a symbol used only in this file.
PR:		kern/43613
Submitted by:	Matt Emmerton, matt at gsicomp dot on dot ca
2005-05-06 20:47:09 +00:00
jhb
3bb76b7bab The current NTP servers for .nl do not work with ntpdate, so switch to
using the servers provided by nl.net instead.

PR:		bin/80659
Submitted by:	Jilles Tjoelker jilles at stack dot nl
MFC after:	3 days
2005-05-06 19:14:36 +00:00
harti
cdd044aaf7 Introduce a new pseudo-target .EXPORTVAR which allows to put a
make macro into the environment of programs executed by make. This
has approximately the same function as gmake's export directive.
The form of a pseudo target was deliberately choosen to minimize work
for POSIX compatibility (Makefiles are not allowed to use any targets
starting with a dot and consisting only of uppercase letters except those
specified in the standard when they want POSIX compatible behaviour, so
such a Makefile can never contain .EXPORTVAR.)
Change the handling of macros coming from the environment: instead
of asking the environment for each variable we could not find otherwise
put all the environment variables in a special variable environment just
at start up.

This has been tested on the ports cluster by kris.

Submitted by:	Max Okumoto <okumoto@ucsd.edu>
2005-05-06 18:30:06 +00:00
brian
7b8b4a8a94 The kernel doesn't need to include a tun device - the module will be loaded
on demand if required.
2005-05-06 16:13:32 +00:00
deischen
eda732bae0 Prevent these functions from using stack outside of their frame.
Reported by:	Marc Olzheim <marcolz at stack dot nl>
OK'd by:	das
2005-05-06 15:44:20 +00:00
glebius
44fd2d6ee8 Manual page for ng_nat node. 2005-05-06 15:33:12 +00:00
delphij
82a0f39cad Prevent usage of nested externs. 2005-05-06 15:28:54 +00:00
glebius
09701e591b Bump __FreeBSD_version for libalias and ng_nat. 2005-05-06 15:04:18 +00:00
glebius
16fdb17410 Attach ng_nat and libalias to build. 2005-05-06 14:47:54 +00:00
pjd
dfa129eb0f Document 'pentium-m' CPUTYPE. 2005-05-06 13:14:48 +00:00
glebius
918f16b968 Add a workaround for 64-bit archs: store unsigned long return value in
temporary variable, check it and then cast to in_addr_t.
2005-05-06 13:01:31 +00:00
simon
3de5667bca Document FreeBSD-SA-05:06.iir, FreeBSD-SA-05:07.ldt, and
FreeBSD-SA-05:08.kmem.
2005-05-06 11:46:31 +00:00
glebius
2ef6d2f627 s/DEBUG/LIBALIAS_DEBUG/, since DEBUG is defined in LINT and
not supported for kernel build.
2005-05-06 11:07:49 +00:00
davidxu
4620767952 Don't try to enable event reporting for core file, it is not writable. 2005-05-06 11:01:15 +00:00
davidxu
4db2a8432c Fix race by using atomic operation, with this change, both libpthread
and libthr now can run profiling on SMP.
2005-05-06 07:37:01 +00:00
cperciva
b94ffb56a2 If we are going to
1. Copy a NULL-terminated string into a fixed-length buffer, and
2. copyout that buffer to userland,
we really ought to
0. Zero the entire buffer
first.

Security: FreeBSD-SA-05:08.kmem
2005-05-06 02:50:00 +00:00
cperciva
3ed0caabcd Correctly validate inputs to the i386_get_ldt syscall.
Security: FreeBSD-SA-05:07.ldt
2005-05-06 02:40:18 +00:00
cperciva
e9bb02a35a Correct improper permissions on /dev/iir. The earlier permissions
of 0644 allowed for people to do Evil Things via ioctl(2).

Security: FreeBSD-SA-05:06.iir
2005-05-06 02:33:46 +00:00
robert
073b5a6819 The printf(9) `%p' conversion specifier puts an "0x" in
front of the pointer value.  Therefore, remove the "0x"
from the format string.
2005-05-06 00:15:57 +00:00
robert
d23e603dc8 Fix our NTFS readdir function.
To check a directory's in-use bitmap bit by bit, we use
a pointer to an 8 bit wide unsigned value.

The index used to dereference this pointer is calculated
by shifting the bit index right 3 bits.  Then we do a
logical AND with the bit# represented by the lower 3
bits of the bit index.

This is an idiomatic way of iterating through a bit map
with simple bitwise operations.

This commit fixes the bug that we only checked bits
3:0 of each 8 bit chunk, because we only used bits 1:0
of the bit index for the bit# in the current 8 bit value.
This resulted in files not being returned by getdirentries(2).

Change the type of the bit map pointer from `char *' to
`u_int8_t *'.
2005-05-06 00:06:06 +00:00
glebius
6c9219a75e ng_nat - a netgraph(4) node, which does NAT 2005-05-05 23:41:21 +00:00
glebius
ee248ff9f0 libalias is now buildable as kernel module 2005-05-05 22:43:04 +00:00
wpaul
6dbf23d55f Cast 64 bit quantity to uintmax_t to print it with %jx. This is
technically a no-op since uintmax_t is uint64_t on all currently
supported architectures, but we should use an explicit cast instead
of depending on this obscure coincidence.
2005-05-05 22:33:06 +00:00
glebius
5d712120aa More bits for kernel version:
- copy inet_aton() from libc
- disable getservbyname() lookup and accept only numeric port
2005-05-05 22:00:32 +00:00
glebius
65461c3cbe Always include alias.h before alias_local.h 2005-05-05 21:55:17 +00:00
glebius
9a04dc6a81 When used in kernel define NO_FW_PUNCH, NO_LOGGING, NO_USE_SOCKETS. 2005-05-05 21:53:17 +00:00
glebius
02e1b90f34 Fix argument order for bcopy() in last commit.
Noticed by:	njl
Pointy hat to:	glebius
2005-05-05 21:40:49 +00:00
glebius
ee02a55e14 Use bcopy() instead of memmove(). 2005-05-05 21:10:51 +00:00
glebius
ce2a154843 Hide fflush(3) under ifdef DEBUG. 2005-05-05 21:07:34 +00:00
glebius
7ce9477f7b Things required to build libalias as kernel module:
- kernel module declarations and handler.
- macros to map malloc(3) calls to malloc(9) ones.
- malloc(9) declarations.
- call finishoff() from module handler MOD_UNLOAD case
  instead of atexit(3).
- use panic(9) instead of abort(3)
- take time from time_second instead of gettimeofday(2)
- define INADDR_NONE
2005-05-05 21:05:38 +00:00
glebius
51f000d083 Add NO_USE_SOCKETS knob, which cuts off functionality socket binding. 2005-05-05 20:25:12 +00:00
glebius
371c76a92d Add NO_LOGGING knob, which cuts off functionality of debug logging to a file. 2005-05-05 20:22:09 +00:00
glebius
1dbbbd6b8a Play with includes so that libalias can be compiled both as userland
library and kernel module.
2005-05-05 19:27:32 +00:00
dwhite
96b18af19b Add quirk for TEAC USB floppy drives. 2005-05-05 18:48:41 +00:00