Commit Graph

531 Commits

Author SHA1 Message Date
darran
38c72d335c DTrace: Add support for CTF sections in the netbsd elf image, load these
at boot.
Add a ksyms_mod_foreach() function to iterate a callback function over the
set of elf symbols for a specific module (netbsd included).
Add kern_ctf.c and mod_ctf_get() to allow the retrieval and decompression
of CTF sections for a specific module.
2010-03-12 21:43:10 +00:00
martin
0eda8d8e5e Add a prototype. 2010-02-11 21:28:16 +00:00
martin
dd8b03031c fix includes 2010-02-10 23:33:56 +00:00
martin
9b40c0f8c3 Utility function to lookup a symbol value in an elf symbol table - allows,
for example, a bootloader to access symbols in the just loaded kernel
(or module).
2010-02-10 21:54:47 +00:00
tsutsui
1aa1df4953 Add long long (%lld etc.) support and width (%02x etc.) support
in libsa printf(3).  Disabled by default but enabled by
-DLIBSA_PRINTF_LONGLONG_SUPPORT and -DLIBSA_PRINTF_WIDTH_SUPPORT.
Provided by tnozaki@ for my libsa debugging. Thanks!
2010-01-19 15:26:45 +00:00
drochner
b265b3ebf8 RFC783 says the ErrMsg sent with an ERROR packet needs to be
NUL-terminated
2010-01-13 10:56:17 +00:00
elad
251a5f50bc Don't abuse INSECURE for allowing exec() to load files not owned by uid 0.
Adjust references where this has been used.
2009-12-29 20:21:45 +00:00
snj
febb7cce65 Drop 3rd and 4th clauses. Approved by gwr@ (copyright holder). 2009-10-21 23:12:09 +00:00
bouyer
6d07b400dc Remove closes 3 & 4 from my licence. Lots of thanks to Soren Jacobsen
for the booring work !
2009-10-19 18:41:07 +00:00
he
78569b98fc Uh, move loadfile_aout.c in under the check for ${SA_USE_LOADFILE}
again, so that it's not unconditionally compiled, fixing the previous.
2009-08-25 14:10:54 +00:00
he
e408f74353 If we're on mips, don't build exec.c or loadfile_aout.c, since they
both deal with a.out format executables.
2009-08-21 21:12:02 +00:00
matt
7b2f3a5640 Change include of <sys/exec.h> to <sys/exec_aout.h> since these files want
the a.out stuff.
2009-08-16 13:26:16 +00:00
roy
5f399f5c68 Use a function to add extra data to the vendor area so that data added
remains constant for both DISCOVER and REQUEST messages.
2009-07-10 12:16:31 +00:00
roy
4cd4e97af9 We should request the DHCP parameters we need. 2009-07-10 02:55:42 +00:00
roy
235c0d4ef6 We should check for potential overflows.
ok: martin
2009-05-06 23:56:49 +00:00
lukem
94ec558cb9 fix sign-compare issue 2009-04-11 10:57:55 +00:00
tls
a34cd18b76 Fix build problems caused by crc32 addition to libkern. Also, this makes
the i386 bootblocks about 2K smaller than they were before we monkeyed
with crc32 at all.
2009-03-25 18:41:06 +00:00
tsutsui
9d27968892 Allow MD standalone Makefiles overriding MI libsa settings
by SA_EXTRADIR variable passed via SAMISCMAKEFLAGS.
2009-03-20 11:31:30 +00:00
tsutsui
3c7a0b7662 Revert previous. MI libsa doesn't provide bcmp(). 2009-03-19 10:20:54 +00:00
he
3b9146b27b Add a prototype for the bcmp() function as well. 2009-03-19 08:38:12 +00:00
tsutsui
d0b9e6c924 - remove bcmp(9), bcopy(9), and bzero(9) from libkern since <sys/systm.h> has
macro which replace them with mem*() functions in #ifdef _KERNEL as noted
  in man pages
- move declarations of bcopy(3) and bzero(3) into <lib/libsa/stand.h>
  since they are still in libsa for some MD standalone sources
  (I guess all bcmp(3) in standalone sources have been replaced with memcmp(3)
   but they should be replaced with memcmp() anyway)
