Re: CVS commit: src/sys/arch/arm/omap

2016-08-05 Thread KIYOHARA Takashi
Hi!


From: "Jonathan A. Kollasch" <jakll...@netbsd.org>
Date: Thu, 4 Aug 2016 22:02:54 -0500

> On Fri, Aug 05, 2016 at 11:27:13AM +0900, KIYOHARA Takashi wrote:
>> Hi!
>> 
>> 
>> From: "Jonathan A. Kollasch" <jakll...@netbsd.org>
>> Date: Thu, 4 Aug 2016 20:07:18 +
>> 
>> > Module Name:   src
>> > Committed By:  jakllsch
>> > Date:  Thu Aug  4 20:07:18 UTC 2016
>> > 
>> > Modified Files:
>> >src/sys/arch/arm/omap: omap3_sdhc.c
>> > 
>> > Log Message:
>> > TI_DM37xx does not currently have a working omapscm(4), which provides
>> > omap_devid().  Avoid using omap_devid() until correctly fixed.
>> 
>> Why not attach omapscm?
>> My Overo EarthSTORM(AM3703) is working with omapscm.  The OVERO supports
>> OMAP 3503, 3530, DM3730 and AM3703.


> BEAGLEBOARDXM w/
> omapscm0at obio0 addr 0x48002000 size 0x1000 :
> 
> src/sys/arch/arm/omap/omap3_scm.c: In function 'omap3_scm_match':
> src/sys/arch/arm/omap/omap3_scm.c:138:25:
> error: 'SCM_BASE' undeclared (first use in this function)
>   if (obio->obio_addr == SCM_BASE)
> 

Please try after 'cvs update'.

Thanks,
--
kiyohara


Re: CVS commit: src/sys/arch/arm/omap

2016-08-04 Thread KIYOHARA Takashi
Hi!


From: "Jonathan A. Kollasch" 
Date: Thu, 4 Aug 2016 20:07:18 +

> Module Name:  src
> Committed By: jakllsch
> Date: Thu Aug  4 20:07:18 UTC 2016
> 
> Modified Files:
>   src/sys/arch/arm/omap: omap3_sdhc.c
> 
> Log Message:
> TI_DM37xx does not currently have a working omapscm(4), which provides
> omap_devid().  Avoid using omap_devid() until correctly fixed.

Why not attach omapscm?
My Overo EarthSTORM(AM3703) is working with omapscm.  The OVERO supports
OMAP 3503, 3530, DM3730 and AM3703.

Thanks,
--
kiyohara


Re: CVS commit: src/sys/dev/sdmmc

2016-07-04 Thread KIYOHARA Takashi
Hi!


From: Nick Hudson <sk...@netbsd.org>
Date: Mon, 4 Jul 2016 20:34:15 +0100

> On 07/03/16 13:12, KIYOHARA Takashi wrote:
>> Hi!
>>
>> From: Nick Hudson <sk...@netbsd.org>
>> Date: Sun, 3 Jul 2016 12:58:58 +0100
>>
>>> On 07/03/16 12:55, KIYOHARA Takashi wrote:
>>>> Module Name:   src
>>>> Committed By:  kiyohara
>>>> Date:  Sun Jul  3 11:55:27 UTC 2016
>>>>
>>>> Modified Files:
>>>>src/sys/dev/sdmmc: sdhc.c
>>>>
>>>> Log Message:
>>>> Please more delay, if timeout in sdhc_wait_intr().
>>> err, why?
>> i.e. sdmmc(4) first try sdmmc_io_enable().  But MicroSD is not
>> io-card. And detect error.

> why should sdhc_exec_command delay before returning ETIMEDOUT?

I think some of the command was appeared to be based on the assumption the
timeout.  And if time of SDHC_COMMAND_TIMEOUT has passed, I thought that
there is no problem in adding about further 50usec.

Thnaks,
--
kiyohara


Re: CVS commit: src/sys/dev/sdmmc

2016-07-03 Thread KIYOHARA Takashi
Hi!

From: Nick Hudson <sk...@netbsd.org>
Date: Sun, 3 Jul 2016 12:58:58 +0100

> On 07/03/16 12:55, KIYOHARA Takashi wrote:
>> Module Name: src
>> Committed By:kiyohara
>> Date:Sun Jul  3 11:55:27 UTC 2016
>>
>> Modified Files:
>>  src/sys/dev/sdmmc: sdhc.c
>>
>> Log Message:
>> Please more delay, if timeout in sdhc_wait_intr().
> 
> err, why?

i.e. sdmmc(4) first try sdmmc_io_enable().  But MicroSD is not
io-card. And detect error.

Thanks,
--
kiyohara


Re: CVS commit: src/distrib/sets/lists/modules

2014-01-03 Thread KIYOHARA Takashi
Hi! Paul,


From: Paul Goyette pgoye...@netbsd.org
Date: Wed, 1 Jan 2014 16:27:11 +

 Module Name:  src
 Committed By: pgoyette
 Date: Wed Jan  1 16:27:11 UTC 2014
 
 Modified Files:
   src/distrib/sets/lists/modules: md.evbppc mi
 
 Log Message:
 Re-sort
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.40 -r1.41 src/distrib/sets/lists/modules/md.evbppc
 cvs rdiff -u -r1.66 -r1.67 src/distrib/sets/lists/modules/mi
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 

Thanks to your commit.
However I don't know 'solaris'.

Index: md.evbppc
===
RCS file: /cvsroot/src/distrib/sets/lists/modules/md.evbppc,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- md.evbppc   30 Dec 2013 14:17:54 -  1.40
+++ md.evbppc   1 Jan 2014 16:27:10 -   1.41

snip

@@ -397,6 +425,8 @@
 
./stand/powerpc-booke/@OSRELEASE@/modules/secmodel_overlay/secmodel_overlay.kmod
   base-kernel-modules kmod,compatmodules
 ./stand/powerpc-booke/@OSRELEASE@/modules/securelevel  
base-kernel-modules kmod,compatmodules
 ./stand/powerpc-booke/@OSRELEASE@/modules/securelevel/securelevel.kmod 
base-kernel-modules kmod,compatmodules
+./stand/powerpc-booke/@OSRELEASE@/modules/skipjack 
base-kernel-modules kmod,solaris
+./stand/powerpc-booke/@OSRELEASE@/modules/skipjack/skipjack.kmod   
base-kernel-modules kmod,solaris
 ./stand/powerpc-booke/@OSRELEASE@/modules/smbfs
base-kernel-modules kmod,compatmodules
 ./stand/powerpc-booke/@OSRELEASE@/modules/smbfs/smbfs.kmod 
base-kernel-modules kmod,compatmodules
 ./stand/powerpc-booke/@OSRELEASE@/modules/solaris  
base-kernel-modules kmod,solaris


Thanks,
--
kiyohara


Re: CVS commit: src/sys/dev/marvell

