Commit Graph

123945 Commits

Author SHA1 Message Date
enami
7ff66821f4 Also defer the writing of KTR_EMUL entry. Otherwise, the parent process
may sleep with setting KTRFAC_ACTIVE of child process and the child will
run without emitting any ktrace entry.
2004-02-12 23:47:21 +00:00
scw
7096f676a7 Very occasionally, the MMU is enabled before the 'ldr' which loads
the mapped address to leap to completes. This generally manifests
itself as a random exception with RedBoot just after 'go'.

Fix it by adding a data-dependency on the 'ldr' result.
2004-02-12 23:26:48 +00:00
mrg
e38f9bc603 pass all required -I paths:
+CPPFLAGS+=    -I${G_EXTRA_HEADERS:H:u}

this fixes ppc builds (reported by hannken & briggs)
2004-02-12 23:17:59 +00:00
skrll
13145e5f28 Results of re-running mknative for a few MACHINE_ARCHs 2004-02-12 22:34:57 +00:00
matt
99b5d86a5f When restoring files from an archive, initially restore to a temp-file and
once it has been instantiated correctly, rename it to desired name.  This
prevents the problem of partially created files being accessed before they
are complete.  If said file is a shared library, that can cause ramdon core
dumps.
2004-02-12 22:19:18 +00:00
kleink
888c4ead28 Update the change from rev. 1.42 to reflect that MAXPATH includes room
for the terminating NUL character.
2004-02-12 21:10:39 +00:00
skrll
d5174d72e9 Copy over from ../toolchain/README.mknative and update for gcc-3.3.x. 2004-02-12 18:57:08 +00:00
skrll
f6f3dd9b5f Pass -Bsymbolic down to the linker when -symbolic is used.
OK'd by Jason a while ago.
2004-02-12 18:51:41 +00:00
shige
571b4462da Fix problem: checking 24H flag.
PR:		kern/24229
Submitted by:	KIYOHARA Takashi <kiyohara@kk.iij4u.or.jp>
2004-02-12 17:01:31 +00:00
kleink
d141a7411d Forgot to build signbit() library parts in previous; noticed by mrg. 2004-02-12 10:28:28 +00:00
bsh
03e6ee6d67 add register definitions for LCD controller, AD converter, and SPI. 2004-02-12 03:52:46 +00:00
bsh
da6312579b be consistent with #define<TAB> 2004-02-12 03:47:29 +00:00
chs
3865de5a5a pmap_activate() on pmap_kernel() should be a no-op.
needed for now while exiting processes "borrow" vmspace0,
but it's reasonable to check anyway.
2004-02-12 03:25:48 +00:00
nathanw
26ed28badd td_thr_getregs(): Return errors when the requested bit of register state
isn't in the ucontext.
td_thr_getregs(), td_thr_setregs(): Use "xreg" macros when defined.
2004-02-11 21:07:18 +00:00
nathanw
94fc83a6be Add ucontext conversion macros for an "extra" register set. 2004-02-11 21:04:10 +00:00
itojun
d93f7028c1 we have IFT_BRIDGE already, no need for #ifdef 2004-02-11 20:51:24 +00:00
jdolecek
a09b055053 it's not correct to use MAXPATHNAME-sized buffer for link command, as
pointed out by Klaus Klein (original idea was that it should hold at least
the pathname ...); instead, let the ELF and a.out backends allocate memory
for the link command, and get rid of the fixed size buffer altogether
2004-02-11 18:42:37 +00:00
christos
bcdf1b194a We don't have IFT_{PFLOG,PFSYNC} (yet). 2004-02-11 17:36:33 +00:00
tls
eb9b96577c Fix bug noted by yamt@netbsd.org: the UVM free target is in *pages*,
so the last change has us comparing pages to bytes instead of pages
to buffers!  The consequence was to try to free radically less memory
than UVM wanted us to -- though always at least one buffer, which is
probably why the results weren't dire.

This does suggest that buf_canrelease() could be a *lot* more
conservative about how much to release than "2 * page deficit".  In
fact, serious trouble seems to ensue if it's not -- when anything
else on the system demands enough pages, we slam down to the low
water mark nd stay there.  I've adjusted it to use min(page defecit,
buffer memory / 16), which still isn't quite right but seems better.

Another change: consider the case of an infinite loop that does
"tar xzf pkgsrc.tar.gz ; rm -rf pkgsrc".  Each time the rm runs,
all the dead metadata will go on the AGE list -- and, until we hit
the high-water mark, stay there, at which point it may be slowly
recycled.  Two adjustments seem to solve this:  1) whack buf_lotsfree()
to return 0 if there's anything on the AGE list; 2) whack buf_canrelease()
to count the memory used by the AGE list and always return at least
that much.