2009-03-18 12:25:06 +00:00
tsutsui
82127a2dd2 Use EXT2_DINODE_SIZE() to get offset of inode, not struct ext2fs_dinode array. 2009-03-02 10:25:00 +00:00
christos
6eda90fc68 catch up with variable inode size. 2009-03-01 19:37:16 +00:00
isaki
80a3550743 Revert previous one. It has already fixed in net.h,v 1.25. 2009-01-31 06:22:46 +00:00
isaki
28468b1f07 Fix build error. Declare getsecs() before (re-)defining it. 2009-01-31 04:11:28 +00:00
tsutsui
4459b5fdab I really hate silly hacks inside #ifndef _STANDALONE in libsa sources... 2009-01-18 02:59:02 +00:00
tsutsui
3f38114d96 Remove __P(). 2009-01-17 14:00:36 +00:00
tsutsui
69cf32a782 Replace time_t values in libsa sources with the following two types
to avoid unnecessary 64 bit ops which would make binaries larger:

satime_t (currently unsigned int):
 numbers in seconds returned by the machine dependent getsecs() function
 which are used to measure relative time

saseconds_t (currently int):
 numbers in seconds used to specify timeout to network drivers

Per discussion on current-users.
2009-01-12 11:32:43 +00:00
ad
5d7468ebd2 msdosfs -> msdos 2008-11-24 11:27:20 +00:00
ad
5bf641af07 For the x86 boot loader, autoload a kernel module corresponding to the
root file system type.
2008-11-19 12:36:41 +00:00
christos
a93db399ff add a LOAD_NOTE flag to make loading the note optional. 2008-09-25 20:59:38 +00:00
gmcgarry
3c9a95916d Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC. 2008-08-29 00:02:21 +00:00
ad
e69aa3297c Take $MACHINE into account when looking for modules. 2008-05-20 16:04:08 +00:00
ad
5cb8dd92fe Extract kernel version from the note section and stuff into a global
netbsd_version.
2008-05-20 14:41:06 +00:00
chris
f10d13fdee Extend tftp_stat to return the size of the file, rather than -1.
It's not very efficient, as it has to read the whole file, and count the
block sizes.  However, this is the only way to work out the size using the
tftp protocol.

This is needed to support loading modules from a tftp server with pxeboot.
2008-05-11 11:29:12 +00:00
mlelstv
a4002c76a9 There is also ARP_DEBUG for those who need it. 2008-05-11 04:53:15 +00:00
ad
1717063e94 Let twiddle() be disabled at runtime. 2008-04-30 16:18:09 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
tsutsui
52dab5df0c Fix a warning in #ifdef RARP_DEBUG. PR kern/20314 2008-04-05 05:15:33 +00:00
christos
19d181b7f5 add bcopy and bzero for loadfile for now. Should get rid of it. 2008-03-25 23:12:31 +00:00
christos
9ebe85fa97 remove stray comment 2008-03-25 22:55:25 +00:00
christos
8f0af7be4b fix typo 2008-03-25 22:54:54 +00:00
christos
e1b834bdd8 - use mem* instead of b* routines, and kill the b* routines.
- use the mem* routines from libc.
XXX: There will be some lossage, but I am fixing it.
2008-03-25 21:23:50 +00:00
rtr
16ebb0dc79 when the char being searched for is not found strchr() must return NULL
not a pointer to the terminating '\0'. the only time we return a pointer
to the terminating '\0' is when the char being searched for is '\0'.

fixes problem observed booting -current install
http://mail-index.netbsd.org/current-users/2008/03/20/msg001445.html
2008-03-21 10:24:13 +00:00
dsl
2bb9a33a0f Add a strchr() - for dosfs in particular.
The i386 asm version in src/common is rather larger than this one.
2008-03-14 22:27:32 +00:00
dsl
2694fcbd4b Add a local strcasecmp() instead of pulling the bloat from libkern. 2008-03-14 22:21:53 +00:00
tsutsui
5d07958fe3 Fix typo in comment. 2008-02-25 15:33:20 +00:00
ad
4a780c9ae2 Merge vmlocking2 to head. 2008-01-02 11:48:20 +00:00
tsutsui
e5434d17a5 ANSIfy. 2007-12-29 17:54:41 +00:00
perry
970ad9314d Remove __attribute__((__noreturn__)) from things already marked __dead
Found by the department of redundancy department.
2007-12-24 15:46:45 +00:00