Commit Graph

194209 Commits

Author SHA1 Message Date
pooka
8fc7f9077e Make librumpuser linkage once again free of librump.
problem pointed out by <he>
2010-11-01 13:49:10 +00:00
skrll
702f3de6e7 u_intNN_t -> uintNN_t
Same code before and after.
2010-11-01 06:41:50 +00:00
enami
ee9d44a7c1 Double the array only when really necessary. Otherwise memory will be
exhausted if user modifies the variable envrion itself repeatedly..
2010-11-01 02:41:27 +00:00
mrg
4de66268a7 add support for >2TB raid devices.
- add two new members to the component label:
     u_int numBlocksHi
     u_int partitionSizeHi
  and store the top 32 bits of the real number of blocks and
  partition size.  modify rf_print_component_label(),
  rf_does_it_fit(), rf_AutoConfigureDisks() and
  rf_ReconstructFailedDiskBasic().

- call disk_blocksize() after disk_attach() [ from mlelstv ]

- shift the block number relative to DEV_BSHIFT in raidstart()
  and InitBP() so that accesses work for non 512-byte devices.
  [ from mlelstv ]

- update rf_getdisksize() to use the new getdisksize() [ from
  mlelstv.  this part needs a separate change for netbsd-5. ]


reviewed by: oster, christos and darrenr
2010-11-01 02:35:24 +00:00
njoly
9a47829364 Add lua debug files. 2010-10-31 23:29:16 +00:00
pgoyette
4b71a48296 Fix format strings so it builds on amd64 2010-10-31 22:33:16 +00:00
pooka
bc79809067 Since rump implicit threads now bind to proc1 instead of proc0, we
need our shovel threads bound to proc1 instead of proc0 in order
to have access to the same set of descriptors as the implicit thread
which opens the fd in the rump kernel.

Also, sprinkle some printfs and make failure more dramatic.

fixes the puffs tests.  pointed out by pgoyette.
2010-10-31 22:05:35 +00:00
stacktic
fdd702c327 Typo in usage --export-keys -> --export-key 2010-10-31 20:05:04 +00:00
stacktic
df2d91557b PR/42435 : Check pointers against NULL to avoid dereferencing them 2010-10-31 19:45:53 +00:00
agc
22b68feadb Make bz2 {de,}compression dependent on the header file being available.
Fixes an error reported by Anthony Bentley when compiling on OpenBSD,
which apparently lacks bzlib.h (and bz2).

Tests run to completion successfully both with and without bz2 being
available.
2010-10-31 18:31:03 +00:00
snj
217b77c094 fix typo 2010-10-31 17:17:45 +00:00
njoly
cbfcc07308 +resize_ffs.debug 2010-10-31 16:31:31 +00:00
mbalmer
2d5f2730a5 Fix file lists for amd64 and sparc64 since on these arches 32bit versions of
the libraries are built as well.
2010-10-31 16:31:12 +00:00
skrll
0e5fcee3e5 RCSId police. 2010-10-31 15:47:53 +00:00
he
4613532253 There's apparently a circular dependency between -lrump and -lrumpuser.
This poses problems when linking statically, as for sun2.  Add -lrump
also after -lrumpuser, so that this links statically as well.
2010-10-31 13:54:31 +00:00
mbalmer
6e18c7b4a5 Note the Lua import. Thanks jmmv for the reminder 2010-10-31 12:09:10 +00:00
mbalmer
aa94cc597c Link Lua to the build and add the resulting files to the distribution sets.
Document the addition of Lua and the change we made to the default settings.
2010-10-31 11:52:50 +00:00
wiz
4958aa2ca5 Various improvements. 2010-10-31 11:39:46 +00:00
mbalmer
2c6be0820c descend into the lua subdirectory 2010-10-31 11:29:06 +00:00
mbalmer
97213731c9 Lua build infrastructure 2010-10-31 11:26:01 +00:00
mbalmer
ee59b191f4 adjust the Lua configuration to our needs 2010-10-31 11:19:42 +00:00
mbalmer
33fc08400c add teh script used to prepare the source code 2010-10-31 11:18:20 +00:00
mbalmer
dbec530483 Import the (unaltered) Lua 5.1.4 source distribution. 2010-10-31 11:16:48 +00:00
mbalmer
debeea5823 Accidentally these files were imported one level to high, sorry about that. 2010-10-31 11:14:02 +00:00
mbalmer
56288e6a3c Import the (unaltered) Lua 5.1.4 distribution. 2010-10-31 11:08:37 +00:00
nisimura
1206eed28e Update copyright notice. This code was completely replaced with
Frank Wille's effort and has no substance made by me anymore.
2010-10-31 11:08:06 +00:00
yamt
d76c56428e fall back to malloc+pread when stat+malloc doesn't seem to work.
it allows libelf work on /dev/ksyms.

