Commit Graph

176975 Commits

Author SHA1 Message Date
lukem 0fdc53711f Use KiB MiB GiB instead of Kb Mb Gb 2009-01-18 00:21:09 +00:00
lukem 1881cc846a * Fix -Wsign-compare issues.
* Add some XXXs noting where we might want to check for 16bit overflow.
* Use uintNN_t instead of int if the values is read from or written to
  using udf_rwNN().
2009-01-18 00:18:41 +00:00
hans ec644bbf21 Use ll instead of non-standard q as length modifier in format strings.
Makes this work on Solaris. OK by apb.
2009-01-17 23:24:30 +00:00
bjh21 85608d883e Clear out the vestigial support for the Simtec Hydra board. Now that we're
getting support for proper SMP ARMs, keeping non-functional support for
a seriously crippled not-really-SMP system is likely to cause more problems
than it's worth, even if it was fun for a while.
2009-01-17 22:56:34 +00:00
njoly 77237e1c08 Regen for wait4 update. 2009-01-17 22:34:02 +00:00
njoly 25a76c08aa Convert linux/linux32 wait(4) to use a compat50 rusage structure. 2009-01-17 22:28:52 +00:00
he 38068400a9 Avoid casting an uisigned to a signed value, thereby invoking formally
undefined behaviour.  Instead go via u_int and print with %u.
2009-01-17 22:01:32 +00:00
wiz 714b5c355f Improve description in NAME section:
"serial terminal emulator"

From nick@openbsd via jmc@openbsd.
2009-01-17 20:59:01 +00:00
christos cfd21f4e03 add COMPAT_50 2009-01-17 20:08:07 +00:00
he 0dd0f071a6 Umm, add two spaces which accidentally was left by the wayside. 2009-01-17 19:39:50 +00:00
he 75eff3e6e1 Print dev_t with PRIu64 instead of llu, suggested by mhitch@. 2009-01-17 19:34:28 +00:00
christos 15d0878308 use a separate variable to copy the locale. 2009-01-17 17:56:01 +00:00
mjf 8dae70cc89 Fix printf format for suseconds_t 2009-01-17 17:06:18 +00:00
mjf 53ce0ef17c Catch up with shlib major bump for all arm platforms. 2009-01-17 17:05:17 +00:00
bjh21 8f2e944cdf Use more fields from curcup(), specifically ci_dev (replacing the local
the_cpu) and the various fields set from the CPU ID register.
2009-01-17 16:08:02 +00:00
pooka 72bb699a15 #ifdef __powerpc__ -> #ifdef PPC_OEA in previous. Forgot that powerpc
has 57 billion different pmaps.
(not compile-tested for a full build)
2009-01-17 15:53:15 +00:00
he 994737a3f6 Regenerate files after updating syscalls.master for compat_ultrix:
Adapt to the state after the recent time_t change.
  Type changes:
    timeval -> timeval50
    itimerval -> itimerval50
    rusage -> rusage50
  and use of the compat_50 calls where appropriate.
  Untested, but at least it builds.

  Discussed with christos@
2009-01-17 15:50:12 +00:00
he 92c667768c Adapt to the state after the recent time_t change.
Type changes:
  timeval -> timeval50
  itimerval -> itimerval50
  rusage -> rusage50
and use of the compat_50 calls where appropriate.
Untested, but at least it builds.

Discussed with christos@
2009-01-17 15:48:06 +00:00
bjh21 a91d2ba8c7 Small tweak to kernel RAS restart code: there's no need to restart if PC
is already at the first instruction of the RAS.
2009-01-17 15:43:52 +00:00
christos 099cac49ad fix debugging build. 2009-01-17 15:25:36 +00:00
he 7a69db4aa6 Use firm_gettime() to retain compatibility with old firm_event. From amiga. 2009-01-17 14:35:06 +00:00
he 2319fa33da Print dev_t (from major() and minor()) with %llu. 2009-01-17 14:21:29 +00:00
bjh21 76cc88961f Remove the implementation of cpu_intr_p() from here now that it's in
arm/arm_machdep.h.  Should fix builds on arm32 platforms.  Thanks to
Matt Fleming for reporting the problem.
2009-01-17 14:14:56 +00:00
tsutsui 3f38114d96 Remove __P(). 2009-01-17 14:00:36 +00:00
dsl 18e81da746 __predict_false() isn't defined if we aren't netbsd, stub out. 2009-01-17 13:55:42 +00:00
dsl 462d090d0f Change 'Buffer' so that it is the actual struct, not a pointer to it.
Saves having to malloc/free a fixed size structure.
Buf_Init() now takes ptr to Buffer to initialiase.
Change Buf_Destroy() to return ptr to string when not freed.
Remove large number of casts to (Byte) and (Byte *) - 'Byte' is 'char' here.
Buf_AddByte[s] guarantees that the data is 0 termininated, so never add '\0'.
Keep 'count' not 'left' and 'inPtr', code is simplier with only one update.
Fix fallou, no functional change.
2009-01-17 13:29:37 +00:00
he ecef5ef303 Correct typo in previous: seseconds_t -> saseconds_t. 2009-01-17 12:47:02 +00:00
he 9dbb63534c Follow up the time_t -> saseconds_t or satime_t type changes by
changing the signatures of netif_get() and getsecs() appropriately.
2009-01-17 12:34:25 +00:00
he cc247d44dd Print dev_t (result of major() and minor()) with %llu. 2009-01-17 12:22:26 +00:00
he a5ec128bee If we have a SHLIB_VERSION_FILE, add is as a dependency for the
library.  This is mostly a convenience, so that you can trigger
a shared library rebuild by touching the shlib_version file, it
should not otherwise impact the build one way or the other.
2009-01-17 12:09:58 +00:00
he 79663d7eed Move _LIBLDOPTS and LDFLAGS to a spot behind LDADD when making a
shared library.  This is done so that -L options pointing into
DESTDIR will come after -L options pointing into our object tree
for shared libraries this shared library depends on.

