Commit Graph

162148 Commits

Author SHA1 Message Date
pooka
28636f63b4 Split routines handling nodes from puffs_subr to puffs_node.
No functional change.
2007-09-27 23:21:07 +00:00
pooka
6eff998647 silence lint. also noticed by xtraeme 2007-09-27 23:11:41 +00:00
pooka
1bbaeda6c3 nuke trailing , from enum. spotted by xtraeme 2007-09-27 23:10:42 +00:00
pooka
25d66b7667 Revert previous, it makes no sense whatsoever. 2007-09-27 23:03:25 +00:00
xtraeme
d6f5cb72fc Fix DEBUG builds and use %lx to print vaddr_t. 2007-09-27 22:43:15 +00:00
pooka
7f0d130f47 Undo state created in cookie2vnode if an error is returned. 2007-09-27 21:49:56 +00:00
pooka
7f467f6fac Differentiate between cookie2vnode returning an error and
return to caller, address unknown: no such cookie, no such node.
Make the callers use this info to either create a new vnode or bail.
2007-09-27 21:44:12 +00:00
pooka
aa533e99dd Add error notifications, which are used to deliver errors from the
kernel to the file server for silly things the file server did,
e.g. attempting to create a file with size VSIZENOTSET.  The file
server can handle these as it chooses, but the default action is
for it to throw its hands in the air and sing "goodbye, cruel world,
it's over, walk on by".
2007-09-27 21:14:49 +00:00
bouyer
784505d037 Ops, need to properly restore %esp after calling Xspllower(). 2007-09-27 21:14:04 +00:00
bouyer
a3ef51f22f Use the proper label name in cpu_switchto, here is no '2' label in this
function.
2007-09-27 19:39:20 +00:00
xtraeme
6d61a6b51b Duh! add missing free(3) in previous. 2007-09-27 18:11:05 +00:00
xtraeme
6c73c21f44 In debug mode, don't forget to free the buffer returned by
prop_dictionary_externalize().
2007-09-27 18:08:32 +00:00
pooka
c342f5d6d4 Don't forget to insert the root node on the hash list.
... I should remember to test also if unmounting a file system works
before I commit stuff.
2007-09-27 18:06:41 +00:00
christos
f1f2d5a365 make this compilable from rtld. 2007-09-27 17:53:05 +00:00
christos
596c6ec5db provide xrealloc, and don't cast and use malloc and realloc directly. 2007-09-27 17:52:16 +00:00
christos
2cce1500a2 If we are using SSP, compile in a separate copy of the stack protector
functions so that we don't end up calling syslog_ss() which drags in
a large portion of libc. Found by skrll...
2007-09-27 17:51:40 +00:00
snj
c04093ea93 As part of netbsd-4 ticket 863, shuffle some entries from CHANGES
to CHANGES.prev.
2007-09-27 17:25:50 +00:00
ad
b4d4283669 i386, amd64: pcc is now able to compile most of the i386 kernel.
a number of changes have been made for LKM and
                preemption safety. [ad 20070927]
        i386: i386 bootblocks are now able to boot amd64 kernels.
                support for a.out kernels has been removed [ad 20070927]