2013-08-03 Thread KIYOHARA Takashi
Hi!

From: Radoslaw Kujawa radoslaw.kuj...@c0ff33.net
Date: Sat, 3 Aug 2013 09:46:08 +0200

 On 3 Aug 2013, at 9:39 AM, KIYOHARA Takashi kiyoh...@netbsd.org wrote:
 
  Module Name:src
  Committed By:   kiyohara
  Date:   Sat Aug  3 07:39:31 UTC 2013
  
  Modified Files:
  src/sys/dev/marvell: gttwsi.c gttwsireg.h
  
  Log Message:
  Issue the STOP-bit if needed.
  And remove #ifdef ARMADAXP.
 
 Did you actually test this on Armada?

Yes, I do.
I tested on my OpenBlocks AX3.
Also described STOP-bit on document for Kirkwood.

Thanks,
--
kiyohara


Re: CVS commit: src/sys/arch

2012-12-09 Thread KIYOHARA Takashi
Hi!


From: David Holland dholland-sourcechan...@netbsd.org
Date: Sat, 8 Dec 2012 20:44:32 +

 On Sat, Dec 08, 2012 at 12:36:31PM +, KIYOHARA Takashi wrote:
   Modified Files:
  src/sys/arch/i386/i386: db_interface.c trap.c
  src/sys/arch/x86/x86: bus_dma.c cpu.c platform.c
   
   Log Message:
   #ifdef - #endif-ed. NMCA, NISA, NNPX, NIOAPIC, LAPIC, MPBIOS and 
 MULTIPROCESSOR.
 
 MULTIPROCESSOR is not meant to be optional on x86.

Please think for other x86 machine(e.g. pc98, FM-TOWNS  :).

# Also please create options SMBIOS and LONGRUN.

Thanks,
--
kiyohara


Re: CVS commit: src/sys/arch/evbmips/conf

2012-07-30 Thread KIYOHARA Takashi
Hi!


From: Paul Goyette p...@whooppee.com
Date: Mon, 30 Jul 2012 07:01:10 -0700 (PDT)

 On Mon, 30 Jul 2012, KIYOHARA Takashi wrote:
 
  Module Name:src
  Committed By:   kiyohara
  Date:   Mon Jul 30 13:50:06 UTC 2012
 
  Modified Files:
  src/sys/arch/evbmips/conf: ALCHEMY MALTA
 
  Log Message:
  Enable INET6.  Avoid build failed when enable ipf and disable INET6.
 
 While this might be a stop-gap measure to get the build working, the 
 right action is to fix ipf so it builds without INET6.
 
 I have previously provided patches (attached again here) to fix this, 
 and those fixes have been sent upstream (to darrenr@).  As was already 
 pointed out, my patches should not be committed as-is due to my use of 
 variable initialization in the declaration...  :)

I am waiting for a fix of darrenr@, backout my add-hoc fix.  What is OK?

# Also please fix evbarm...

Thanks,
--
kiyohara
  OPENBLOCKS_A6 comming soon.  :)
  And Psion series 5mx(EPOC32).


Re: CVS commit: src/sys/arch/evbppc

2011-12-12 Thread KIYOHARA Takashi
Hi! Simon,


From: Simon Burge sim...@netbsd.org
Date: Mon, 12 Dec 2011 22:38:59 +1100

 KIYOHARA Takashi wrote:
 
  Module Name:src
  Committed By:   kiyohara
  Date:   Mon Dec 12 11:23:58 UTC 2011
  
  Modified Files:
  
  src/sys/arch/evbppc/explora: autoconf.c
  src/sys/arch/evbppc/obs405: obs200_autoconf.c obs266_autoconf.c
  obs600_autoconf.c
  src/sys/arch/evbppc/virtex: autoconf.c
  src/sys/arch/evbppc/walnut: autoconf.c
  
  Log Message:
  
  Fix hangs-up.  Remove wrteei 1 in board's cpu_configure().  Interrupt
  is enabled in powerpc-layer.
 
 This code is pretty much unchanged for over a decade.  Did the interrupt
 enable code in the powerpc layer change recently?  I'm curious about
 how/why this broke.

http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/powerpc/ibm4xx/Attic/intr.c?only_with_tag=MAIN

Besides, I know ibm4xx cannot boot after support booke(20110118).
But this will improve within a few days.  I, along with some patchs, I
finally board the 405EX (OpenBlockS600) was successfully booted.

Thanks,
--
kiyohara


Re: CVS commit: src/sys/arch/bebox/conf

2010-10-16 Thread KIYOHARA Takashi
Hi! Tsutsui-san,


From: Izumi Tsutsui tsut...@ceres.dti.ne.jp
Date: Sat, 16 Oct 2010 15:38:43 +0900

  Modified Files:
  src/sys/arch/bebox/conf: GENERIC majors.bebox
  :
  Remove mms and lms from majors.bebox.
 
 Please leave comments that these numbers are reserved like i386
 so that we will be able to see if we can (re)use them or not in future.

How should I do?
lms and mms are not scheduled to be supported with bebox.

Thanks,
--
kiyohara


Re: CVS commit: src/sys/arch/arm/omap

2010-09-05 Thread KIYOHARA Takashi
Hi! Adam,


From: Adam Hoka ah...@netbsd.org
Date: Sat, 4 Sep 2010 16:23:48 +

 Module Name:  src
 Committed By: ahoka
 Date: Sat Sep  4 16:23:48 UTC 2010
 
 Modified Files:
   src/sys/arch/arm/omap: omap2_gpmc.c omap2_gpmcvar.h
 
 Log Message:
 Add gpmc_register_read and gpmc_register_write to access registers
 mapped by the gpmc driver (eg.: GPMC_CONFIG, GPMC_STATUS).
 
 The driver should save the parent (gpmc) device's sc pointer
 to be able to use these functions.

I think that I should be able to access it with this function doesn't
have softc.
For instance, u-boot of my Overo doesn't set ethernet.  Therefore, I
operate GPMC_CONFIG7_4 in gxio.c for ethernet.

Thanks,
--
kiyohara


Re: CVS commit: src/sys/arch

2010-06-20 Thread KIYOHARA Takashi
Hi! Matt,