XXX the name of the flag is a bit confusing and i think it's better to rename
MALLOCED to DATA_MALLOCED or such.  but i don't think it's worth increasing
the diff against the upstream for it.
2010-10-31 05:03:12 +00:00
yamt
8b0659e731 keep interrupts disabled in NMI handler.
the patch provided by IRINO yoshiaki in PR/43007.
2010-10-31 04:51:19 +00:00
haad
1e89108160 Add resize_ffs tool to build, change default behaviour to grow filesystem
to device size. Add parameter -s to specify size if user want to shrink
filesystem.

Apply some KNF, remove dead unused code.

Oked by christos@.
2010-10-30 21:16:07 +00:00
christos
7261fd134f make usage dead. 2010-10-30 20:12:32 +00:00
uebayasi
72dde1abe5 Use VM_PAGE_TO_MD() to locate struct vm_page_md. No functional
changes.
2010-10-30 18:30:55 +00:00
uebayasi
359f436b59 Use VM_PAGE_TO_MD() to locate struct vm_page_md. No functional
changes.
2010-10-30 18:08:48 +00:00
uebayasi
34f3e21523 Use VM_PAGE_TO_MD() to locate struct vm_page_md. No functional
changes.
2010-10-30 17:44:04 +00:00
uebayasi
44b88a99ab Use VM_PAGE_TO_MD() to locate struct vm_page_md. No functional
changes.
2010-10-30 17:20:43 +00:00
uebayasi
33a7d82e04 Use VM_PAGE_TO_MD() to locate struct vm_page_md. No functional
changes.
2010-10-30 17:00:54 +00:00
uebayasi
15d96040d7 Pass struct vm_page_md * where possible.
This causes 1% code increase, mainly because additional argument
(paddr_t) affects register usage.  This will be fixed when per-page
data structure (struct vm_page) is redone, and physical address
can be retrieved from struct vm_page_md *.

Tested on (uncommitted) i.MX35 (ARM1136).
2010-10-30 16:14:08 +00:00
jnemeth
f6e521dbb3 Reduce licence with copyright Perry E. Metzger and Matthias Drochner
to two clauses.

On Thu, 21 Oct 2010 22:42:00 -0700 jnemeth@XXX
(John Nemeth) wrote:
>     The file src/sys/arch/i386/stand/lib/exec.c has a licence
> section that starts off saying copyright by each of you.  That is
> then followed by a standard four claus UCB licence.  Would it be
> okay to reduce that to the two claus licence that is now standard
> for NetBSD?

I have no particular objections.

--
Perry E. Metzger                perry@XXX

jnemeth@XXX said:
> Would it be okay to reduce that to the two claus licence

Yes of course, this is OK.

best regards
Matthias
2010-10-30 08:12:43 +00:00
kiyohara
acaa4edc7c Fix mvPclk. Need 'break' each 'case'. 2010-10-30 06:37:49 +00:00
kiyohara
391aa4f282 Remove unnecessary comment-outed line. 2010-10-30 06:11:18 +00:00
kiyohara
219e815a80 Enable INCLUDE_CONFIG_FILE.
Remove NTFS maybe unnecessary.
2010-10-30 05:57:41 +00:00
kiyohara
7e0b12518d Enable product MV78100/MV78200. 2010-10-30 05:46:12 +00:00
uebayasi
560c3a1911 Handle kernel file names other than "netbsd". 2010-10-30 03:46:03 +00:00
stacktic
129baba091 Make sh build in debug mode 2010-10-29 17:06:53 +00:00
stacktic
6a6f2f47f8 Initialized flag field in struct alias (Fixed PR/43281) 2010-10-29 17:04:48 +00:00
uebayasi
b69c5f7d05 Update. 2010-10-29 16:15:40 +00:00
pooka
080506bc5d Make error message more userfriendly in cases where server does
not support sftp.
2010-10-29 16:13:51 +00:00
pooka
4b75e68c49 update with reality 2010-10-29 15:38:15 +00:00
pooka
a745e32571 implicit pid is 1 instead of 0 now 2010-10-29 15:32:51 +00:00
pooka
41a10084d4 Attach implicit threads to initproc instead of proc0. This way
applications which alter, by purpose or by accident, the uid in an
implicit thread are don't affect kernel threads.

from discussion with njoly
2010-10-29 15:32:23 +00:00
pooka
082af2faa5 minor knf 2010-10-29 15:27:50 +00:00