This basically turns the AGE list into a "delayed free" list, since we
can't entirely eliminate it as we can't free pool items from interrupt
context (e.g. from biodone()).

To consider: with the bookkeeping corrected, should buf_drain() move
back to the _end_ of the pagedaemon, and should the calculation then
try to give back at least the current defecit?
2004-02-11 17:36:31 +00:00
mrg
41ba62f48c - some libgcc3/Makefile updates for new mknative
- re-run mknative for ~nearly everyone
2004-02-11 16:22:51 +00:00
mrg
cf10ab1d3c minor NETBSD_NATIVE adjustments needed for GCC3.3.3. 2004-02-11 16:01:48 +00:00
yamt
03e3b6a13c pmap_create: initialize pm_cpus. 2004-02-11 12:15:12 +00:00
rtr
5310db3656 oops, FOOBAR= foo shouldn't be in here 2004-02-11 11:28:17 +00:00
itojun
abd93ec67b minor KNF 2004-02-11 10:54:29 +00:00
itojun
5d3b18b4a4 KNF 2004-02-11 10:47:28 +00:00
itojun
57cbd26e09 missing bzero 2004-02-11 10:42:24 +00:00
itojun
6c8714a95e avoid ugly typecast 2004-02-11 10:37:33 +00:00
mrg
b8931a9257 fix int/size_t issues in debug code. 2004-02-11 10:19:32 +00:00
mrg
0e4a80d700 regenerate with GCC 3.3.3-pre20040209.
XXX: missing vax, sh3*, hppa
2004-02-11 04:04:02 +00:00
matt
5868d7a221 Reshuffle MIDs value so that conflicts with binutils are avoided and
that we use the same value for MID_HPPA as OpenBSD.
2004-02-11 01:03:35 +00:00
matt
b820eb3ad3 32-bit corefiles should use a MID for i386, not xf86_64. 2004-02-11 01:01:37 +00:00
jdolecek
63e9ee7bf5 add Gary Thorpe copyright notice 2004-02-10 21:55:38 +00:00
itojun
e2d302c40d reduce useless variables 2004-02-10 20:57:20 +00:00
jdolecek
fba6bed686 fix atppcintr() to support shared interrupts properly
problem found and fix provided by Paul Shupak
2004-02-10 18:42:48 +00:00
jdolecek
3ce4ac0bbd checkpoint DMA support; still disabled, not tested yet 2004-02-10 18:19:47 +00:00
jdolecek
e5d99e330f inform better of what exactly is printed in ppbus_scan_bus(), and only
print anything with PPBUS_VERBOSE || PPBUS_DEBUG
2004-02-10 18:13:12 +00:00
wiz
48999965ad Add comma in enumeration. 2004-02-10 16:55:43 +00:00
wiz
e2463bc63b Comment out macepci, since it is not described and there is
no man page for it either.
2004-02-10 16:54:19 +00:00
wiz
eb6f3a717b Uppercase Ethernet. 2004-02-10 16:54:02 +00:00
jdolecek
3eb13d5e8f whitespace police 2004-02-10 16:43:43 +00:00
jdolecek
2d609e233b need lpt_ofisa_machdep.c also for atppc attachment 2004-02-10 16:43:22 +00:00
wiz
477cccd730 New sentence, new line. 2004-02-10 16:35:50 +00:00
wiz
7529399d2c Describe gio(4). 2004-02-10 16:34:38 +00:00
wiz
1ad6f6bad7 Sort sections. 2004-02-10 16:34:23 +00:00
wiz
816ef2818f Drop trailing whitespace. 2004-02-10 16:32:10 +00:00
itojun
5d2c970d68 fflush(stdout) on -A. KAME-PR-584 2004-02-10 14:44:32 +00:00
pooka
2cfd4db5ed fix magic indices: EI_MAG, not ELFMAG 2004-02-10 13:52:00 +00:00
pooka
9e94363ccf fix typo in comment: magic numbers are indexed EI_MAG0 through EI_MAG3,
not ELFMAG0 through ELFMAG3 (which are the contents)
2004-02-10 13:50:20 +00:00
mrg
bce4dd7994 re-add generated files our builds need.
(not sure why these are not in the 20040209 tarball.)
2004-02-10 13:41:16 +00:00
mrg
5722a41a7b merge cornflakes for gcc 3.3.2-pre20040209. 2004-02-10 12:56:21 +00:00