From: Matt Thomas m...@3am-software.com
Date: Sat, 19 Jun 2010 18:28:18 -0700

 
 On Jun 19, 2010, at 1:34 AM, KIYOHARA Takashi wrote:
 
  Hi! Jared,
  
  
  From: Jared D. McNeill jmcne...@netbsd.org
  Date: Wed, 16 Jun 2010 22:06:55 +
  
  Module Name:   src
  Committed By:  jmcneill
  Date:  Wed Jun 16 22:06:54 UTC 2010
  
  Modified Files:
 src/sys/arch/arm/arm: cpufunc.c
 src/sys/arch/arm/arm32: cpu.c db_interface.c pmap.c
 src/sys/arch/arm/conf: files.arm
 src/sys/arch/arm/include: armreg.h cpuconf.h cpufunc.h
 src/sys/arch/arm/include/arm32: pmap.h pte.h
 src/sys/arch/arm/omap: omap2_mputmr.c omap2_obio.c omap2_reg.h
 src/sys/arch/evbarm/beagle: beagle.h beagle_machdep.c beagle_start.S
  Added Files:
 src/sys/arch/arm/arm: cpufunc_asm_armv7.S
 src/sys/arch/arm/arm32: cortexa8_pmc.c
 src/sys/arch/evbarm/conf: IGEPV2 std.igepv2
  
  Log Message:
  PR port-arm/43299: Support added for igepv2/cortexa8/omap3530
  
  Apply patch from PR, with build fixes. ok skrll, matt
  
  Why CPU_CORTEXA8 is ARM_ARCH_6?

...snip...

 Because the patch was a minimum effort to get running.  I had changes to
 it in my tree to use ARM_ARCH_7 and other fixes but my kernels were
 dying.  So rather than commit my stuff, I had Jared commit his, then I
 went through merge hell, and have now committed the better stuff.

OK,
I also will enjoy omap3 with Gumstix Overo in several days.  ;-)

Thanks,
--
kiyohara


Re: CVS commit: src/sys/arch

2010-06-19 Thread KIYOHARA Takashi
Hi! Jared,


From: Jared D. McNeill jmcne...@netbsd.org
Date: Wed, 16 Jun 2010 22:06:55 +

 Module Name:  src
 Committed By: jmcneill
 Date: Wed Jun 16 22:06:54 UTC 2010
 
 Modified Files:
   src/sys/arch/arm/arm: cpufunc.c
   src/sys/arch/arm/arm32: cpu.c db_interface.c pmap.c
   src/sys/arch/arm/conf: files.arm
   src/sys/arch/arm/include: armreg.h cpuconf.h cpufunc.h
   src/sys/arch/arm/include/arm32: pmap.h pte.h
   src/sys/arch/arm/omap: omap2_mputmr.c omap2_obio.c omap2_reg.h
   src/sys/arch/evbarm/beagle: beagle.h beagle_machdep.c beagle_start.S
 Added Files:
   src/sys/arch/arm/arm: cpufunc_asm_armv7.S
   src/sys/arch/arm/arm32: cortexa8_pmc.c
   src/sys/arch/evbarm/conf: IGEPV2 std.igepv2
 
 Log Message:
 PR port-arm/43299: Support added for igepv2/cortexa8/omap3530
 
 Apply patch from PR, with build fixes. ok skrll, matt

Why CPU_CORTEXA8 is ARM_ARCH_6?

http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/arm/include/cpuconf.h.diff?r1=1.16r2=1.17only_with_tag=MAINf=h

Index: cpuconf.h
===
RCS file: /cvsroot/src/sys/arch/arm/include/cpuconf.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- cpuconf.h   27 Feb 2009 03:57:41 -  1.16
+++ cpuconf.h   16 Jun 2010 22:06:53 -  1.17
@@ -119,7 +119,7 @@
 #defineARM_ARCH_5  0
 #endif
 
-#if defined(CPU_ARM11)
+#if defined(CPU_ARM11) || defined(CPU_CORTEXA8)
 #define ARM_ARCH_6 1
 #else
 #define ARM_ARCH_6 0



Cortex-A8 is ARMv7 architecture.

  http://infocenter.arm.com/help/index.jsp
- Cortex-A series processors
  - Cortex-A8
- Revision: r3p2
  - Cortex-A8 Technical Reference Manual
- 1.2. ARMv7-A architecture

There is a possibility that the patch for Gumstix Overo that I made in
old times helps your understanding though I am not well informed about
the ARM architecture.

  ftp://ftp.netbsd.org/pub/NetBSD/misc/kiyohara/gumstix/armv7.diff

Thanks,
--
kiyohara


Re: CVS commit: src/sys/dev/ieee1394

2010-05-24 Thread KIYOHARA Takashi
Hi!


From: Izumi Tsutsui tsut...@ceres.dti.ne.jp
Date: Mon, 24 May 2010 22:08:21 +0900

  Why you revert it all?
 
 Wasn't it broken?

Yes. It knows I was broken, too. However, it worked on my ofppc and
it booted my amd64.


  I had been investigating the problem of kmem since last week.  Was not
 
 There is no reason to leave kernels broken even if
 you have some idea for proper fixes.

In many cases, there is a case that cannot be fixed in several days.  For
instance, MIPS cannot be booted since merge mips64.

Thanks,
--
kiyohara


Re: CVS commit: src/sys/dev/ieee1394

2010-05-23 Thread KIYOHARA Takashi
Hi! Christos,


From: Christos Zoulas chris...@netbsd.org
Date: Sun, 23 May 2010 14:56:59 -0400

 Module Name:  src
 Committed By: christos
 Date: Sun May 23 18:56:59 UTC 2010
 
 Modified Files:
   src/sys/dev/ieee1394: firewire.c firewirereg.h fwdev.c fwdma.c fwmem.c
   fwohci.c fwohcivar.h if_fwip.c sbp.c
 
 Log Message:
 Revert all previous kmem_ commits. This needs to be done in a different way
 because we cannot call kmem_ from an interrupt context. I opened PR/43341 for
 it.

Why you revert it all?
I had been investigating the problem of kmem since last week.  Was not
I reading the message from you?

Thanks,
--
kiyohara


Re: CVS commit: src/sys/dev/ieee1394

2010-04-29 Thread KIYOHARA Takashi
Hi!


From: Adam Hoka adam.h...@gmail.com
Date: Thu, 29 Apr 2010 09:38:31 +0200

 On Thu, 29 Apr 2010 06:56:00 +
 KIYOHARA Takashi kiyoh...@netbsd.org wrote:
 
  Module Name:src
  Committed By:   kiyohara
  Date:   Thu Apr 29 06:56:00 UTC 2010
  
  Modified Files:
  src/sys/dev/ieee1394: fwdma.c
  
  Log Message:
  Call malloc(M_ZERO) instead of malloc() and memset().
 
 Why not kmem_zalloc()?

Oops, I learnt kmem(9) just now.
Also malloc(9) says 'These interfaces are being obsoleted and their new
use is discouraged.' in man-page.

Please wait a few days.  ;-)

Thanks,
--
kiyohara


CVS commit: src/sys/arch/evbppc/conf

2010-03-10 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Wed Mar 10 17:25:21 UTC 2010

Modified Files:
src/sys/arch/evbppc/conf: OPENBLOCKS266

Log Message:
Assorted spelling/capitalization fixes from Igor Sobrado in PR kern/22595.
=


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/sys/arch/evbppc/conf/OPENBLOCKS266

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/evbppc/conf

2010-03-10 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Wed Mar 10 17:25:21 UTC 2010

