Commit Graph

152529 Commits

Author SHA1 Message Date
wiz
a88697ed0e Improve English. 2006-10-17 09:26:21 +00:00
he
a738248ed5 Some of our ports want <sys/param.h> in order to have DEV_BSIZE defined,
needed for LABELSECTOR expansion.
2006-10-17 09:20:09 +00:00
yamt
de1da31163 re_diag: constify. 2006-10-17 09:19:57 +00:00
yamt
04d4eff807 vmem_alloc: use __unused rather than a cryptic
"do { if (&strat) {} } while (/* CONSTCOND */ 0);"
2006-10-17 08:54:03 +00:00
skrll
6f388cd224 Create _rtld_relocate_plt_object and use it in _rtld_bind and
_rtld_relocate_plt_objects.

No functional change.
2006-10-17 08:33:36 +00:00
skrll
152e43d87a Support unaligned DIR32 relocs.
Closes PR 18293
2006-10-17 08:28:06 +00:00
pavel
dd6faf8e8a add myself (pavel@) 2006-10-17 07:54:06 +00:00
uwe
e7b566fa33 Switch to MD_DO_NOT_NEED_FALLTHRU.
While here: Factor out .section/.previous wrapper into a separate macro.
Provide frame pointer.  Add the comment to MD_CALL_STATIC_FUNCTION to
explain why it needs semicolon and why we actually don't use that macro.
2006-10-17 01:10:26 +00:00
macallan
8668483161 detect video RAM size 2006-10-16 22:36:30 +00:00
macallan
ba69d539e0 use vcons.
Works fine on sparc64, needs testing on sparc.
2006-10-16 22:27:16 +00:00
martin
05a4f3ccd9 Remove obsolet kgdb parts 2006-10-16 22:21:52 +00:00
martin
25af9d05c1 Remove obsolete kgdb prototypes. 2006-10-16 22:07:11 +00:00
martin
6b3bb75f5c Initializers 2006-10-16 21:57:10 +00:00
martin
e4354c85e7 Initializers 2006-10-16 20:31:45 +00:00
martin
5c0b67304d Missing initializer 2006-10-16 20:27:40 +00:00
martin
7549c09e6a do not test unsigned values for < 0 2006-10-16 20:23:24 +00:00
martin
387e642293 Debugger() is only available if we compile with DDB 2006-10-16 20:21:46 +00:00
martin
dda2fa3e76 Make it compile with -Wextra 2006-10-16 20:18:55 +00:00
martin
14e2e5cf6a Missing initializer 2006-10-16 20:12:38 +00:00
apb
a1d21442a0 Wrap #ifndef __BIT_TYPES_DEFINED__ around #define __BIT_TYPES_DEFINED__.
Reported by Narayana Prasad.
2006-10-16 19:44:23 +00:00
kiyohara
e95a66da33 * convert ibm4xx-based evbppc from reserved-TLB entry allocation to recently
introduced ppc4xx_tlb_reserve() API.
2006-10-16 18:14:38 +00:00
kiyohara
d7e6f0e206 * convert ibm4xx-based evbppc from reserved-TLB entry allocation to recently
introduced ppc4xx_tlb_reserve() API.
* ibm405gp UART0 used to be linear mapped. The VA happens to be inside kernel
  segment, giving us the possibility of multiple VA matches in the TLB. This
  is considered "programming error" by 405 core and results in "undefined
  behaviour". We now avoid mapping peripherals in kernel segment.
* Some boards used to map hardwired RAM size. We now use the real size as
  passed in by boot firmware.
2006-10-16 18:14:37 +00:00
kiyohara
471efec80f * convert ibm4xx-based evbppc from reserved-TLB entry allocation to recently
introduced ppc4xx_tlb_reserve() API.
* ibm405gp UART0 used to be linear mapped. The VA happens to be inside kernel
  segment, giving us the possibility of multiple VA matches in the TLB. This
  is considered "programming error" by 405 core and results in "undefined
  behaviour". We now avoid mapping peripherals in kernel segment.
* Some boards used to map hardwired RAM size. We now use the real size as
  passed in by boot firmware.
* TLB_NRESERVED is (finally) gone.
2006-10-16 18:14:36 +00:00
kiyohara
c38c755c41 do bus_space_map() to get bus space handle in emacs_attach() 2006-10-16 18:14:35 +00:00
kiyohara
cf2d4adfc0 * convert ibm4xx-based evbppc from reserved-TLB entry allocation to recently
introduced ppc4xx_tlb_reserve() API.
* ibm405gp UART0 used to be linear mapped. The VA happens to be inside kernel
  segment, giving us the possibility of multiple VA matches in the TLB. This
  is considered "programming error" by 405 core and results in "undefined
  behaviour". We now avoid mapping peripherals in kernel segment.
* Some boards used to map hardwired RAM size. We now use the real size as
  passed in by boot firmware.