This makes a difference when shared library major numbers are bumped
(as was recently done in our tree), and you build into an already-
populated DESTDIR, because otherwise the old major version shared
libraries will be picked up, because the new ones have not yet been
installed at this stage. This will in all probability lead to
conflicts later on when linking programs, where one would try to
mix new and old major versions for the same shared library.

I *hope* this will not have any negatively impact by moving other
order-dependent options around; local tests with rebuilds did not
uncover any problems I could see.

OK'ed by lukem@
2009-01-17 12:07:59 +00:00
isaki 60e2f02631 Split device_t/softc, use aprint*(). 2009-01-17 10:02:23 +00:00
isaki cbd07c5ca6 Purge x68k_config_found() to simplify consinit routine.
config_console() calls initialization of grf, ite, mfp
directly, instead of tracing special device tree with an
emulated 'struct device'.
2009-01-17 09:20:46 +00:00
cegger cc23319cdd whitespace nit 2009-01-17 09:00:24 +00:00
tsutsui 88c6b7f036 Add options COMPAT_50. 2009-01-17 07:31:57 +00:00
tsutsui 00ae5151a8 Move extern decls for Sysseg, Sysptmap, Sysptsize, mem_size, virtual_avail,
virtual_end, and protection_codes[] to common <m68k/pmap_motorola.h>,
and also make protection_codes[] unsigned.

XXX: avail_start and avail_end should also be moved, but it causes
XXX: -Wshadow warnings in uvm/uvm_page.c:uvm_page_physload() and
XXX: I don't have a good idea of alternative names for now.
2009-01-17 07:17:35 +00:00
yamt cea19a4d14 malloc -> kmem_alloc. 2009-01-17 07:02:35 +00:00
isaki b885d1c835 Use device_xname(). 2009-01-17 06:33:15 +00:00
isaki d70fa2861f bootdev: dev_t -> uint32_t.
locore.s assumes bootdev being 32bit value.
2009-01-17 06:32:03 +00:00
tsutsui 77938e8d54 Use firm_gettime() to retain compatibility with old firm_event. From amiga. 2009-01-17 05:23:28 +00:00
tsutsui b5ead86432 Use PRIu64 to print 64 bit dev_t (for now). 2009-01-17 05:22:00 +00:00
isaki 0ea8d0e57c Increase the image size from 1300KB to 1400KB. 2009-01-17 03:53:01 +00:00
isaki 691579f364 Use firm_gettime() (in dev/sun/vuid_event.h) to adapt
changes in chiristos-time_t.
2009-01-17 03:26:31 +00:00
tsutsui ac2053000c Make st_entry_t and pt_entry_t unsigned.
These values contain paddr_t and bitmap flags.

XXX paddr_t is unsigned long, not unsigned int.
2009-01-17 01:38:10 +00:00
tsutsui fbb8e2162a Add options COMPAT_50. 2009-01-17 01:19:18 +00:00
cegger 7971844bd8 Until we do WOL, the PCI power management suspend code is a noop. 2009-01-17 00:02:40 +00:00
cegger 8023f7432d don't call age_stop and age_init in suspend/resume.
pmf network class is already doing that.
pointed out by jmcneill
2009-01-16 23:58:05 +00:00
tsutsui 616515e8fc Split device_t/softc, missed on MI dp8390nic changes 10 months ago.
Also use aprint_*(), and remove unnecessary casts against void * variables.

Tested by John Klos on port-mac68k, and should be pulled up to netbsd-5.
2009-01-16 23:43:46 +00:00
wiz 74e376961d Fix Dd, make output HTML-ready, punctuation and casing improvements. 2009-01-16 23:27:49 +00:00
wiz 8b7eddbcfe Fix Dd, add Xref to age(4). 2009-01-16 23:26:31 +00:00