Modified Files:
src/sys/arch/evbppc/conf: OPENBLOCKS266

Log Message:
Assorted spelling/capitalization fixes from Igor Sobrado in PR kern/22595.
=


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/sys/arch/evbppc/conf/OPENBLOCKS266

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/evbppc/conf/OPENBLOCKS266
diff -u src/sys/arch/evbppc/conf/OPENBLOCKS266:1.46 src/sys/arch/evbppc/conf/OPENBLOCKS266:1.47
--- src/sys/arch/evbppc/conf/OPENBLOCKS266:1.46	Thu Dec 24 09:29:36 2009
+++ src/sys/arch/evbppc/conf/OPENBLOCKS266	Wed Mar 10 17:25:21 2010
@@ -1,4 +1,4 @@
-#	$NetBSD: OPENBLOCKS266,v 1.46 2009/12/24 09:29:36 kiyohara Exp $
+#	$NetBSD: OPENBLOCKS266,v 1.47 2010/03/10 17:25:21 kiyohara Exp $
 #
 #	GENERIC -- everything that's currently supported
 #
@@ -7,7 +7,7 @@
 
 #options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
 
-#ident 		OPENBLOCKS266-$Revision: 1.46 $
+#ident 		OPENBLOCKS266-$Revision: 1.47 $
 
 maxusers	32
 
@@ -114,7 +114,7 @@
 
 options 	GATEWAY		# packet forwarding
 options 	INET		# IP + ICMP + TCP + UDP
-options 	INET6		# IPV6
+options 	INET6		# IPv6
 #options 	IPSEC		# IP security
 #options 	IPSEC_ESP	# IP security (encryption part; define w/IPSEC)
 #options 	IPSEC_NAT_T	# IPsec NAT traversal (NAT-T)
@@ -209,8 +209,8 @@
 pseudo-device	tap			# virtual ethernet
 pseudo-device	tun			# network tunneling over tty
 pseudo-device	gre			# generic L3 over IP tunnel
-pseudo-device	gif			# IPv[46] over IPv[46] tunnel (RFC1933)
-#pseudo-device	faith			# IPv[46] tcp relay translation i/f
+pseudo-device	gif			# IPv[46] over IPv[46] tunnel (RFC 1933)
+#pseudo-device	faith			# IPv[46] TCP relay translation i/f
 pseudo-device	stf			# 6to4 IPv6 over IPv4 encapsulation
 pseudo-device	vlan			# IEEE 802.1q encapsulation
 pseudo-device	bridge			# simple inter-network bridging



CVS commit: src/sys/arch/ofppc/ofppc

2010-03-10 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Wed Mar 10 18:06:57 UTC 2010

Modified Files:
src/sys/arch/ofppc/ofppc: locore.S machdep.c mainbus.c

Log Message:
Remove white-spaces.
Indent.


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/sys/arch/ofppc/ofppc/locore.S
cvs rdiff -u -r1.110 -r1.111 src/sys/arch/ofppc/ofppc/machdep.c
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/ofppc/ofppc/mainbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/ofppc/ofppc

2010-03-10 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Wed Mar 10 18:06:57 UTC 2010

Modified Files:
src/sys/arch/ofppc/ofppc: locore.S machdep.c mainbus.c

Log Message:
Remove white-spaces.
Indent.


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/sys/arch/ofppc/ofppc/locore.S
cvs rdiff -u -r1.110 -r1.111 src/sys/arch/ofppc/ofppc/machdep.c
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/ofppc/ofppc/mainbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/ofppc/ofppc/locore.S
diff -u src/sys/arch/ofppc/ofppc/locore.S:1.43 src/sys/arch/ofppc/ofppc/locore.S:1.44
--- src/sys/arch/ofppc/ofppc/locore.S:1.43	Thu Feb 25 23:33:45 2010
+++ src/sys/arch/ofppc/ofppc/locore.S	Wed Mar 10 18:06:57 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: locore.S,v 1.43 2010/02/25 23:33:45 matt Exp $	*/
+/*	$NetBSD: locore.S,v 1.44 2010/03/10 18:06:57 kiyohara Exp $	*/
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -129,7 +129,7 @@
 	bl	_C_LABEL(initppc)
 	bl	_C_LABEL(main)
 	b	_C_LABEL(OF_exit)
-	
+
 /*
  * Pull in common OFW code.
  */

Index: src/sys/arch/ofppc/ofppc/machdep.c
diff -u src/sys/arch/ofppc/ofppc/machdep.c:1.110 src/sys/arch/ofppc/ofppc/machdep.c:1.111
--- src/sys/arch/ofppc/ofppc/machdep.c:1.110	Thu Feb 25 23:33:45 2010
+++ src/sys/arch/ofppc/ofppc/machdep.c	Wed Mar 10 18:06:57 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.110 2010/02/25 23:33:45 matt Exp $	*/
+/*	$NetBSD: machdep.c,v 1.111 2010/03/10 18:06:57 kiyohara Exp $	*/
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -29,7 +29,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: machdep.c,v 1.110 2010/02/25 23:33:45 matt Exp $);
+__KERNEL_RCSID(0, $NetBSD: machdep.c,v 1.111 2010/03/10 18:06:57 kiyohara Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -391,7 +391,8 @@
 	}
 	if (!of_to_uint32_prop(dict, node, address, address)) {
 		uint32_t fbaddr = 0;
-			OF_interpret(frame-buffer-adr, 0, 1, fbaddr);
+
+		OF_interpret(frame-buffer-adr, 0, 1, fbaddr);
 		if (fbaddr != 0)
 			prop_dictionary_set_uint32(dict, address, fbaddr);
 	}

Index: src/sys/arch/ofppc/ofppc/mainbus.c
diff -u src/sys/arch/ofppc/ofppc/mainbus.c:1.24 src/sys/arch/ofppc/ofppc/mainbus.c:1.25
--- src/sys/arch/ofppc/ofppc/mainbus.c:1.24	Fri Jan 15 20:57:25 2010
+++ src/sys/arch/ofppc/ofppc/mainbus.c	Wed Mar 10 18:06:57 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: mainbus.c,v 1.24 2010/01/15 20:57:25 phx Exp $	*/
+/*	$NetBSD: mainbus.c,v 1.25 2010/03/10 18:06:57 kiyohara Exp $	*/
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: mainbus.c,v 1.24 2010/01/15 20:57:25 phx Exp $);
+__KERNEL_RCSID(0, $NetBSD: mainbus.c,v 1.25 2010/03/10 18:06:57 kiyohara Exp $);
 
 #include opt_interrupt.h
 #include opt_multiprocessor.h
@@ -152,7 +152,7 @@
 	if (len  sizeof(int)*2)
 		return FALSE;
 
