Commit Graph

137587 Commits

Author SHA1 Message Date
nonaka
7cf9e12bdb Add PCI id for "ATI Mobility Radeon 9700". 2005-06-13 07:31:50 +00:00
he
df3cf43683 Change the signature of badaddr() and badbaddr() from taking a caddr_t
to taking a volatile void*.  This gets rid of a number of casts to make
this compile under -Wcast-qual.
Add some volatiles and consts in other places to make this build under
-Wcast-qual.
Also rename a few variables to make this build under -Wshadow.
Also get rid of duplicated declarations of badaddr() and badbaddr()
in machdep.c, they're already there from <machine/cpu.h>.
2005-06-13 00:34:08 +00:00
he
a67c46ebd2 Add volatile to a cast to make this build with -Wcast-qual. 2005-06-13 00:28:45 +00:00
he
745531d189 Make this compile under -Wshadow by renaming an unused parameter. 2005-06-13 00:18:49 +00:00
he
6db088a2cd Make this compile by adding __UNCONST() when calling config_found() or
similar functions with a text constant as the second argument.
2005-06-13 00:18:11 +00:00
he
5d997939d0 Make this build with -Wcast-qual and -Wshadow by adding one
__UNVOLATILE() and adding a number of volatile to variable declarations
and renaming a local variable.
2005-06-13 00:14:52 +00:00
he
88f0cd47de Make this build with -Wcast-qual by adding a few consts. 2005-06-13 00:12:21 +00:00
he
bc766262e1 Add __UNVOLATILE() to an assignment with a cast before passing pointer
to a function.
2005-06-13 00:07:39 +00:00
he
a01d803d49 Change the last arg of ite_sendstr() to const char*, so that this builds
under -Wcast-qual.  Also rename a local variable to build with -Wshadow.
2005-06-12 23:46:41 +00:00
he
496fa36b37 Sprinkle some consts to allow this to compile with -Wcast-qual. 2005-06-12 23:43:49 +00:00
he
da60411753 Change the `name' argument of dmac_alloc_channel to const char*, so that
a string constant can be used without generating a warning.
2005-06-12 23:42:54 +00:00
dyoung
00218a63cc Oops, straggler: #include <nbinclude/sys/disklabel.h> if we're
building a host-tool.

XXX In hp300_setboot, quiet -Wunitialized: initialize secsize to
XXX HP300_SECTSIZE.  Is this correct?
2005-06-12 21:38:12 +00:00
tls
4a43d21777 Revert the part of revision 1.228 that made HW_NO_TXPRELOAD the default:
it appears to break output on the Soekris net4501, which is a rather
popular platform.

This should fix PR kern/29612 -- if not, I will probably revert it again.
2005-06-12 21:10:47 +00:00
dyoung
dba4661556 Build hp300 support into installboot(8). 2005-06-12 20:25:26 +00:00
dyoung
7f67833ef1 .include Makefile.disklabel in installboot, so that the
nbinclude/ header files will be installed.  Build installboot after
pax, since Makefile.disklabel uses pax to install the headers.
2005-06-12 20:24:14 +00:00
dyoung
a039894d70 For portability, use 'unsigned int' instead of 'uint'. 2005-06-12 20:21:20 +00:00
christos
f725dde259 PR/30511: Nicolas Joly: lex(1) generated files lint warnings 2005-06-12 20:04:22 +00:00
dyoung
a37289db57 Make disklabel(8) and fdisk(8) into "host tools " last step: build
and install ${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-disklabel,
${TOOLDIR}/bin/${MACHINE_GNU_PLATFORM}-fdisk by "reaching over" to
the sources in ${NETBSDSRCDIR}/sbin/{disklabel fdisk}/.

To avoid clashes with a build-host's header files, especially on
*BSD, the host-tools versions of fdisk and disklabel search for
#includes such as disklabel.h, disklabel_acorn.h, disklabel_gpt.h,
and bootinfo.h in a new #includes namespace, nbinclude/.  That is,
they #include <nbinclude/sys/disklabel.h>, <nbinclude/machine/disklabel.h>,
<nbinclude/sparc64/disklabel.h>, instead of <sys/disklabel.h> and
such.  I have also updated the system headers to #include from
nbinclude/-space when HAVE_NBTOOL_CONFIG_H is #defined.
2005-06-12 19:46:15 +00:00
dyoung
960c071724 Add definitions for the new "host tools " disklabel and fdisk.
Define TOOL_DISKLABEL and TOOL_FDISK.  Also introduce HOST_INSTALL_DIR
and HOST_INSTALL_SYMLINK.  These re-usable definitions help me to
install headers for disklabel and fdisk into ${TOOLDIR}/include/nbinclude/.
2005-06-12 19:31:25 +00:00
dyoung
1726c417de Make disklabel(8) into a host-tool, "nbdisklabel." Move disklabel.c
to main.c to avoid a name collision with lib/libc/gen/disklabel.c
when we build nbdisklabel.  Still todo: commit host-tool build
infrastructure to src/tools/disklabel/.
2005-06-12 19:18:34 +00:00
dyoung
4580f13f42 Turn fdisk(8) into a host tool. Still todo: commit the host-tool
build infrastructure to src/tools/fdisk/.
2005-06-12 19:14:10 +00:00
dyoung
023801f122 For portability, use standard types: s/uint/unsigned int/,
s/ulong/unsigned long/, s/u_int8_t/uint8_t/.
2005-06-12 19:06:43 +00:00
matt
fe3f7b90ff Can't use _LP64 because xlint is a host tool. We need a new define for
when building as a host tool.
2005-06-12 16:56:59 +00:00
jandberg
6aa5da9726 Constify parameters of matchname() to please -Wcast-qual. 2005-06-12 16:31:42 +00:00
christos
85a5de064c Remove some const. This is better than using __UNCONST at the second
argument of swapctl.
2005-06-12 16:24:20 +00:00
bouyer
48c16dfe5f xen_shm_size isn't patchable because _xen_shm_vaddr2ma[] is static, so
remove comment saying it is. Pointed out by Jed Davis.
2005-06-12 14:59:48 +00:00
wiz
ab618d781e Sort. 2005-06-12 12:30:25 +00:00
christos
54e7bf907a make this useable from c++. 2005-06-12 06:58:21 +00:00
lukem
0f879c5d2a vfwprintf.c and vfwscanf.c now compile with -Wuninitialized 2005-06-12 05:49:12 +00:00
lukem
ef7b3cd60b Appease gcc -Wuninitialized 2005-06-12 05:48:41 +00:00
lukem
81c4b0d591 Ensure nconv isn't used in __mbsconv() before being initialized.
Appease gcc -Wuninitialized elsewhere.
2005-06-12 05:45:38 +00:00
lukem
aaf2af9078 Add missing __RCSID() 2005-06-12 05:34:34 +00:00
yamt
a61427049c remove some unsafe sti insns before INTRFASTEXIT, which
can allow infinite recursion of the handler.
2005-06-12 05:32:45 +00:00
lukem
88c3eadbfa Add missing __RCSID() 2005-06-12 05:21:25 +00:00
matt
6e3fbc1b25 Have to cast framep as a trapframe. XXX frampe should not be void * 2005-06-12 04:39:37 +00:00
christos
661bee744c unconst argument to swapctl(). 2005-06-12 02:57:58 +00:00
matt
7728c19903 Reduce INSTALL_TINY by 1.3KB.
Support for a.out coredumps is now conditional on EXEC_AOUT, EXEC_COFF,
EXEC_ECOFF, or EXEC_MACHO, or LKM.  Since coredump_netbsd is the only user
of cpu_coredump, make that conditional too.  Lastly, add 'no options EXEC_AOUT'
so the EXEC_AOUT option in std.i386 can be overridden.
2005-06-12 00:24:32 +00:00
reinoud
273876cfba Implement auixp AC-link reset 2005-06-12 00:02:18 +00:00
wiz
23332a2615 Improve .An support: recognize -nosplit. 2005-06-11 23:46:57 +00:00
christos
cc6e13ee6e mktemp() uses are ok here, so no more warnings. 2005-06-11 22:59:05 +00:00
christos
08cd5f47c8 Add a macro __MKTEMP_OK__ that renames mktemp() to _mktemp() for uses that
have been checked, so that the linker does not warn us. There are valid
uses for mktemp() such as for creating filenames that are going to be
targets of the rename system call. Discussed with lukem.
2005-06-11 22:58:42 +00:00
christos
5b18fe838f PR/30503: Nicolas Joly: swapctl(2) prototype does not match corresponding
syscall
2005-06-11 22:54:43 +00:00
christos
51b633d452 Remove an extraneous TTY_UNLOCK. With a LOCKDEBUG kernel, sending FLUSHO
causes a locking assertion.
2005-06-11 22:42:24 +00:00
christos
137b9bc57b 30393/Miles Nordin: PF/ALTQ does not work on ppp(4) interfaces
This is because the mbuf chain created did not have a header.
2005-06-11 22:26:42 +00:00
matt
ea25c64213 Use coredump_elf32, not coredump_netbsd. 2005-06-11 20:06:46 +00:00
he
46892c9e37 Initialize class and node in modify_single(), as their initial assignment
appears to depend on the passed function parameters.
2005-06-11 18:42:56 +00:00
christos
19c38590ee PR/30500: Paul Shupak: Inconsistent definition of tilde_expand().
Provide a layer of indirection between the readline compatibility functions
and our internal implementation, so that we have the freedom to change the
function signature.
2005-06-11 18:18:59 +00:00
rpaulo
6371c84cab Add rpaulo.
Approved by hubertf.
2005-06-11 16:06:03 +00:00
elad
6533bc4abd Work according to veriexec strict level, not securelevel. Also, use the
veriexec_report() routine when possible; and when opening a file for writing,
only invalidate the fingerprint - not always the data will be changed.
2005-06-11 16:04:59 +00:00
darrenr
4e1ba8b46a bin/29508 - fix "ipf -T" - kernel wasn't setting ipft_cookie and userland
was expecting it to be set, thus ignored it.
bin/29509 - because ipft_cookie wasn't reset to 0 before making the ioctl
call for each variable, only the first name to find was used, each successive
call just used the cookie.
CVn: ----------------------------------------------------------------------
2005-06-11 12:31:40 +00:00