* don't call consinit() in obs2{00,66}_machdep.c because consinit() is already
  called in ibm4xx_init() (but I'm not sure which place is good)
2006-10-16 18:14:34 +00:00
rpaulo
21df8206df Export the tcp_do_rfc1948 variable to userland via sysctl.
The code to generate an ISS via an MD5 hash has been present in the
NetBSD kernel since 2001, but it wasn't even exported to userland at
that time. It was agreed on tech-net with the original author <thorpej>
that we should let the user decide if he wants to enable it or not.
Not enabled by default.
2006-10-16 18:13:56 +00:00
christos
b83d29dc81 with the introduction of 512 byte buffers, the index in the array is not
the number of kilobytes anymore, so name the pools appropriately.
2006-10-16 16:50:12 +00:00
christos
c384594e4f use howmany(), instead of open-coding the calculation. 2006-10-16 16:44:20 +00:00
kiyohara
60e982e820 Add initial support for the PXA255-based gumstix board. 2006-10-16 16:40:14 +00:00
dogcow
3e1f2a8ad1 another day, another __unused sprinkle. 2006-10-16 16:05:34 +00:00
skrll
edf13fb5fb Reformat a comment. 2006-10-16 13:53:09 +00:00
skrll
78b8583054 Correct the frame size for a couple of ENTRYs 2006-10-16 13:52:47 +00:00
he
62e8b0f3fa Make a minimal attempt at distinguishing between the hosts and the
targets integer data type value ranges.   For now we just use the
hosts uint64_t for parsing & storing integers constants, and test
against the targets limits and assign appropriately, instead of
sometimes (inappropriately) going via the hosts u_long type.  As
long as none of our architectures have target long or quad data
types strictly larger than 64 bits, we should be fine with this
fix.

Furthermore, as they stand at the moment, we can't use the current
TARG_INT_MAX and TARG_LONG_MAX constants in C preprocessor expressions,
so remove the conditional on them being equal.  Yes, this will
produce dead code for some targets.

This allows an ilp32 host to lint for an lp64 target which uses
e.g. the targets ULONG_MAX constant without triggering an "integer
constant out of range" warning.

OK'ed by christos.
2006-10-16 13:33:57 +00:00
yamt
44923ac48a implement vmem_xalloc/xfree.
XXX importing needs some more thoughts.
2006-10-16 13:09:42 +00:00
yamt
bfeb267b0a define boolean_t if !_KERNEL. 2006-10-16 13:09:06 +00:00
pooka
46e45ee2d4 replace static for ncapi - it doesn't need exporting - nuke it from the header 2006-10-16 13:03:03 +00:00
pooka
5005d343ec * __unused games + other relevant fixes
* give me ANSI C or give me death (at least where it could be easily spotted)
2006-10-16 13:00:36 +00:00
pooka
1810947bb4 make compile by using __unused & other necessary tricks
and remove <0 comparisons for bus_size_t.  if a port wants signed
bus_size_t, it just might have to accept it can't use this driver.  *snif*
2006-10-16 12:58:54 +00:00
pooka
97cdceacd6 * __unused madness
* insert missing initializers
* fix one (1!) bug because of if(); (although I wonder if
  the fix is actually of any use ...)
2006-10-16 12:23:00 +00:00
skrll
6d031b3abb Link testlib against libm and libgcc_s so that all the required symbols
are available for all arches.

Some arches (arm and hppa) use SJLJ expections which requires stuff from
libgcc_s and some (hppa) always do immediate binding - libstdc++ requires
libm.

Fixes PR 33294 and regress/usr.bin/rtld/dlopen on hppa with the soon to
be committed unaligned reloc fix.
2006-10-16 09:21:55 +00:00
wiz
fef6221a07 Hyphenate nul-terminate. 2006-10-16 09:10:40 +00:00
wiz
d65511ddb3 Mark up NULL. 2006-10-16 09:10:29 +00:00
wiz
1a64d82da5 nul/null/NULL cleanup:
when talking about characters/bytes, use "nul" and "nul-terminate"
when talking about pointers, use "null pointer" or ".Dv NULL"
2006-10-16 08:48:45 +00:00
wiz
aba3ac5c73 kleink reminded me in a friendly way that "NULL" is the C API
synonyme for a "null pointer" and that there is no "NULL pointer".
2006-10-16 08:42:16 +00:00
christos
eed7e5b25b c99 initializer 2006-10-16 03:39:42 +00:00
christos
5b106e45c5 kill empty else. 2006-10-16 03:38:08 +00:00
christos
5afd1c0a23 use MOPT_NULL 2006-10-16 03:37:42 +00:00
christos
fb9bdae14a add MOPT_NULL 2006-10-16 03:31:27 +00:00
christos
cf91149591 c99 initializer 2006-10-16 03:26:49 +00:00
christos
851ac27d44 c99 initializers 2006-10-16 03:25:21 +00:00