-	if (len == sizeof(int)*2) {	
+	if (len == sizeof(int)*2) {
 		baseaddr = (unsigned char *)mapiodev(reg[0], reg[1]);
 		aprint_verbose(Found openpic at %08x\n, reg[0]);
 #ifdef PIC_OPENPIC
@@ -179,7 +179,7 @@
 		return FALSE;
 	if (i  OPENPIC_MAX_ISUS)
 		aprint_error(Increase OPENPIC_MAX_ISUS to %d\n, i);
-	
+
 	baseaddr = (unsigned char *)mapiodev(reg[0], 0x4);
 	aprint_verbose(Found openpic at %08x\n, reg[0]);
 



CVS commit: src/sys/arch/ofppc/ofppc

2010-03-10 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Wed Mar 10 18:18:47 UTC 2010

Modified Files:
src/sys/arch/ofppc/ofppc: machdep.c

Log Message:
Remove unnecessary function declarations.


To generate a diff of this commit:
cvs rdiff -u -r1.111 -r1.112 src/sys/arch/ofppc/ofppc/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/ofppc/ofppc/machdep.c
diff -u src/sys/arch/ofppc/ofppc/machdep.c:1.111 src/sys/arch/ofppc/ofppc/machdep.c:1.112
--- src/sys/arch/ofppc/ofppc/machdep.c:1.111	Wed Mar 10 18:06:57 2010
+++ src/sys/arch/ofppc/ofppc/machdep.c	Wed Mar 10 18:18:47 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.111 2010/03/10 18:06:57 kiyohara Exp $	*/
+/*	$NetBSD: machdep.c,v 1.112 2010/03/10 18:18:47 kiyohara Exp $	*/
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -29,7 +29,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: machdep.c,v 1.111 2010/03/10 18:06:57 kiyohara Exp $);
+__KERNEL_RCSID(0, $NetBSD: machdep.c,v 1.112 2010/03/10 18:18:47 kiyohara Exp $);
 
 #include sys/param.h
 #include sys/systm.h
@@ -68,9 +68,6 @@
 struct pmap ofw_pmap;
 char bootpath[256];
 
-void ofwppc_batinit(void);
-void ofppc_bootstrap_console(void);
-
 extern u_int l2cr_config;
 #if (NRTAS  0)
 extern int machine_has_rtas;



CVS commit: src/sys/arch/ofppc/ofppc

2010-03-10 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Wed Mar 10 18:18:47 UTC 2010

Modified Files:
src/sys/arch/ofppc/ofppc: machdep.c

Log Message:
Remove unnecessary function declarations.


To generate a diff of this commit:
cvs rdiff -u -r1.111 -r1.112 src/sys/arch/ofppc/ofppc/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/pic

2010-03-10 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Wed Mar 10 18:28:30 UTC 2010

Modified Files:
src/sys/arch/powerpc/pic: intr.c

Log Message:
Remove white-spaces.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/powerpc/pic/intr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/powerpc/pic/intr.c
diff -u src/sys/arch/powerpc/pic/intr.c:1.6 src/sys/arch/powerpc/pic/intr.c:1.7
--- src/sys/arch/powerpc/pic/intr.c:1.6	Tue Apr 29 06:53:02 2008
+++ src/sys/arch/powerpc/pic/intr.c	Wed Mar 10 18:28:30 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: intr.c,v 1.6 2008/04/29 06:53:02 martin Exp $ */
+/*	$NetBSD: intr.c,v 1.7 2010/03/10 18:28:30 kiyohara Exp $ */
 
 /*-
  * Copyright (c) 2007 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include sys/cdefs.h
-__KERNEL_RCSID(0, $NetBSD: intr.c,v 1.6 2008/04/29 06:53:02 martin Exp $);
+__KERNEL_RCSID(0, $NetBSD: intr.c,v 1.7 2010/03/10 18:28:30 kiyohara Exp $);
 
 #include opt_multiprocessor.h
 
@@ -94,7 +94,7 @@
 	pic-pic_intrbase = max_base;
 	max_base += pic-pic_numintrs;
 	num_pics++;
-	
+
 	return pic-pic_intrbase;
 }
 
@@ -399,7 +399,7 @@
 	/* IPL_SERIAL must block IPL_TTY */
 	imask[IPL_SERIAL] |= imask[IPL_TTY];
 
-	/* IPL_HIGH must block all other priority levels */	
+	/* IPL_HIGH must block all other priority levels */
 	for (i = IPL_NONE; i  IPL_HIGH; i++)
 		imask[IPL_HIGH] |= imask[i];
 #else	/* !SLOPPY_IPLS */
@@ -431,7 +431,7 @@
 		for (i = 0; i  current-pic_numintrs; i++)
 			current-pic_disable_irq(current, i);
 	}
-	
+
 	for (irq = 0, is = intrsources; irq  NVIRQ; irq++, is++) {
 		if (is-is_hand)
 			pic_enable_irq(is-is_hwirq);
@@ -459,13 +459,13 @@
 
 	v = virq[irq];
 	if (v == 0)
-		printf(IRQ %d maps to 0\n, irq);	
+		printf(IRQ %d maps to 0\n, irq);
 
 	msr = mfmsr();
 	mtmsr(msr  ~PSL_EE);
 	ci-ci_ipending |= 1  v;
 	mtmsr(msr);
-}	
+}
 
 void
 pic_do_pending_int(void)
@@ -624,7 +624,7 @@
 		/* this interrupt is no longer pending */
 		ci-ci_ipending = ~r_imen;
 		ci-ci_idepth++;
-		
+
 		splraise(is-is_mask);
 		mtmsr(msr | PSL_EE);
 		ih = is-is_hand;
@@ -645,7 +645,7 @@
 		}
 		mtmsr(msr);
 		ci-ci_cpl = pcpl;
-		
+
 		uvmexp.intrs++;
 		is-is_ev.ev_count++;
 		ci-ci_idepth--;
@@ -683,7 +683,7 @@
 	int ocpl;
 
 	__asm volatile(sync; eieio);	/* don't reorder */
-	
+
 	ocpl = ci-ci_cpl;
 	ci-ci_cpl = ocpl | ncpl;
 	__asm volatile(sync; eieio);	/* reorder protect */
