Commit Graph

198759 Commits

Author SHA1 Message Date
cegger f2fbc0de6d Get improvements from FreeBSD-current (January 2011).
Successfully tested with WEP, WPA and WPA2 on AR9285.
Reviewed by jmcneill@
2011-03-07 11:25:41 +00:00
joerg 5c3ccd6eba Pass down ELF Auxillary Vectors for static NetBSD binaries too.
Rename __libc_init to _libc_init and call it explicitly from CSU code.
This enforces the constructor run order for newly linked programs.
Keep it as constructor with run-once semantic for binary compatibility.
Implement dl_iterate_phdr for statically linked programs.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.
2011-03-07 05:09:09 +00:00
enami 08376a9153 Fix link error. 2011-03-07 03:29:26 +00:00
cherry 974d4f3d46 Use macros clts/stts instead of directly manipulating CR0 flags.
Expose fpuinit to XEN build. (remove #ifdef XEN)
2011-03-07 02:24:57 +00:00
joerg 3a6bc2a9c4 ufs/ufs/quota.h is now used by makefs 2011-03-07 02:02:36 +00:00
christos 959ab2631c Restore historical behavior of tgoto() to return "OOPS" on failure. This is
best for now because there are too many programs that don't check the return
value of it. Of course cursor motion commands from $TERMCAP have 0 chance
of working now, since their % escapes are not translated to terminfo. In
the window case %+ expects one param from the stack in the termcap case
and two in the terminfo so we barf. We need proper captoinfo handling for
the % escapes, like the one in ncurses. Hi Roy :-)
2011-03-07 00:27:51 +00:00
christos e73fcb7199 KNF 2011-03-06 23:41:47 +00:00
christos 1c901e8c26 merge one more triplicated function 2011-03-06 23:26:05 +00:00
christos 6a453cd117 more code deduplication 2011-03-06 23:25:42 +00:00
christos cb869888d4 use common utils 2011-03-06 23:24:33 +00:00
christos 412de05f04 more KNF 2011-03-06 23:13:22 +00:00
christos a518d1d73c use merged out code. 2011-03-06 23:07:23 +00:00
christos e0e65cb1e2 - merge more code.
- simplify struct access.
2011-03-06 22:36:07 +00:00
christos 3f339fb13b - KNF
- merge code
- fix error printing
- don't use static buffers
2011-03-06 22:33:55 +00:00
mrg 722355d60d install xorg-server.m4 at the request of jmcneill. 2011-03-06 22:15:29 +00:00
christos 1f0f7c923b - WARNS=4
- KNF
- don't cast malloc
- don't use static buffers
- fix types
- remove extra \n's from errors
- fix prototypes
2011-03-06 20:47:59 +00:00
phx 948ee160e6 Renamed "stg" to "stge" as in the kernel. 2011-03-06 20:36:29 +00:00
he ac93dee5bb Now that MACHINE is defined in user-land in either
mips/include/mips_param.h or powerpc/include/param.h, stop
trying to re-define it in the port-specific param.h files
when _KERNEL isn't defined.
2011-03-06 20:34:55 +00:00
phx fa5740cd0f Suport for loading a kernel from memory (RAM, ROM or Flash).
The boot file path should look like "mem:<address>", where <address> is
the start address, in hex notation, of the file in memory.
2011-03-06 18:22:13 +00:00
bouyer fcf38c8c34 merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
2011-03-06 18:15:30 +00:00
sjg c37859c219 Only need to getcwd() once 2011-03-06 17:41:11 +00:00
wiz 206ef381bf Fix typo. 2011-03-06 17:39:34 +00:00
wiz e2a3787008 New sentence, new line. 2011-03-06 17:39:05 +00:00
wiz 54f3ceb271 Sort options, split "file system". 2011-03-06 17:36:32 +00:00
wiz 9758975014 Remove trailing whitespace; remove dot at end of SEE ALSO; new sentence, new line;
split "file system"; more markup.
2011-03-06 17:34:57 +00:00
wiz ee43c34a26 Split "file system" like usual. Improve SYNOPSIS. Various other fixes. 2011-03-06 17:32:38 +00:00
wiz f1f9830b96 Sort options. Split "file system" like usual. Bump date. 2011-03-06 17:25:32 +00:00
wiz e1b9c01aba Bump date for new quota.
Split "file system" like customary.
2011-03-06 17:22:50 +00:00
wiz 492cea3a3d Fix punctuation markup; new sentence, new line. 2011-03-06 17:21:08 +00:00
wiz d2eb4c303d New sentence, new line. 2011-03-06 17:20:28 +00:00
wiz 9ef313636b Various fixes:
Remove trailing whitespace.
Sort sections.
Sort errors.
Fix typos.
Use more markup.
Probably something else I forgot.
2011-03-06 17:19:25 +00:00
bouyer 73dead8f15 Add a note about a possible way to migrate limits from QUOTA to QUOTA2 2011-03-06 17:12:36 +00:00
bouyer 9090ace550 Docucment QUOTA2 2011-03-06 17:11:19 +00:00
bouyer 063f96f3c2 merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
2011-03-06 17:08:10 +00:00
christos b5c8479490 don't abuse cf_unit, requested by phone. 2011-03-06 17:00:16 +00:00
christos ce009e37f0 Check bits on each loop to prevent integer oveflow.
Reported by Maksymilian Arciemowicz
2011-03-06 16:00:20 +00:00
pooka 951e801a6b Add a race catcher for p2k_ffs renamerace -- it seems like the
problem doesn't trigger always especially in a qemu env (but triggers
100% of the time on my desktop).
2011-03-06 16:00:16 +00:00
tsutsui e1901f8e74 Remove trailing spaces. 2011-03-06 14:58:42 +00:00
tsutsui dcaf78e5b9 Remove trailing spaces and TABs. 2011-03-06 14:54:46 +00:00
tsutsui ec6990c143 Remove extra TAB. 2011-03-06 14:52:37 +00:00
tsutsui 094e0e9bb0 Remove trailing spaces. 2011-03-06 14:51:21 +00:00
phx b79587cca2 New experimental driver for SundanceIT ST1023 / IP1000+ NICs.
PHY initialization, media select and MAC address are working, but I found no
way to make the chip transmit any frame yet (although it clears the DONE flag).