2007-09-27 15:10:33 +00:00
pooka
01895f64a7 Fix a race in how new cookies are checked. Previously the checking
was done separate of inserting the cookie into the lookup structure
and without any form of interlock.  This could lead to the same
cookie pointing to two different nodes.  Remedy the race by creating
a separate "checked and ready to be inserted" cookie list which
serves as an interlock without having to hold a fs-global creation
lock.
2007-09-27 14:35:14 +00:00
pooka
90900b0311 dtfs memsets all allocated block content to 0 immediately, so to
avoid wasting unbelievable amounts of memory, set the blocksize to
something more believable.  Should fix the memset-part to act only
up to the size the file is extended to, though.
2007-09-27 12:03:31 +00:00
dogcow
b8d6c11ba4 <machine/profile.h> needs <sys/types.h>; why crt0.c needs <machine/profile.h>
(and only on amd64) is another question altogether.
2007-09-27 10:51:18 +00:00
dogcow
0477b152f4 struct cfattach -> CFATTACH_DECL; compiles again. 2007-09-27 08:49:33 +00:00
ad
04e7f7c43b Remove -DBOOT_ELF64 to make build on amd64. 2007-09-27 01:57:23 +00:00
ad
bd63f75ddf Sync with i386. 2007-09-27 01:50:01 +00:00
ad
0c800520db Only include machine/cpufunc.h if _KERNEL. 2007-09-27 01:10:11 +00:00
ad
e82393efae - Make i386 bootblocks boot amd64 kernels, and change to say "NetBSD/x86..."
- Don't bother booting a.out kernels any more.
2007-09-27 00:13:16 +00:00
ad
29d22f406e Update copyright. 2007-09-26 23:48:37 +00:00
ad
b43233552c - Make it compile again.
- Don't use (very dodgy) inline assembly.
2007-09-26 23:47:43 +00:00
ad
df53c71d4f Enable mcount for more of the assembly stubs. 2007-09-26 22:05:23 +00:00
ad
54b8a96958 Inline interrupt disable for _mcount, so the real function calls don't
screw with profiling.
2007-09-26 22:04:33 +00:00
ad
22eb464a6d Only include machine/cpufunc.h if _KERNEL. 2007-09-26 21:27:48 +00:00
pooka
eb069641c1 call biooops sync from sync 2007-09-26 21:23:24 +00:00
pooka
38cdad643b check puffs_init() return value to squelch coverity CID 4568 2007-09-26 21:21:28 +00:00
ad
b9b18708f9 Make build in userspace again. 2007-09-26 21:05:21 +00:00
ad
8c77c157eb Make it build in userspace again. 2007-09-26 20:59:59 +00:00
xtraeme
66ed18bcf1 Fix profiling kernels:
read_psl -> x86_read_psl
write_psl -> x86_write_psl
disable_intr -> x86_disable_intr
2007-09-26 20:27:26 +00:00
ad
9c412e0cbf x86 changes for pcc and LKMs.
- Replace most inline assembly with proper functions. As a side effect
  this reduces the size of amd64 GENERIC by about 120kB, and i386 by a
  smaller amount. Nearly all of the inlines did something slow, or something
  that does not need to be fast.
- Make curcpu() and curlwp functions proper, unless __GNUC__ && _KERNEL.
  In that case make them inlines. Makes curlwp LKM and preemption safe.
- Make bus_space and bus_dma more LKM friendly.
- Share a few more files between the ports.
- Other minor changes.
2007-09-26 19:48:34 +00:00
agc
7bc5694f64 Fix an off-by-511 error, pointed out by Andrey Yakovlev 2007-09-26 12:01:49 +00:00
he
2bf864fe60 Add an explicit include of <sys/device.h> to make sparc64 and sun2
build.  Needed for device_xname() and device_t, use added by previous
change.
2007-09-26 07:40:36 +00:00
macallan
45b87d43e3 use crime_reboot() and mcclock_poweroff() when appropriate.
With this my O2 resets and powers down again even when using crmfb,
apparently it freaks out the ARCS firmware - with crmfb the machine would
just sit there blinking instead of rebooting.
2007-09-26 05:52:39 +00:00
macallan
4a60b0ecfe add mcclock_poweroff() 2007-09-26 05:50:02 +00:00
macallan
742b607737 crime needs-flag 2007-09-26 05:49:09 +00:00
macallan
c65071e69f add crime_reboot() 2007-09-26 05:48:37 +00:00
macallan
2d476100ad add a few more register definitions 2007-09-26 05:47:41 +00:00
mrg
ceb63bd6ed in VALID_USER_DSEL3() only check the low 16 bits.
this fixes 32bit gmake from occasionally reporting "Error 255" after
a command has successfully run.

lots of help from ad@ and joerg@.
2007-09-26 02:33:46 +00:00
macallan
089984cd2f set 'override_ultra' property for ahc so we can get 40MB/s 2007-09-26 01:23:54 +00:00
macallan
db7f214b33 allow to override the check for an external precision resistor via device
property so we can have 40MB/s on SGI O2
2007-09-26 01:22:29 +00:00
ad
f1c5fa82a3 ci_astpending is no more. 2007-09-26 00:14:53 +00:00
ad
37a012a7c2 Use splhigh(), not disable_intr(). 2007-09-25 23:11:24 +00:00
ad
19e070934b Make previous conditional upon !__i386__ && !__x86_64__. I know this is
gross but it's a debug check that's not intended to live very long.
curlwp is about to become a function on x86 (and so can't be assigned to).
2007-09-25 22:33:59 +00:00