@@ -694,7 +694,7 @@
 splx(int ncpl)
 {
 	struct cpu_info *ci = curcpu();
-	
+
 	__asm volatile(sync; eieio);	/* reorder protect */
 	ci-ci_cpl = ncpl;
 	if (ci-ci_ipending  ~ncpl)



CVS commit: src/sys/arch/powerpc/pic

2010-03-10 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Wed Mar 10 18:28:30 UTC 2010

Modified Files:
src/sys/arch/powerpc/pic: intr.c

Log Message:
Remove white-spaces.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/powerpc/pic/intr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/powerpc/oea

2010-03-10 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Wed Mar 10 18:36:05 UTC 2010

Modified Files:
src/sys/arch/powerpc/oea: ofw_consinit.c ofw_rascons.c ofwoea_machdep.c

Log Message:
Remove white-spaces.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/powerpc/oea/ofw_consinit.c
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/powerpc/oea/ofw_rascons.c
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/powerpc/oea/ofwoea_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/btattach

2010-03-08 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Mon Mar  8 17:41:11 UTC 2010

Modified Files:
src/usr.sbin/btattach: btattach.c

Log Message:
Add options 'no parity'(-P) and 'disable flow control'(-F).
Also default enable parity for bcsp.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/usr.sbin/btattach/btattach.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/btattach/btattach.c
diff -u src/usr.sbin/btattach/btattach.c:1.6 src/usr.sbin/btattach/btattach.c:1.7
--- src/usr.sbin/btattach/btattach.c:1.6	Wed Feb 17 09:49:41 2010
+++ src/usr.sbin/btattach/btattach.c	Mon Mar  8 17:41:11 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: btattach.c,v 1.6 2010/02/17 09:49:41 plunky Exp $	*/
+/*	$NetBSD: btattach.c,v 1.7 2010/03/08 17:41:11 kiyohara Exp $	*/
 
 /*-
  * Copyright (c) 2008 Iain Hibbert
@@ -27,7 +27,7 @@
 
 #include sys/cdefs.h
 __COPYRIGHT(@(#) Copyright (c) 2008 Iain Hibbert.  All rights reserved.);
-__RCSID($NetBSD: btattach.c,v 1.6 2010/02/17 09:49:41 plunky Exp $);
+__RCSID($NetBSD: btattach.c,v 1.7 2010/03/08 17:41:11 kiyohara Exp $);
 
 #include sys/ioctl.h
 #include sys/param.h
@@ -64,7 +64,7 @@
 	.name = bcsp,
 	.line = bcsp,
 	.descr = Generic BlueCore Serial Protocol,
-	.cflag = CRTSCTS,
+	.cflag = CRTSCTS | PARENB,
 	.speed = B57600,
 },
 {
@@ -150,21 +150,26 @@
 	const struct devtype *type;
 	struct termios tio;
 	unsigned int init_speed, speed;
-	tcflag_t cflag;
+	tcflag_t cflag, Cflag;
 	int fd, ch, i;
 	const char *name;
 	char *ptr;
 
 	init_speed = 0;
 	cflag = CLOCAL;
+	Cflag = 0;
 	name = btuart;
 
-	while ((ch = getopt(argc, argv, dfi:op)) != -1) {
+	while ((ch = getopt(argc, argv, dFfi:oPp)) != -1) {
 		switch (ch) {
 		case 'd':
 			opt_debug++;
 			break;
 
+		case 'F':
+			Cflag |= CRTSCTS;
+			break;
+
 		case 'f':
 			cflag |= CRTSCTS;
 			break;
@@ -180,6 +185,10 @@
 			cflag |= (PARENB | PARODD);
 			break;
 
+		case 'P':
+			Cflag |= PARENB;
+			break;
+
 		case 'p':
 			cflag |= PARENB;
 			break;
@@ -228,6 +237,7 @@
 
 	cfmakeraw(tio);
 	tio.c_cflag |= (cflag | type-cflag);
+	tio.c_cflag = ~Cflag;
 
 	if (cfsetspeed(tio, init_speed)  0
 	|| tcsetattr(fd, TCSANOW, tio)  0
@@ -276,13 +286,15 @@
 	size_t i;
 
 	fprintf(stderr,
-		Usage: %s [-dfop] [-i speed] [type] tty speed\n
+		Usage: %s [-dFfoPp] [-i speed] [type] tty speed\n
 		\n
 		Where:\n
 		\t-d  debug mode (no detach, dump io)\n
+		\t-F  disable flow control\n
 		\t-f  enable flow control\n
 		\t-i speedinit speed\n
 		\t-o  odd parity\n
+		\t-P  no parity\n
 		\t-p  even parity\n
 		\n
 		Known types:\n



CVS commit: src/usr.sbin/btattach

2010-03-08 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Mon Mar  8 17:41:11 UTC 2010

Modified Files:
src/usr.sbin/btattach: btattach.c

Log Message:
Add options 'no parity'(-P) and 'disable flow control'(-F).
Also default enable parity for bcsp.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/usr.sbin/btattach/btattach.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/btattach

2010-03-08 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Mon Mar  8 17:59:52 UTC 2010

Modified Files:
src/usr.sbin/btattach: btattach.c

Log Message:
Add option 'test mode'(-t).
  Can test your Bluetooth module via com-port.
  This mode guess speed for bcsp(4) or btuart(4), if not respond.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/usr.sbin/btattach/btattach.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/evbarm

2010-03-07 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Sun Mar  7 09:18:51 UTC 2010

Modified Files:
src/sys/arch/evbarm/conf: GUMSTIX files.gumstix
src/sys/arch/evbarm/gumstix: gumstix_machdep.c

Log Message:
Add options GUMSTIX_NETBSD_ARGS_CONSOLE and GUMSTIX_NETBSD_ARGS_BUSHEADER.
  Can specify arg 'console='(*new*) and 'busheader=' from u-boot.  These args
  use dynamically configuration.
Also change function name.  s/_line/_liner/.


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/sys/arch/evbarm/conf/GUMSTIX
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/evbarm/conf/files.gumstix
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/evbarm/gumstix/gumstix_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/evbarm

2010-03-07 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Sun Mar  7 09:18:51 UTC 2010

Modified Files:
src/sys/arch/evbarm/conf: GUMSTIX files.gumstix
src/sys/arch/evbarm/gumstix: gumstix_machdep.c

Log Message:
Add options GUMSTIX_NETBSD_ARGS_CONSOLE and GUMSTIX_NETBSD_ARGS_BUSHEADER.
  Can specify arg 'console='(*new*) and 'busheader=' from u-boot.  These args
  use dynamically configuration.
Also change function name.  s/_line/_liner/.


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/sys/arch/evbarm/conf/GUMSTIX
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/evbarm/conf/files.gumstix
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/evbarm/gumstix/gumstix_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/evbarm/conf/GUMSTIX
diff -u src/sys/arch/evbarm/conf/GUMSTIX:1.44 src/sys/arch/evbarm/conf/GUMSTIX:1.45
--- src/sys/arch/evbarm/conf/GUMSTIX:1.44	Sun Mar  7 07:33:29 2010
+++ src/sys/arch/evbarm/conf/GUMSTIX	Sun Mar  7 09:18:51 2010
@@ -1,4 +1,4 @@
-#	$NetBSD: GUMSTIX,v 1.44 2010/03/07 07:33:29 kiyohara Exp $
+#	$NetBSD: GUMSTIX,v 1.45 2010/03/07 09:18:51 kiyohara Exp $
 #
 #	GUMSTIX -- Gumstix. Inc. gumstix platforms kernel
 #
@@ -22,6 +22,12 @@
 #options 	XSCALE_CACHE_WRITE_THROUGH
 options 	XSCALE_CACHE_READ_WRITE_ALLOCATE
 
+# Gumstix options
+# if not specfied 'busheader=' in args from u-boot, use GXIO_DEFAULT_EXPANSION.
+options 	GUMSTIX_NETBSD_ARGS_BUSHEADER
+options 	GUMSTIX_NETBSD_ARGS_CONSOLE	# dynamically configure console
+		# 'console=lcd' or ffuart,stuart
+
 # Standard system options
 
 options 	RTC_OFFSET=0	# hardware clock is this many mins. west of GMT

Index: src/sys/arch/evbarm/conf/files.gumstix
diff -u src/sys/arch/evbarm/conf/files.gumstix:1.14 src/sys/arch/evbarm/conf/files.gumstix:1.15
--- src/sys/arch/evbarm/conf/files.gumstix:1.14	Sun Aug  9 07:10:13 2009
+++ src/sys/arch/evbarm/conf/files.gumstix	Sun Mar  7 09:18:51 2010
@@ -1,9 +1,11 @@
-#	$NetBSD: files.gumstix,v 1.14 2009/08/09 07:10:13 kiyohara Exp $
+#	$NetBSD: files.gumstix,v 1.15 2010/03/07 09:18:51 kiyohara Exp $
 #
 # Gumstix. Inc. Gumstix boards configuration info
 #
 
 file	arch/evbarm/gumstix/gumstix_machdep.c
+defflag opt_gumstix.hGUMSTIX_NETBSD_ARGS_BUSHEADER
+		GUMSTIX_NETBSD_ARGS_CONSOLE
 
 # CPU support and integrated peripherals
 include arch/arm/xscale/files.pxa2x0

Index: src/sys/arch/evbarm/gumstix/gumstix_machdep.c
diff -u src/sys/arch/evbarm/gumstix/gumstix_machdep.c:1.24 src/sys/arch/evbarm/gumstix/gumstix_machdep.c:1.25
--- src/sys/arch/evbarm/gumstix/gumstix_machdep.c:1.24	Sun Jan 24 03:46:48 2010
+++ src/sys/arch/evbarm/gumstix/gumstix_machdep.c	Sun Mar  7 09:18:51 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: gumstix_machdep.c,v 1.24 2010/01/24 03:46:48 kiyohara Exp $ */
+/*	$NetBSD: gumstix_machdep.c,v 1.25 2010/03/07 09:18:51 kiyohara Exp $ */
 /*
  * Copyright (C) 2005, 2006, 2007  WIDE Project and SOUM Corporation.
  * All rights reserved.
@@ -137,6 +137,7 @@
  * boards using RedBoot firmware.
  */
 
+#include opt_gumstix.h
 #include opt_ddb.h
 #include opt_kgdb.h
 #include opt_pmap_debug.h
@@ -257,7 +258,7 @@
 /* Prototypes */
 static void	read_system_serial(void);
 static void	process_kernel_args(int, char *[]);
-static void	process_kernel_args_line(char *);
+static void	process_kernel_args_liner(char *);
 #ifdef KGDB
 static void	kgdb_port_init(void);
 #endif
@@ -282,6 +283,10 @@
 int comcnspeed = CONSPEED;
 int comcnmode = CONMODE;
 
+#ifdef GUMSTIX_NETBSD_ARGS_CONSOLE
+static char console[16];
+#endif
+
 extern void gxio_config_pin(void);
 extern void gxio_config_expansion(char *);
 
@@ -351,8 +356,7 @@
 	/*NOTREACHED*/
 }
 