Moved DSK_DECL to globals.h, where NIF_DECL already was.
2011-03-06 13:55:12 +00:00
pooka 172587ab09 Add a kludge to prevent a test run from completely hanging.
Some analysis:

1) p2k_ffs test program opens a socketpair and forks off rump_ffs
2) after mounting the file system, test program decides it
   wants to skip the test and exits
3) somehow, the puffs event thread of rump_ffs stays in kqueue
   waiting for activity.  fstat+gdb suggests it's waiting for the
   now-orphaned socketpair (but I didn't fully verify.  is there
   an easy way to dump the state of a kqueue descriptor?).
4) test program is a zombie
5) atf-run waits forever

Note: this doesn't trigger always.

So, it seems there are at least two bugs: 1) test case doesn't
timeout 2) the kevent call in rump_ffs never returns even though
the sockerpair is orphaned

So, explicitly unmount the file system before skipping the test.
Obviously the above bugs needs to be properly fixed, since other
skipping test cases can unbeknowingly trigger the issue.
2011-03-06 10:33:40 +00:00
martin 49f1dcc8e5 While we use hardware (for float and double), but cooperate with softfloat
(to do long double), we need to not only handle the hardware exception
mask and cummulated flags, but also update/query the softfloat variables.
Since this may go away sometime (to make us psABI compliant), ifdef it
properly.
2011-03-06 10:32:47 +00:00
martin 598174eb2b Apply local namespace protection equivalent to the weak alias done
in softfloat-for-gcc.h, which we can't include here, to move
"float_exception_mask" into implementation namespace.
2011-03-06 10:27:37 +00:00
tteras 349228b78c Quiet a gcc warning when strict-aliasing checks are enabled. Reported by
Stephen Clark.
2011-03-06 08:28:10 +00:00
jakllsch 7e5272d701 Bump SYMTAB_SPACE for the many other evbarm kernels that also need it increased. 2011-03-06 05:08:03 +00:00
rmind f09748f46c {ffs_nodealloccg,ext2fs_nodealloccg,ext2fs_mapsearch}: use XOR and ffs()
to find free bits in the inode and block bitmaps, instead of the loop.

Obtained from FreeBSD (changes by jhb).
2011-03-06 04:46:26 +00:00
rmind ae3b98c1b5 In a case of direct select, set only masked events, do not wakeup LWP
if no polled/selected events were set; also, count the correct return
value for the select.
2011-03-06 04:41:58 +00:00
sjg b9fa549592 CWD should be compared against cwd 2011-03-06 04:34:25 +00:00