Commit Graph

2308 Commits

Author SHA1 Message Date
tnozaki 9efec5bce3 1. MB_LEN_MAX switch MD to MI.
2. unfortunately hppa's MB_LEN_MAX is defined incorrectly 6 instead of 32
   so we have to add more setlocale(3) __RENAME func, __setlocale50.
3. move setlocale1.c and setlocale32.c to lib/libc/compat/locale/*
   prepareing for next libc major crunk.
4. bump libc minor version.
2010-06-07 13:52:28 +00:00
tnozaki dc71c99d49 fix wrong integer promotion rule(removed U suffix from UINT{8,16}_C).
see ISO/IEC 9899:1999 7.18.4.3.
2010-05-29 17:33:57 +00:00
kiyohara b554198674 Add definitions for Power Manager Registers.
Add some fields for USBHC_UHCRHDB.
2010-05-15 12:17:34 +00:00
cegger dfa8eb2f81 Move PMAP_KMPAGE to be used in pmap_kenter_pa flags argument.
'Looks good to me' gimpy@
2010-05-14 05:02:05 +00:00
nonaka a69ab5bf09 Add SSP SSSR register definitions. 2010-05-11 13:23:09 +00:00
nonaka ab17339c43 Added some CKEN_* definition for pxa270. 2010-05-11 11:28:47 +00:00
joerg 875348d73b Limit mbuf clusters to 64MB. Forgotten part of the February commit. 2010-05-06 19:10:26 +00:00
rmind 13f624ca0f Remove lwp_uc_pool, replace it with kmem(9), plus add some consistency.
As discussed, a while ago, with ad@.
2010-04-23 19:18:09 +00:00
nonaka a01ed06805 Enable DMA transfer. 2010-04-06 15:55:46 +00:00
joerg 58e867556f Push the bpf_ops usage back into bpf.h. Push the common ifp->if_bpf
check into the inline functions as well the fourth argument for
bpf_attach.
2010-04-05 07:19:28 +00:00
tnozaki 377cb4e4f9 1. {wctype,wctrans,mbstate}_t: switch MD to MI like other
libc implementation (such as *BSD and glibc2).

2. don't typedef void * wc{type,trans}_t, suggested by soda@-san.
   it may pass through compiler type check, it's harmful.
   so i introduce dummy struct __tag_wc{type,trans}_t(iconv_t already does).

no ABI change was made.
2010-03-27 22:14:09 +00:00
jakllsch 35c90d315d Use objcopy rather than ld to copy Intel NPE firmware blob into ELF.
Avoids internal error in newer binutils ld.
Should fix PR/42864 and PR/43057.
2010-03-26 15:55:33 +00:00
scw a239f60810 Update with new download link provided by Marcin M. Jessa in
http://mail-index.netbsd.org/port-arm/2010/03/24/msg000912.html.

Add a note about version 3.0 microcode.
2010-03-24 13:55:04 +00:00
chs 45709939f2 assert that pcb_onfault is NULL in places where it should be. 2010-03-21 00:10:14 +00:00
nonaka bd9d1e1c80 fix compile failure when PXAMCI_DEBUG is defined. 2010-03-13 12:28:44 +00:00
bsh b58b20fe01 fix LCD drivers for Lubbock and Twintail.
- pass correct attach args to pxa2x0_lcd_attach_sub()
  - make this driver compile without wsdisplay again.
2010-03-13 11:15:52 +00:00
bsh 622048aac2 fix changes for struct device split for Lubbock. 2010-03-13 11:13:31 +00:00
plunky c269ebf72f use a MI major number for uhso(4) driver
(requested by mrg)
2010-03-06 23:45:38 +00:00
plunky 4677f8289f add major device for usho(4) driver 2010-03-06 21:31:50 +00:00
skrll 952a515d7e Typo in comment. 2010-02-24 19:12:12 +00:00
bsh 67a60d973a Modify definitions for ULCOM register of UART according to S3C2800
User's manual rev 1.3.

The values of ULCON_PARITY_SHIFT and ULCON_IR are now same to those
for S3C2410. So the definitions are moved to s3c2xx0reg.h.  (Old
definitions from User's manual rev1.1 were differ to those for
S3C2410, and that was why I put them in s3c2800reg.h and s3c24x0reg.h.
There's no description in errata about this changes.)

Also, fix the value for UMSTAT_DCTS on 2800.

The values of UMCON_AFC and UMSTAT_DCTS still differ between 2800 and
2410.

Reported by Brett Slager.  Thank you very much.
2010-02-21 06:08:53 +00:00
skrll 6118df95b4 Typo in comment. 2010-02-15 07:55:33 +00:00
joerg d621e29eca Remove separate mb_map. The nmbclusters is computed at boot time based
on the amount of physical memory and limited by NMBCLUSTERS if present.
Architectures without direct mapping also limit it based on the kmem_map
size, which is used as backing store. On i386 and ARM, the maximum KVA
used for mbuf clusters is limited to 64MB by default.

The old default limits and limits based on GATEWAY have been removed.
key_registered_sb_max is hard-wired to a value derived from 2048
clusters.
2010-02-08 19:02:25 +00:00
wiz 07f775da9b Add missing parentheses. Found by cppcheck, reported by
Henning Petersen in PR 42728.
2010-02-03 13:51:00 +00:00
mrg 07b833621b rename a local cpu_name structure member to avoid potential conflict
with <sys/cpu.h>'s.
2010-01-23 15:58:13 +00:00
martin f9e1815aaf Unify the name of the device property to hold a MAC address - there was
no clear majority for either "mac-addr" vs. "mac-address", but a quick
gallup poll among developers selected the latter.
2010-01-22 08:56:04 +00:00
pooka 10fe49d72c Redefine bpf linkage through an always present op vector, i.e.
#if NBPFILTER is no longer required in the client.  This change
doesn't yet add support for loading bpf as a module, since drivers
can register before bpf is attached.  However, callers of bpf can
now be modularized.

Dynamically loadable bpf could probably be done fairly easily with
coordination from the stub driver and the real driver by registering
attachments in the stub before the real driver is loaded and doing
a handoff.  ... and I'm not going to ponder the depths of unload
here.

Tested with i386/MONOLITHIC, modified MONOLITHIC without bpf and rump.
2010-01-19 22:06:18 +00:00
jmmv c3bed4804d Define an empty module_init_md function so that kernels with 'options
MODULAR' can be built (at least in shark).  Still not working due to
some relocations resolving to too far away symbols though.
2010-01-18 23:04:30 +00:00
pooka c109162bd9 Pass correct pointer to bpf_mtap() and most likely avoid a crash
if bpf is activated.

not even compile-tested, since i can't find any config in the tree
which uses this(?)
2010-01-18 18:23:53 +00:00
mbalmer bd2482b598 One semicolon is enough. 2010-01-05 13:14:55 +00:00
uebayasi 4b715b32ad s/These is/These are/ 2010-01-03 04:25:16 +00:00
he aca24a5f7f Remove a shadowed and unused local declaration so that this builds again. 2010-01-02 07:53:29 +00:00
uebayasi 5d65495c8f Sprinkle assertions after calling pmap_get_l2_bucket(). 2010-01-01 02:32:28 +00:00
uebayasi 950df2c49d Use pmap_is_current() where appropriate. No functional changes. 2009-12-31 18:34:56 +00:00
uebayasi fd4a9e70d7 pmap_page_remove(): remove an unused local variable; no functional changes. 2009-12-31 16:00:53 +00:00
uebayasi 979a25a17e Correct assertions for PMAP_CACHE_VIPT code; if page coloring is disabled
(arm_cache_prefer_mask == 0), pvh_attrs has never PVF_COLORED, so don't assert
it.  No functional changes.
2009-12-31 02:36:14 +00:00
uebayasi 6d9df63461 Indent. 2009-12-28 15:13:57 +00:00
uebayasi 3fa5841a40 Always name struct pv_entry * as pv, not pve. No binary change. 2009-12-28 15:02:59 +00:00
uebayasi fe705f1018 Add write-through cache work-around for ARM11 as well as ARM9/ARM10. Analyzed
& tested on i.MX35 with help from Tsubai Masanari.
2009-12-27 05:14:56 +00:00
uebayasi 998f9b1597 Use cpu_* prefix to call cpu_* functions (setttb() -> cpu_setttb()); no
functional changes.
2009-12-26 16:01:23 +00:00
skrll 74b7def7b3 Fix ancient bug. footbridge_mem_bs_mmap should return a page number. 2009-12-15 21:38:20 +00:00
tsutsui 471e528b58 Remove `volatile' qualifier from argument types of
struct timeval passed to todr_gettime(9) and todr_settime(9).
We no longer have an ancient and volatile struct timeval `time'
global since we have switched to MI timercounter(9) on all port.

XXX1: some of these RTC drivers still assume 32bit time_t
XXX2: some of these should be rewritten to use todr_[gs]ettime_ymdhms()
XXX3: todr(9) man page doesn't mention todr_[gs]ettime_ymdhms()
2009-12-12 14:44:08 +00:00
matt 0a8b38422e Add PRIx{P,V}{ADDR,SIZE}, PRIu{P,V}SIZE, and PRIxREGISTER{,32,64} for all
(except where they will be added via merge).  These should be used to print
{p,v}{addr,size}_t and register*_t as appropriate.
2009-12-11 05:52:03 +00:00
matt 6a9e4e8eeb Change u_long to vaddr_t/vsize_t in exec code where appropriate (mostly
involves setregs and vmcmds).  Should result in no code differences.
2009-12-10 14:13:48 +00:00
rmind e9f7af26e6 Rename L_ADDR to L_PCB and amend some comments accordingly. 2009-12-10 05:10:00 +00:00
he 8529946f44 Make this one build again. 2009-12-09 12:42:59 +00:00
dyoung 3dedfc004f Simplify the device-activation hook. Move some of the device
deactivation to the detachment routine, where it belongs.
2009-12-06 21:33:45 +00:00
kiyohara e904f28b1a Enable UART clock in pxauart_attach(). 2009-12-06 12:27:33 +00:00
pooka faa8e1b3e3 Convert tsleep(&lbolt) to kpause(). Make ltsleep/mtsleep on lbolt
illegal.  I examined all places where lbolt is referenced to make
sure there were pointer aliases of it passed to tsleep, but put a
KASSERT in m/ltsleep() just to be sure.
2009-12-05 22:34:43 +00:00
nonaka e95c181974 sync with OpenBSD. 2009-12-05 13:56:43 +00:00