-static inline
-pd_entry_t *
+static inline pd_entry_t *
 read_ttb(void)
 {
   long ttb;
@@ -501,17 +505,13 @@
 
 	pxa2x0_clkman_bootstrap(GUMSTIX_CLKMAN_VBASE);
 
+#ifndef GUMSTIX_NETBSD_ARGS_CONSOLE
 	consinit();
+#endif
 #ifdef KGDB
 	kgdb_port_init();
 #endif
 
-	/* Talk to the user */
-	printf(\nNetBSD/evbarm (gumstix) booting ...\n);
-
-	/* Read system serial */
-	read_system_serial();
-
 /*
 	 * Examine the boot args string for options we need to know about
 	 * now.
@@ -526,7 +526,16 @@
 		 * Maybe r3 is 'boot args string' of 'bootm'.  This string is
 		 * linely.
 		 */
-		process_kernel_args_line((char *)u_boot_args[r3]);
+		process_kernel_args_liner((char *)u_boot_args[r3]);
+#ifdef GUMSTIX_NETBSD_ARGS_CONSOLE
+	consinit();
+#endif
+
+	/* Talk to the user */
+	printf(\nNetBSD/evbarm (gumstix) booting ...\n);
+
+	/* Read system serial */
+	read_system_serial();
 
 	memstart = SDRAM_START;
 	memsize = ram_size;
@@ -939,7 +948,12 @@
 	printf(\n);
 }
 
+#ifdef GUMSTIX_NETBSD_ARGS_BUSHEADER
 static const char busheader_name[] = busheader=;
