Commit Graph

152510 Commits

Author SHA1 Message Date
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
christos 8dd4b2bbb0 comment out/delete impossible code 2006-10-16 03:21:34 +00:00
thorpej d9fd2cbcd7 Add a _PROP_ARG_UNUSED that expands to __unused on NetBSD and to nothing
everywhere else.  Use it where Christos decided to use __unused in this
code.
2006-10-16 03:21:07 +00:00
christos 8cf4f4e359 c99 initializers 2006-10-16 03:21:05 +00:00
christos b8a730da20 c99 initializer 2006-10-16 03:15:46 +00:00
christos dcd203dd29 c99 iniitializer 2006-10-16 03:12:23 +00:00
christos 17e1e1af49 c99 initializer 2006-10-16 03:10:59 +00:00
christos 0e84886f1c comment out impossible code. 2006-10-16 03:09:26 +00:00
christos fef0df6d6b c99 initializers 2006-10-16 03:09:06 +00:00
christos 6dd4b3398f c99 initializers. 2006-10-16 03:04:45 +00:00
christos f076ca6346 use c99 initializers 2006-10-16 03:02:01 +00:00
christos 68475dcb61 comment out impossible code. 2006-10-16 03:01:36 +00:00
christos 50b568b12d c99 initializers 2006-10-16 02:56:56 +00:00
christos 9b005038ce add missing initializer 2006-10-16 02:55:10 +00:00
christos 2f9c53340f sprinkle volatile. 2006-10-16 02:54:23 +00:00
christos 00ab1df137 - get rid of p_cfunc2
- add missing initializers
2006-10-16 02:52:43 +00:00
christos 56641252ba - add volatile
- static before const
2006-10-16 02:44:46 +00:00
christos 064b0504f7 c99 initializer 2006-10-16 02:43:19 +00:00
christos 457d135620 c99 initializers 2006-10-16 02:42:42 +00:00
christos 7e3b870a41 add missing initializers 2006-10-16 00:45:19 +00:00