Commit Graph

137716 Commits

Author SHA1 Message Date
elad
49d0a3504e Cosmetic change.. 2005-06-13 20:52:13 +00:00
jmc
b75aff9bfb Fix volatile casts 2005-06-13 20:44:24 +00:00
jmc
43a300640c Constify 2005-06-13 20:44:11 +00:00
jmc
96fe97a4ff Fix a variable shadowing 2005-06-13 20:43:16 +00:00
jmc
1786cf4f46 Change signature of uvm_kmapent_map defintiion to __INLINE to match prototype 2005-06-13 20:39:14 +00:00
jmc
168d2d9f35 Rename a shadowed variable 2005-06-13 20:34:16 +00:00
jmc
c3073778d2 Fix unitialized warnings that only crop up on m68k. XXGCC taggedd 2005-06-13 20:33:53 +00:00
jmc
1e47a53b95 Constify return string 2005-06-13 20:32:58 +00:00
elad
cbb4bd85d4 Oops - forgot to remove it in previous commit. Checking the fingerprint
status is enough here.
2005-06-13 20:23:15 +00:00
elad
da15a5a10c More veriexec refactoring.
- Use u_char for the fingerprint status.
  - Add a pointer to the vnode's veriexec hash table entry in the vnode
    struct. This saves a lookup and will also used by planned features.
  - When removing a file from the tables, set the vnode fingerprint status
    to NOENTRY.
  - Add switch to do flag-specific handling in veriexec_verify(). At the
    moment this prevents execution of FILE entries in strict level 2, but
    it will also be used by planned features.
  - Use memset() instead of bzero().
  - Various cosmetic changes.
2005-06-13 20:17:54 +00:00
jandberg
dc6e239c32 Constify pointers to string constants. 2005-06-13 19:31:54 +00:00
cube
8a116ca5d3 Provide a header for UKBD_LAYOUT. It makes more sense, and it avoids
quoting issues during the build process.

Reported and checked by spz@.
2005-06-13 16:41:44 +00:00
tron
1981d397d6 Also use prom_getether() under NetBSD-sparc(64) if the MAC address
retrieved from the PROM starts with ff:ff:ff. The driver now works with
the onboard interface in the Tadpole SPARCle.
2005-06-13 16:37:38 +00:00
tron
7dc178dad7 Regen. 2005-06-13 15:28:04 +00:00
tron
7b43f61d58 Add support for the LinkSys PCMPC200 Cardbus ethernet card. 2005-06-13 15:27:41 +00:00
elad
db6ca056ee Some refactoring and bugfixes:
- Report line numbers correctly.
  - Don't perform a 2nd pass when there are were errors during 1st.
  - Support multiple, comma-separated flags. This is mostly a reworking of
    some parser internals preparing for planned features.
2005-06-13 15:18:44 +00:00
wiz
8dcbfbbb96 Bump date for previous. 2005-06-13 13:07:56 +00:00
elad
471eb59186 Remove bits about deprecated 'fingerprints' command. 2005-06-13 13:05:29 +00:00
junyoung
f465530831 Remove bcmp(). Use memcmp() instead. 2005-06-13 12:11:07 +00:00
junyoung
0ddaa77ca6 Oops, missed a semicolon. 2005-06-13 12:06:36 +00:00
junyoung
9bf0710d63 ANSI, De-__P(), and some cosmetic changes including
bcmp -> memcmp, bzero -> memset, bcopy -> memcpy.
2005-06-13 12:03:01 +00:00
junyoung
5e872837fc Cosmetic changes. 2005-06-13 11:34:11 +00:00
junyoung
c3fc1c3df5 - Remove support for gcc < 2.7.x. Nobody is using such an old version
these days.
- s/u_int/uint/
- De-__P()
2005-06-13 11:33:02 +00:00
junyoung
7afdc17e75 ANSI, KNF, kill trailing spaces, and cosmetic changes. 2005-06-13 11:27:40 +00:00
junyoung
5b29e9631f ANSI, KNF, remove trailing spaces, and some other non-functional changes 2005-06-13 11:23:28 +00:00
junyoung
be35d82590 Remove trailing spaces. 2005-06-13 11:13:17 +00:00
nonaka
518d320d8e Regen. 2005-06-13 07:43:52 +00:00
nonaka
a72ccc32e9 Add PCI ids for HITACHI SH7751{,R} PCI Controller 2005-06-13 07:43:34 +00:00
nonaka
a63cdc696c Regen. 2005-06-13 07:32:38 +00:00
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