+#endif
+#ifdef GUMSTIX_NETBSD_ARGS_CONSOLE
+static const char console_name[] = console=;
+#endif
 static void
 process_kernel_args(int argc, char *argv[])
 {
@@ -948,12 +962,21 @@
 	

CVS commit: src/sys/arch/evbarm/gumstix

2010-03-07 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Sun Mar  7 09:29:26 UTC 2010

Modified Files:
src/sys/arch/evbarm/gumstix: gumstix_machdep.c

Log Message:
Reorder included headers.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/evbarm/gumstix/gumstix_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/evbarm/gumstix/gumstix_machdep.c
diff -u src/sys/arch/evbarm/gumstix/gumstix_machdep.c:1.25 src/sys/arch/evbarm/gumstix/gumstix_machdep.c:1.26
--- src/sys/arch/evbarm/gumstix/gumstix_machdep.c:1.25	Sun Mar  7 09:18:51 2010
+++ src/sys/arch/evbarm/gumstix/gumstix_machdep.c	Sun Mar  7 09:29:26 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: gumstix_machdep.c,v 1.25 2010/03/07 09:18:51 kiyohara Exp $ */
+/*	$NetBSD: gumstix_machdep.c,v 1.26 2010/03/07 09:29:26 kiyohara Exp $ */
 /*
  * Copyright (C) 2005, 2006, 2007  WIDE Project and SOUM Corporation.
  * All rights reserved.
@@ -147,43 +147,42 @@
 #include md.h
 
 #include sys/param.h
+#include sys/conf.h
 #include sys/device.h
-#include sys/systm.h
-#include sys/kernel.h
 #include sys/exec.h
-#include sys/proc.h
+#include sys/kernel.h
+#include sys/ksyms.h
 #include sys/msgbuf.h
+#include sys/proc.h
 #include sys/reboot.h
+#include sys/systm.h
 #include sys/termios.h
-#include sys/ksyms.h
-
-#include uvm/uvm_extern.h
-
-#include sys/conf.h
-#include dev/cons.h
-#include dev/md.h
-
-#include machine/db_machdep.h
-#include ddb/db_sym.h
-#include ddb/db_extern.h
-#ifdef KGDB
-#include sys/kgdb.h
-#endif
 
 #include machine/bootconfig.h
 #include machine/bus.h
 #include machine/cpu.h
+#include machine/db_machdep.h
 #include machine/frame.h
-#include arm/undefined.h
 
 #include arm/arm32/machdep.h
-
+#include arm/undefined.h
 #include arm/xscale/pxa2x0reg.h
 #include arm/xscale/pxa2x0var.h
 #include arm/xscale/pxa2x0_gpio.h
 #include evbarm/gumstix/gumstixreg.h
 #include evbarm/gumstix/gumstixvar.h
 
+#include uvm/uvm_extern.h
+
+#include dev/cons.h
+#include dev/md.h
+
+#include ddb/db_sym.h
+#include ddb/db_extern.h
+#ifdef KGDB
+#include sys/kgdb.h
+#endif
+
 /* Kernel text starts 2MB in from the bottom of the kernel address space. */
 #define	KERNEL_TEXT_BASE	(KERNEL_BASE + 0x0020)
 #ifndef KERNEL_VM_BASE



CVS commit: src/sys/arch/evbarm/gumstix

2010-03-07 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Sun Mar  7 09:29:26 UTC 2010

Modified Files:
src/sys/arch/evbarm/gumstix: gumstix_machdep.c

Log Message:
Reorder included headers.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/evbarm/gumstix/gumstix_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/evbarm/conf

2010-03-06 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Sun Mar  7 07:33:30 UTC 2010

Modified Files:
src/sys/arch/evbarm/conf: GUMSTIX

Log Message:
Assorted spelling/capitalization fixes from Igor Sobrado in PR kern/22595.


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/sys/arch/evbarm/conf/GUMSTIX

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/ia64/include

2010-02-16 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Wed Feb 17 06:06:50 UTC 2010

Modified Files:
src/sys/arch/ia64/include: proc.h

Log Message:
Fix type missmatch.
  forgot to commit since change ia64/syscall.c,1.5.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/ia64/include/proc.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/evbarm/gumstix

2010-01-23 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Sun Jan 24 03:46:48 UTC 2010

Modified Files:
src/sys/arch/evbarm/gumstix: gumstix_machdep.c

Log Message:
Please calculate KERNEL_PT_KERNEL_NUM from KERNEL_VM_BASE.
Moreover, can define KERNEL_VM_BASE somewhere. (ex. in conf/YOUR_GUMSTIX)
  For instance, allow miniroot.fs over 16Mbytes.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/arch/evbarm/gumstix/gumstix_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/ia64/ia64

2010-01-22 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Sat Jan 23 06:13:20 UTC 2010

Modified Files:
src/sys/arch/ia64/ia64: mainbus.c

Log Message:
Switch to ACPICA 20090730, and update for API changes.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/ia64/ia64/mainbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/ia64/ia64

2010-01-22 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Sat Jan 23 06:20:32 UTC 2010

Modified Files:
src/sys/arch/ia64/ia64: syscall.c

Log Message:
Initialize md_syscall in syscall_intern().  But the md_syscall of ia64 not
support yet.
And remove white-space.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/ia64/ia64/syscall.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/crunch/crunchgen

2010-01-08 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Sat Jan  9 06:37:57 UTC 2010

Modified Files:
src/usr.bin/crunch/crunchgen: crunchgen.c

Log Message:
Fix a bug.
  always mkdir for 'objs' and 'objdir' when NEW_TOOLCHAIN.


To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 src/usr.bin/crunch/crunchgen/crunchgen.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/evbarm/conf

2010-01-03 Thread KIYOHARA Takashi
Module Name:src
Committed By:   kiyohara
Date:   Sun Jan  3 09:52:17 UTC 2010

Modified Files:
src/sys/arch/evbarm/conf: GUMSTIX

Log Message:
Add udl(4).  Tested on verdex-pro and LCD-8000U.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/arch/evbarm/conf/GUMSTIX

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Re: CVS commit: src/sys/arch/hpcsh/dev

2009-12-23 Thread KIYOHARA Takashi
Hi! Valeriy and Bernd,


From: Valeriy E. Ushakov u...@stderr.spb.ru
Date: Sat, 19 Dec 2009 17:07:31 +0300

 On Sat, Dec 19, 2009 at 07:08:23 +, KIYOHARA Takashi wrote:
 
  Module Name:src
  Committed By:   kiyohara
  Date:   Sat Dec 19 07:08:23 UTC 2009
  
  Modified Files:
  src/sys/arch/hpcsh/dev: psh3tp.c
  
  Log Message:
  http://mail-index.netbsd.org/source-changes/2009/04/05/msg219234.html
 
 Please, fix this and (the other two) log messages to be
 self-contained.

Fixed.

Thanks Valeriy and Bernd,
--
kiyohara


Re: CVS commit: src/sys/arch/hpcsh/dev

2009-12-19 Thread KIYOHARA Takashi
Hi!


From: Valeriy E. Ushakov u...@stderr.spb.ru
Date: Sat, 19 Dec 2009 17:07:31 +0300

 On Sat, Dec 19, 2009 at 07:08:23 +, KIYOHARA Takashi wrote:
 
  Module Name:src
  Committed By:   kiyohara
  Date:   Sat Dec 19 07:08:23 UTC 2009
  
  Modified Files:
  src/sys/arch/hpcsh/dev: psh3tp.c
  
  Log Message:
  http://mail-index.netbsd.org/source-changes/2009/04/05/msg219234.html
 
 Please, fix this and (the other two) log messages to be
 self-contained.
 
 SY, Uwe
 -- 
 u...@stderr.spb.ru   |   Zu Grunde kommen
 http://snark.ptc.spbu.ru/~uwe/  |   Ist zu Grunde gehen

What do you better log-message?

Thanks,
--
kiyohara


Re: CVS commit: src/sys/arch/ia64/stand/ia64/ski

2009-11-10 Thread KIYOHARA Takashi
Hi!


From: Christoph Egger christoph_eg...@gmx.de
Date: Tue, 10 Nov 2009 12:19:15 +0100

 
  Module Name:src
  Committed By:   kiyohara
  Date:   Tue Nov 10 11:14:48 UTC 2009
  
  Modified Files:
  src/sys/arch/ia64/stand/ia64/ski: acpi_stub.c
  
  Log Message:
  Fix build failure.
acpi.h moves to external/intel-public/acpica/dist/include/.
  
 
 Shouldn't this include dev/acpi/acpica.h instead ?

Fixed.

Thanks,
--
kiyohara