From owner-oskit-users@fast.cs.utah.edu  Wed Jan  1 12:41:13 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id MAA28896
	for oskit-users-hidden-out; Wed, 1 Jan 2003 12:41:13 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from neura.ddavies.net (h0020781885a9.ne.client2.attbi.com [24.61.133.41])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id MAA28891
	for <oskit-users@flux.cs.utah.edu>; Wed, 1 Jan 2003 12:41:11 -0700 (MST)
Received: from ddavies by neura.ddavies.net with local (Exim 3.36 #1 (Debian))
	id 18TojC-0002UA-00; Wed, 01 Jan 2003 14:40:34 -0500
From: Derek L Davies <ddavies@ddavies.net>
To: bug-hurd@gnu.org, oskit-users@fast.cs.utah.edu
Subject: OSKit Entropy Patch
Reply-to: ddavies@ddavies.net
Message-Id: <E18TojC-0002UA-00@neura.ddavies.net>
Date: Wed, 01 Jan 2003 14:40:34 -0500
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk


I put up a page with a patch that adds the Linux 2.2.12 entropy driver
to the OSKit St. Patrick's day release:

  http://www.ddavies.net/oskit-entropy/index.html

Please try it out if you can.  Any feedback would be appreciated.

(Also, I have random patches for building on NetBSD 1.5.3 that I'll
send along soon).

Thanks,
Derek


From owner-oskit-users@fast.cs.utah.edu  Thu Jan  2 10:08:00 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id KAA08162
	for oskit-users-hidden-out; Thu, 2 Jan 2003 10:08:00 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from neura.ddavies.net (h0020781885a9.ne.client2.attbi.com [24.61.133.41])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id KAA08157
	for <oskit-users@flux.cs.utah.edu>; Thu, 2 Jan 2003 10:07:48 -0700 (MST)
Received: from ddavies by neura.ddavies.net with local (Exim 3.36 #1 (Debian))
	id 18U8oh-0002qm-00; Thu, 02 Jan 2003 12:07:35 -0500
To: bug-hurd@gnu.org, debian-hurd@lists.debian.org,
        oskit-users@fast.cs.utah.edu
Subject: Re: OSKit Entropy Patch
References: <E18TojC-0002UA-00@neura.ddavies.net>
From: Derek L Davies <ddavies@ddavies.net>
Date: 02 Jan 2003 12:07:35 -0500
In-Reply-To: <E18TojC-0002UA-00@neura.ddavies.net>
Message-ID: <87znqj8oq0.fsf@neura.ddavies.net>
Lines: 24
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk


Er, that patch I posted yesterday wasn't right.  I think I've got it
right now :)  Sorry for the error.

Thanks,
Derek

Derek L Davies <ddavies@ddavies.net> writes:

> I put up a page with a patch that adds the Linux 2.2.12 entropy driver
> to the OSKit St. Patrick's day release:
> 
>   http://www.ddavies.net/oskit-entropy/index.html
> 
> Please try it out if you can.  Any feedback would be appreciated.
> 
> (Also, I have random patches for building on NetBSD 1.5.3 that I'll
> send along soon).
> 
> Thanks,
> Derek
> 

-- 

From owner-oskit-users@fast.cs.utah.edu  Sat Jan  4 15:42:09 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id PAA01578
	for oskit-users-hidden-out; Sat, 4 Jan 2003 15:42:09 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from shmatey.ddavies.net (h0020781885a9.ne.client2.attbi.com [24.61.133.41])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id PAA01573
	for <oskit-users@fast.cs.utah.edu>; Sat, 4 Jan 2003 15:42:06 -0700 (MST)
Received: from ddavies by shmatey.ddavies.net with local (Exim 3.36 #1 (Debian))
	id 18Ux2D-00004i-00; Sat, 04 Jan 2003 17:44:53 -0500
To: Joachim Nilsson <joachim.nilsson@vmlinux.org>
Cc: OSKit Users <oskit-users@fast.cs.utah.edu>
Subject: Re: PATCH: New Linux 2.2.22 NIC drivers
References: <20021226123157.GA13676@vmlinux.org>
From: Debian User <ddavies@ddavies.net>
Date: 04 Jan 2003 17:44:53 -0500
In-Reply-To: <20021226123157.GA13676@vmlinux.org>
Message-ID: <87of6w7cwq.fsf@shmatey.ddavies.net>
Lines: 9
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk


Joachim,

I tried the RealTek RTL8129/RTL8139 driver on an 8139 and it worked.
It even contributed entropy after I applied my patch over yours.
The patches are disjoint :)

Derek


From owner-oskit-users@fast.cs.utah.edu  Mon Jan 13 16:20:01 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id QAA17530
	for oskit-users-hidden-out; Mon, 13 Jan 2003 16:20:01 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from dartagnan.telusquebec.com (dartagnan.telusquebec.com [142.169.1.123])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id QAA17525
	for <oskit-users@flux.cs.utah.edu>; Mon, 13 Jan 2003 16:19:58 -0700 (MST)
Received: from ts1-798.f3082.globetrotter.net
 (ts1-798.f3082.globetrotter.net [142.169.182.83])
 by smtp.globetrotter.net (iPlanet Messaging Server 5.1)
 with ESMTP id <0H8O00C3BE4CKS@"TELUS Quebec"> for
 oskit-users@flux.cs.utah.edu; Mon, 13 Jan 2003 18:19:26 -0500 (EST)
Date: Mon, 13 Jan 2003 18:19:21 -0500
From: Mathieu Rene <math@rootservices.net>
Subject: Bug with recent ld version
To: oskit-users@fast.cs.utah.edu
Message-id: <1042499964.6405.8.camel@zmwz.dyndns.org>
MIME-version: 1.0
X-Mailer: Ximian Evolution 1.0.8 (1.0.8-10)
Content-type: text/plain; CHARSET=US-ASCII
Content-transfer-encoding: 7BIT
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

OSKit uses the "-oformat binary" in order to make a linux image.... With
new versions of LD, it requires to be "--oformat binary", the first
option returned an error, modifying some files to use "--oformat binary"
resulted in a success.

Math
math@rootservices.net



From owner-oskit-users@fast.cs.utah.edu  Wed Jan 22 00:10:32 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id AAA22460
	for oskit-users-hidden-out; Wed, 22 Jan 2003 00:10:32 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from web15212.mail.bjs.yahoo.com ([61.135.128.142])
	by fast.cs.utah.edu (8.9.1/8.9.1) with SMTP id AAA22455
	for <oskit-users@fast.cs.utah.edu>; Wed, 22 Jan 2003 00:10:17 -0700 (MST)
Message-ID: <20030122070927.31859.qmail@web15212.mail.bjs.yahoo.com>
Received: from [218.70.145.26] by web15212.mail.bjs.yahoo.com via HTTP; Wed, 22 Jan 2003 15:09:27 CST
Date: Wed, 22 Jan 2003 15:09:27 +0800 (CST)
From: =?gb2312?q?Neil=20Yu?= <attonie@yahoo.com>
Subject: execute cause segmentation fault ?!
To: oskit-users@fast.cs.utah.edu
MIME-Version: 1.0
Content-Type: text/plain; charset=gb2312
Content-Transfer-Encoding: 8bit
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

hello everyone:
  i compiled the oskit in linux, and copy all
liboskit*.a into a directory with oskit/*.h, then
compile the examples/hello.c into hello.o in normal,
then link with libs, every things seen ok, but when
execute the program ./a.out, it always cause the
Segmentation fault, and gdb a.out, it show:
 
Program received signal SIGSEGV, Segmentation fault.
base_critical_enter () at ../oskit/x86/proc_reg.h:158
158     OSKIT_INLINE void cli(void) { asm
volatile("cli" : : : "memory"); }

what`s the problem ?

_________________________________________________________
Do You Yahoo!? 
"¿î¿î¸ß¹óµäÑÅ£¬¿ìÀ´²Î¼ÓÆû³µµ÷²é"
http://cn.surveys.yahoo.com/gm_campaign_evaluation

From owner-oskit-users@fast.cs.utah.edu  Wed Jan 22 00:30:21 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id AAA22666
	for oskit-users-hidden-out; Wed, 22 Jan 2003 00:30:21 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from su.uni-sofia.bg (ns.uni-sofia.bg [62.44.96.1])
	by fast.cs.utah.edu (8.9.1/8.9.1) with SMTP id AAA22659
	for <oskit-users@fast.cs.utah.edu>; Wed, 22 Jan 2003 00:30:17 -0700 (MST)
Received: (qmail 22426 invoked by uid 503); 22 Jan 2003 07:30:20 -0000
Received: from ogi@fmi.uni-sofia.bg by su.uni-sofia.bg by uid 500 with qmail-scanner-1.12 (F-PROT: 3.11. Clear:. Processed in 0.35103 secs); 22 Jan 2003 07:30:20 -0000
Received: from magid.fmi.uni-sofia.bg (HELO fmi.uni-sofia.bg) (62.44.101.57)
  by ns.uni-sofia.bg with SMTP; 22 Jan 2003 07:30:19 -0000
Message-ID: <3E2E4884.5060303@fmi.uni-sofia.bg>
Date: Wed, 22 Jan 2003 09:30:12 +0200
From: Ognyan Kulev <ogi@fmi.uni-sofia.bg>
Organization: Faculty of Mathematics and Informatics
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130
X-Accept-Language: bg, en-us, en
MIME-Version: 1.0
To: Neil Yu <attonie@yahoo.com>
CC: oskit-users@fast.cs.utah.edu
Subject: Re: execute cause segmentation fault ?!
References: <20030122070927.31859.qmail@web15212.mail.bjs.yahoo.com>
In-Reply-To: <20030122070927.31859.qmail@web15212.mail.bjs.yahoo.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

Neil Yu wrote:
> compile the examples/hello.c into hello.o in normal,
> then link with libs, every things seen ok, but when

All examples are _kernels_ that must be loaded by a multiboot-compliant
boot loader, like Grub.  And I think you should use OSKit's Makefile to
compile the examples, as programs must be turned to multiboot-compliant
kernels.  Look in examples/x86/GNUmakerules for the exact commands.

Regards
-- 
Ognyan Kulev <ogi@fmi.uni-sofia.bg>, "\"Programmer\""


From owner-oskit-users@fast.cs.utah.edu  Wed Jan 22 09:24:51 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id JAA29797
	for oskit-users-hidden-out; Wed, 22 Jan 2003 09:24:51 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from web15214.mail.bjs.yahoo.com ([61.135.128.144])
	by fast.cs.utah.edu (8.9.1/8.9.1) with SMTP id JAA29792
	for <oskit-users@fast.cs.utah.edu>; Wed, 22 Jan 2003 09:24:37 -0700 (MST)
Message-ID: <20030122162347.47133.qmail@web15214.mail.bjs.yahoo.com>
Received: from [218.70.142.44] by web15214.mail.bjs.yahoo.com via HTTP; Thu, 23 Jan 2003 00:23:47 CST
Date: Thu, 23 Jan 2003 00:23:47 +0800 (CST)
From: =?gb2312?q?Neil=20Yu?= <attonie@yahoo.com>
Subject: Re: execute cause segmentation fault ?!
To: Ognyan Kulev <ogi@fmi.uni-sofia.bg>
Cc: oskit-users@fast.cs.utah.edu
In-Reply-To: <3E2E4884.5060303@fmi.uni-sofia.bg>
MIME-Version: 1.0
Content-Type: text/plain; charset=gb2312
Content-Transfer-Encoding: 8bit
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

 --- Ognyan Kulev <ogi@fmi.uni-sofia.bg> µÄÕýÎÄ£º>
Neil Yu wrote:
> > compile the examples/hello.c into hello.o in
> normal,
> > then link with libs, every things seen ok, but
> when
> 
> All examples are _kernels_ that must be loaded by a
> multiboot-compliant
> boot loader, like Grub.  And I think you should use
> OSKit's Makefile to
> compile the examples, as programs must be turned to
> multiboot-compliant
> kernels.  Look in examples/x86/GNUmakerules for the
> exact commands.
> 
> Regards
> -- 

hi,

  you mentioned "programs must be turned to
multiboot-compliant",but should i can use the oskit C
lib to replace the glibc on my computer? 

Neil Yu


_________________________________________________________
Do You Yahoo!? 
"¿î¿î¸ß¹óµäÑÅ£¬¿ìÀ´²Î¼ÓÆû³µµ÷²é"
http://cn.surveys.yahoo.com/gm_campaign_evaluation

From owner-oskit-users@fast.cs.utah.edu  Wed Jan 22 11:28:02 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id LAA02143
	for oskit-users-hidden-out; Wed, 22 Jan 2003 11:28:02 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from vmlinux.org (root@vmlinux.org [193.41.214.66])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id LAA02138
	for <oskit-users@fast.cs.utah.edu>; Wed, 22 Jan 2003 11:27:59 -0700 (MST)
Received: from crash by vmlinux.org with local (Exim 3.35 #1 (Debian))
	id 18bPY4-00082U-00; Wed, 22 Jan 2003 19:24:28 +0100
Date: Wed, 22 Jan 2003 19:24:28 +0100
From: Joachim Nilsson <joachim.nilsson@vmlinux.org>
To: Neil Yu <attonie@yahoo.com>
Cc: Ognyan Kulev <ogi@fmi.uni-sofia.bg>, oskit-users@fast.cs.utah.edu
Subject: Re: execute cause segmentation fault ?!
Message-ID: <20030122182428.GA30659@vmlinux.org>
References: <3E2E4884.5060303@fmi.uni-sofia.bg> <20030122162347.47133.qmail@web15214.mail.bjs.yahoo.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20030122162347.47133.qmail@web15214.mail.bjs.yahoo.com>
User-Agent: Mutt/1.4i
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

On Thu, Jan 23, 2003 at 12:23:47AM +0800, Neil Yu wrote:
>  --- Ognyan Kulev <ogi@fmi.uni-sofia.bg> ????????>
> Neil Yu wrote:
> > > compile the examples/hello.c into hello.o in
> > > normal,then link with libs, every things seen ok, but
> > All examples are _kernels_ that must be loaded by a
> > multiboot-compliant boot loader, like Grub.  And I think 
> > you should use OSKit's Makefile to compile the examples,
> > as programs must be turned to multiboot-compliant
> > kernels.  Look in examples/x86/GNUmakerules for the
> > exact commands.
>   you mentioned "programs must be turned to
> multiboot-compliant",but should i use the oskit C
> lib to replace the glibc on my computer? 

Hi Neal!

The C library in the OSKit is only for the kernels you
build - not the environment you build them in. So keep
the glibc you have.

For complete instructions on how to build the example
kernels in the OSKit, please consult the fine manual:

http://www.cs.utah.edu/flux/oskit/html/oskit-wwwch1.html#x4-100001.4

It shows what tools you need and what you need to modify
in the modules file to build the whole OSKit, or just the
parts that you are interested in.


Regards
 /Joachim

--  
Joachim Nilsson  :: <joachim AT vmlinux DOT org>
+46-(0)21-123348 :: <http://joachim.vmlinux.org>

From owner-oskit-users@fast.cs.utah.edu  Sun Jan 26 09:21:38 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id JAA18807
	for oskit-users-hidden-out; Sun, 26 Jan 2003 09:21:38 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from smtp01.mrf.mail.rcn.net (smtp01.mrf.mail.rcn.net [207.172.4.60])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id JAA18802
	for <oskit-users@flux.cs.utah.edu>; Sun, 26 Jan 2003 09:21:35 -0700 (MST)
Received: from 66-44-55-203.s457.tnt1.lnhva.md.dialup.rcn.com ([66.44.55.203] helo=starpower.net)
	by smtp01.mrf.mail.rcn.net with esmtp (Exim 3.35 #4)
	id 18cpXK-0001oN-00
	for oskit-users@flux.cs.utah.edu; Sun, 26 Jan 2003 11:21:35 -0500
Message-ID: <3E3434FB.AA74DBE6@starpower.net>
Date: Sun, 26 Jan 2003 11:20:27 -0800
From: Alan Grimes <alangrimes@starpower.net>
Organization: Nanosoft: Software that thinks. 
X-Mailer: Mozilla 4.08 [en] (Win16; U)
MIME-Version: 1.0
To: oskit-users@fast.cs.utah.edu
Subject: TEST
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

TEST

-- 
I WANT A DEC ALPHA!!! =)
21364: THE UNDISPUTED GOD OF ALL CPUS.
http://users.rcn.com/alangrimes/
[if rcn.com doesn't work, try erols.com ]

From owner-oskit-users@fast.cs.utah.edu  Sun Jan 26 09:47:09 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id JAA18981
	for oskit-users-hidden-out; Sun, 26 Jan 2003 09:47:09 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from smtp01.mrf.mail.rcn.net (smtp01.mrf.mail.rcn.net [207.172.4.60])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id JAA18976
	for <oskit-users@fast.cs.utah.edu>; Sun, 26 Jan 2003 09:47:07 -0700 (MST)
Received: from 66-44-55-203.s457.tnt1.lnhva.md.dialup.rcn.com ([66.44.55.203] helo=starpower.net)
	by smtp01.mrf.mail.rcn.net with esmtp (Exim 3.35 #4)
	id 18cpw1-0005hl-00
	for oskit-users@fast.cs.utah.edu; Sun, 26 Jan 2003 11:47:06 -0500
Message-ID: <3E343AF5.49A42F6A@starpower.net>
Date: Sun, 26 Jan 2003 11:45:58 -0800
From: Alan Grimes <alangrimes@starpower.net>
Organization: Nanosoft: Software that thinks. 
X-Mailer: Mozilla 4.08 [en] (Win16; U)
MIME-Version: 1.0
To: oskit-users@fast.cs.utah.edu
Subject: [Fwd: TEST]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

While my main intent in sending the test message was to determine
wheather I was still subscribed after all these years... It seems the
answer was an afirmative. My test did, however, uncover something of
greater interest, Apparently someone has a reply-to-sender bounce
message... The moderator should look into removing this account: 

INACTIVE ***P-LUTZ*** wrote:
> 
> YOUR EMAIL DID ***NOT*** GET TO PETE LUTZ
> The spammers have finally caught up to me ... so I have had to change
> my address. Please resend your email to
>      'plutz' followed by an 'at' sign, then 'it.rit.edu'
> and use this address in the future.  -Pete

-- 
I WANT A DEC ALPHA!!! =)
21364: THE UNDISPUTED GOD OF ALL CPUS.
http://users.rcn.com/alangrimes/
[if rcn.com doesn't work, try erols.com ]

From owner-oskit-users@fast.cs.utah.edu  Sun Feb  2 05:50:33 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id FAA08202
	for oskit-users-hidden-out; Sun, 2 Feb 2003 05:50:33 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from 3d.poshta.net (unassigned.poshta.net [217.75.138.242])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id FAA08197
	for <oskit-users@fast.cs.utah.edu>; Sun, 2 Feb 2003 05:50:27 -0700 (MST)
Received: from fmi.uni-sofia.bg ([10.0.6.4])
	by 3d.poshta.net (8.10.0/8.10.0) with ESMTP id h12CpPG26686
	for <oskit-users@fast.cs.utah.edu>; Sun, 2 Feb 2003 14:51:25 +0200
Message-ID: <3E3D1613.20404@fmi.uni-sofia.bg>
Date: Sun, 02 Feb 2003 14:58:59 +0200
From: Ognyan Kulev <ogi@fmi.uni-sofia.bg>
Organization: Faculty of Mathematics and Informatics, University of Sofia
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021205 Debian/1.2.1-0
MIME-Version: 1.0
To: oskit-users@fast.cs.utah.edu
Subject: linux/src/drivers/block/ide-probe.c:do_probe doesn't recognize IDE
 drive
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

Hi,

I'm trying to make GNU Mach use my PCI CMD649 ATA-100 controller.  I'm 
using Joachim's patch-oskit-linux-2.2.22-ATA-alpha.diff.gz[1].  This 
patch is based on an Andre Hedrick's backport of ATA-100 drivers from 
Linux 2.4 to Linux 2.2.20[2].  Let's call this modified 2.2.20 with 
codename 'pristine'.  Comparing pristine/drivers/block/* with 
oskit/linux/src/drivers/block/* gives insignificant differences.  When 
my 2.4 Debian generic kernel is replaced by pristine with CMD649 support 
it boots fine and there are no problems.  When GNU Mach is compiled and 
running, CMD649 is recognized exactly as pristine does recognize it, but 
there is no message that `hde' is assigned to my 80G Maxtor.  (Note: My 
Maxtor doesn't run on anything less than ATA-66.)  CDROM is recognized 
as `hdc'.  This assignment of names to drives is decided in 
drivers/block/ide-probe.c:do_probe function.  Essentially this function 
tries to set the SELECT register of ide to a particular value and see if 
this value will be the same when this register is read afterwards.  If 
it is the same, then there can be drive there.  When probing hd[a,b,c,d] 
there are some values (not 255) and hdc is recognized.  When probing 
hd[efgh..] all values returned by the SELECT register are 255.  The 
first thought is that the wrong io port is referred.  But the same io 
port is used in that function in both pristine and oskit.  There is 
something else.  The linux code is same.

Now what can I do?  All the code used is the same, except that OSKit 
makes a glue for Linux drivers.  Any ideas how to continue this 
investigation?

[1] 
http://hurd.gnufans.org/bin/view/Hurd/JoachimNilssonHurdPage#OSKit_ATA_100_Support
[2] http://www.kernel.org/pub/linux/kernel/people/hedrick/ide-2.2.20/

Regards
-- 
Ognyan Kulev <ogi@fmi.uni-sofia.bg>, "\"Programmer\""


From owner-oskit-users@fast.cs.utah.edu  Sun Feb  2 05:52:24 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id FAA08243
	for oskit-users-hidden-out; Sun, 2 Feb 2003 05:52:24 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from 3d.poshta.net (unassigned.poshta.net [217.75.138.242] (may be forged))
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id FAA08237
	for <oskit-users@fast.cs.utah.edu>; Sun, 2 Feb 2003 05:52:19 -0700 (MST)
Received: from fmi.uni-sofia.bg ([10.0.6.4])
	by 3d.poshta.net (8.10.0/8.10.0) with ESMTP id h12CrMG26699
	for <oskit-users@fast.cs.utah.edu>; Sun, 2 Feb 2003 14:53:24 +0200
Message-ID: <3E3D1688.5@fmi.uni-sofia.bg>
Date: Sun, 02 Feb 2003 15:00:56 +0200
From: Ognyan Kulev <ogi@fmi.uni-sofia.bg>
Organization: Faculty of Mathematics and Informatics, University of Sofia
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021205 Debian/1.2.1-0
MIME-Version: 1.0
To: oskit-users@fast.cs.utah.edu
Subject: linux/src/drivers/block/ide-probe.c:do_probe doesn't recognize IDE
 drive
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

Hi,

I'm trying to make GNU Mach use my PCI CMD649 ATA-100 controller.  I'm 
using Joachim's patch-oskit-linux-2.2.22-ATA-alpha.diff.gz[1].  This 
patch is based on an Andre Hedrick's backport of ATA-100 drivers from 
Linux 2.4 to Linux 2.2.20[2].  Let's call this modified 2.2.20 with 
codename 'pristine'.  Comparing pristine/drivers/block/* with 
oskit/linux/src/drivers/block/* gives insignificant differences.  When 
my 2.4 Debian generic kernel is replaced by pristine with CMD649 support 
it boots fine and there are no problems.  When GNU Mach is compiled and 
running, CMD649 is recognized exactly as pristine does recognize it, but 
there is no message that `hde' is assigned to my 80G Maxtor.  (Note: My 
Maxtor doesn't run on anything less than ATA-66.)  CDROM is recognized 
as `hdc'.  This assignment of names to drives is decided in 
drivers/block/ide-probe.c:do_probe function.  Essentially this function 
tries to set the SELECT register of ide to a particular value and see if 
this value will be the same when this register is read afterwards.  If 
it is the same, then there can be drive there.  When probing hd[a,b,c,d] 
there are some values (not 255) and hdc is recognized.  When probing 
hd[efgh..] all values returned by the SELECT register are 255.  The 
first thought is that the wrong io port is referred.  But the same io 
port is used in that function in both pristine and oskit.  There is 
something else.  The linux code is same.

Now what can I do?  All the code used is the same, except that OSKit 
makes a glue for Linux drivers.  Any ideas how to continue this 
investigation?

[1] 
http://hurd.gnufans.org/bin/view/Hurd/JoachimNilssonHurdPage#OSKit_ATA_100_Support
[2] http://www.kernel.org/pub/linux/kernel/people/hedrick/ide-2.2.20/

Regards
-- 
Ognyan Kulev <ogi@fmi.uni-sofia.bg>, "\"Programmer\""


From owner-oskit-users@fast.cs.utah.edu  Tue Feb  4 01:48:46 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id BAA23125
	for oskit-users-hidden-out; Tue, 4 Feb 2003 01:48:46 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from mta01bw.bigpond.com (mta01bw.bigpond.com [139.134.6.78])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id BAA23120
	for <oskit-users@flux.cs.utah.edu>; Tue, 4 Feb 2003 01:48:43 -0700 (MST)
Received: from mattsoftware.com ([144.135.24.69]) by
          mta01bw.bigpond.com (Netscape Messaging Server 4.15 mta01bw Jul
          16 2002 22:47:55) with SMTP id H9S0GA00.2GC for
          <oskit-users@flux.cs.utah.edu>; Tue, 4 Feb 2003 18:48:10 +1000 
Received: from CPE-203-51-204-205.qld.bigpond.net.au ([203.51.204.205]) by bwmam01.mailsvc.email.bigpond.com(MailRouter V3.0n 2/1130853); 04 Feb 2003 18:48:10
Message-ID: <3E3F7ECE.2070300@mattsoftware.com>
Date: Tue, 04 Feb 2003 19:50:22 +1100
From: Matt <matt@mattsoftware.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: oskit-users@fast.cs.utah.edu
Subject: Environment Variables from multiboot
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

Greetings and Peace

Newbie question. I apologise if it is something I am doing. I have 
checked the archived list and gone through a lot of the source and 
online docs and I cant seem to figure out whats going wrong.

I have successfully configured and built the oskit (20020317).

I can successfully (no reported errors) compile and link the multiboot.c 
example kernel. Problem is when I pass an argument from grub "FOO=BAR" 
it does not recognise it as an environment variable (multiboot.c lists 
all arguments, environment variables and oskit arguments). I also can 
not get it to work with the oskit arguments. When it lists all the 
command line arguments, everything is there as expected (FOO=BAR is in 
that list as arg[1]).

Any idea's why the oskit isn't reporting FOO=BAR as an environment variable?

Thankyou for any help.

-- 

God Bless and Be Well

Matthew Paine  Dip.I.T.(UNE), B.I.T(QUT)



From owner-oskit-users@fast.cs.utah.edu  Tue Feb  4 06:15:22 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id GAA28407
	for oskit-users-hidden-out; Tue, 4 Feb 2003 06:15:22 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from vmlinux.org (root@vmlinux.org [193.41.214.66])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id GAA28402
	for <oskit-users@fast.cs.utah.edu>; Tue, 4 Feb 2003 06:15:18 -0700 (MST)
Received: from crash by vmlinux.org with local (Exim 3.35 #1 (Debian))
	id 18g2un-00017L-00; Tue, 04 Feb 2003 14:15:05 +0100
Date: Tue, 4 Feb 2003 14:15:05 +0100
From: Joachim Nilsson <joachim.nilsson@vmlinux.org>
To: Matt <matt@mattsoftware.com>
Cc: oskit-users@fast.cs.utah.edu
Subject: Re: Environment Variables from multiboot
Message-ID: <20030204131504.GA4116@vmlinux.org>
References: <3E3F7ECE.2070300@mattsoftware.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <3E3F7ECE.2070300@mattsoftware.com>
User-Agent: Mutt/1.4i
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

On Tue, Feb 04, 2003 at 07:50:22PM +1100, Matt wrote:
> Any idea's why the oskit isn't reporting FOO=BAR as an environment variable?

Have you tried using -- as a separator?
Like this:

	title Example kernel ABC
	root (hdX,Y)
	kernel /boot/ABC root=/dev/hdXY -- FOO=BAR

I have no idea if that helps, but it might be worth a try.


Regards
 /Joachim

--  
Joachim Nilsson  :: <joachim AT vmlinux DOT org>
+46-(0)21-123348 :: <http://joachim.vmlinux.org>

From owner-oskit-users@fast.cs.utah.edu  Wed Feb  5 16:30:53 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: (from majordom@localhost)
	by fast.cs.utah.edu (8.9.1/8.9.1) id QAA12772
	for oskit-users-hidden-out; Wed, 5 Feb 2003 16:30:53 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from mta08bw.bigpond.com (mta08bw.bigpond.com [144.135.24.137])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id QAA12767
	for <oskit-users@flux.cs.utah.edu>; Wed, 5 Feb 2003 16:30:49 -0700 (MST)
Received: from mattsoftware.com ([144.135.24.78]) by
          mta08bw.bigpond.com (Netscape Messaging Server 4.15 mta08bw Jul
          16 2002 22:47:55) with SMTP id H9UZYH00.C3V for
          <oskit-users@flux.cs.utah.edu>; Thu, 6 Feb 2003 09:30:17 +1000 
Received: from CPE-203-51-204-41.qld.bigpond.net.au ([203.51.204.41]) by bwmam04.mailsvc.email.bigpond.com(MailRouter V3.0n 29/4156824); 06 Feb 2003 09:30:17
Message-ID: <3E419F19.6060405@mattsoftware.com>
Date: Thu, 06 Feb 2003 10:32:41 +1100
From: Matt <matt@mattsoftware.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: oskit-users@fast.cs.utah.edu
Subject: OSKit + Kaffe question.
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

Greetings and Peace

I have recently downloaded the latest OSKit (20020317). After finding 
out that I can setup Kaffe as the kernel (please correct me if this 
statement is wrong) I thought I would give it a go. I downloaded what I 
thought was the latest version of Kaffe (1.0.7), configure, make, make 
install. Then I ran the config/i386/oskit/config-oskit script, it also 
ran configure for me. When I run make it goes for a few seconds and then 
gives up... (see below for example output from make if that will be useful).

Question: Does the latest OSKit support any Kaffe snapshot?

Question: If not, what would be the latest versions of each package I 
need to download and install to get this to work?

Thankyou for any help in advance.



------8<------- output from make showing errors --------------8<--------

make[3]: Entering directory 
`/home/zerah/temp/kaffe-1.0.7/libraries/clib/native'
/bin/sh ../../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. 
-I/home/zerah/temp/kaffe-1.0.7/libraries/clib/native -I../../../config 
-I../../../include   -DKVER='"1.0.7"' 
-I/home/zerah/temp/kaffe-1.0.7/kaffe/kaffevm 
-I/home/zerah/temp/kaffe-1.0.7/kaffe/kaffevm/systems/oskit-pthreads 
-I/home/zerah/temp/kaffe-1.0.7/config 
-I/home/zerah/temp/kaffe-1.0.7/include  -I/usr/local/include -DDEBUG  -g 
-O2 -Wall -Wstrict-prototypes -c ClassLoader.c
gcc -DHAVE_CONFIG_H -I. 
-I/home/zerah/temp/kaffe-1.0.7/libraries/clib/native -I../../../config 
-I../../../include -DKVER=\"1.0.7\" 
-I/home/zerah/temp/kaffe-1.0.7/kaffe/kaffevm 
-I/home/zerah/temp/kaffe-1.0.7/kaffe/kaffevm/systems/oskit-pthreads 
-I/home/zerah/temp/kaffe-1.0.7/config 
-I/home/zerah/temp/kaffe-1.0.7/include -I/usr/local/include -DDEBUG -g 
-O2 -Wall -Wstrict-prototypes -c ClassLoader.c -o ClassLoader.o
In file included from 
/home/zerah/temp/kaffe-1.0.7/kaffe/kaffevm/systems/oskit-pthreads/jthread.h:15,
                  from 
/home/zerah/temp/kaffe-1.0.7/kaffe/kaffevm/systems/oskit-pthreads/thread-impl.h:15,
                  from ../../../kaffe/kaffevm/locks.h:17,
                  from ClassLoader.c:21:
/usr/local/include/oskit/threads/pthread.h:59: conflicting types for 
`pthread_t'
/usr/include/bits/pthreadtypes.h:140: previous declaration of `pthread_t'
/usr/local/include/oskit/threads/pthread.h:100: conflicting types for 
`pthread_mutex_t'
/usr/include/bits/pthreadtypes.h:83: previous declaration of 
`pthread_mutex_t'
/usr/local/include/oskit/threads/pthread.h:139: conflicting types for 
`pthread_cond_t'
/usr/include/bits/pthreadtypes.h:60: previous declaration of 
`pthread_cond_t'
/usr/local/include/oskit/threads/pthread.h:150: conflicting types for 
`pthread_attr_t'
/usr/include/bits/pthreadtypes.h:52: previous declaration of 
`pthread_attr_t'
/usr/local/include/oskit/threads/pthread.h:151: conflicting types for 
`pthread_mutexattr_t'
/usr/include/bits/pthreadtypes.h:90: previous declaration of 
`pthread_mutexattr_t'
/usr/local/include/oskit/threads/pthread.h:152: conflicting types for 
`pthread_condattr_t'
/usr/include/bits/pthreadtypes.h:67: previous declaration of 
`pthread_condattr_t'
/usr/local/include/oskit/threads/pthread.h:164: conflicting types for 
`pthread_key_t'
/usr/include/bits/pthreadtypes.h:70: previous declaration of `pthread_key_t'
/usr/local/include/oskit/threads/pthread.h:270: conflicting types for 
`pthread_kill'
/usr/include/bits/sigthread.h:36: previous declaration of `pthread_kill'
In file included from 
/home/zerah/temp/kaffe-1.0.7/kaffe/kaffevm/systems/oskit-pthreads/thread-impl.h:15,
                  from ../../../kaffe/kaffevm/locks.h:17,
                  from ClassLoader.c:21:
/home/zerah/temp/kaffe-1.0.7/kaffe/kaffevm/systems/oskit-pthreads/jthread.h: 
In function `jthread_stacklimit':
/home/zerah/temp/kaffe-1.0.7/kaffe/kaffevm/systems/oskit-pthreads/jthread.h:231: 
warning: implicit declaration of function `panic'
make[3]: *** [ClassLoader.lo] Error 1
make[3]: Leaving directory 
`/home/zerah/temp/kaffe-1.0.7/libraries/clib/native'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/zerah/temp/kaffe-1.0.7/libraries/clib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/zerah/temp/kaffe-1.0.7/libraries'
make: *** [all-recursive] Error 1





------------------->8-------------

-- 

God Bless and Be Well

Matthew Paine  Dip.I.T.(UNE), B.I.T(QUT)




From owner-oskit-users@fast.cs.utah.edu  Tue Feb 18 12:16:28 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id MAA23187
	for oskit-users-hidden-out; Tue, 18 Feb 2003 12:16:28 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from mgr4.xmission.com (mail@mgr4.xmission.com [198.60.22.204])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id MAA23182
	for <oskit-users@flux.cs.utah.edu>; Tue, 18 Feb 2003 12:16:26 -0700 (MST)
Received: from [198.60.22.200] (helo=mail.xmission.com)
	by mgr4.xmission.com with esmtp (Exim 3.35 #1)
	id 18lDE9-00074y-04
	for oskit-users@flux.cs.utah.edu; Tue, 18 Feb 2003 12:16:25 -0700
Received: from ack.dsl.xmission.com ([166.70.25.235] helo=xmission.com)
	by mail.xmission.com with esmtp (Exim 3.22 #1)
	id 18lDE9-0006oH-00
	for oskit-users@flux.cs.utah.edu; Tue, 18 Feb 2003 12:16:25 -0700
Date: Tue, 18 Feb 2003 12:16:23 -0700
Mime-Version: 1.0 (Apple Message framework v551)
Content-Type: text/plain; charset=US-ASCII; format=flowed
Subject: oskit_netbsd_uvm linking
From: Chris Silva <ack@xmission.com>
To: oskit-users@fast.cs.utah.edu
Content-Transfer-Encoding: 7bit
Message-Id: <784EA974-4375-11D7-98C3-0030659642C4@xmission.com>
X-Mailer: Apple Mail (2.551)
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

I'm trying to link in oskit_netbsd_uvm but I have this error;

ld  ../lib/crt.o ../lib/syscall.o swap.o -o swap -loskit_clientos 
-loskit_kern -loskit_netbsd_uvm -loskit_lmm -loskit_freebsd_c -loskit_c
/usr/lib/liboskit_freebsd_c.a(swapoff.o): In function `swapoff':
swapoff.o(.text+0x3b): undefined reference to `oskit_uvm_swap_off'
/usr/lib/liboskit_freebsd_c.a(swapon.o): In function `swapon':
swapon.o(.text+0x3b): undefined reference to `oskit_uvm_swap_on'

What is the proper library linking process?

Thanks,

Chris


From owner-oskit-users@fast.cs.utah.edu  Tue Feb 18 22:06:39 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id WAA26796
	for oskit-users-hidden-out; Tue, 18 Feb 2003 22:06:39 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from localhost.localdomain (136.a.001.arm.iprimus.net.au [203.134.93.136])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id WAA26791
	for <oskit-users@fast.cs.utah.edu>; Tue, 18 Feb 2003 22:06:35 -0700 (MST)
Received: from localhost.localdomain (unknown [127.0.0.1])
	by localhost.localdomain (Postfix) with ESMTP id 27F058781F
	for <oskit-users@fast.cs.utah.edu>; Wed, 19 Feb 2003 02:52:29 -0500 (EST)
Content-Type: text/plain;
  charset="us-ascii"
From: James Buchanan <jamesbuch@iprimus.com.au>
Reply-To: jamesbuch@iprimus.com.au
To: oskit-users@fast.cs.utah.edu
Subject: General OSKit Questions
Date: Wed, 19 Feb 2003 18:52:28 +1100
User-Agent: KMail/1.4.3
X-Memberships: Professional Member, ACM (jamesb.au@acm.org)
X-Hypothetical: Humans are incapable of original thought. Everything is the result of observation, experimentation, or building on/modifying what already exists.
X-Location: Australia, NSW
X-Religion: Athiest, Secular
X-Operating-System: RedHat Linux/GNU
X-Message: The Truth Is Out There
MIME-Version: 1.0
Message-Id: <200302191852.28465.jamesbuch@iprimus.com.au>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by fast.cs.utah.edu id WAA26792
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

Hello,

When using OSKit to provide only the filesystem, device driver, 
booting, C library and networking support and writing your own 
tasking, memory management, scheduling and other kernel primitives 
like semaphores, SMP locking etc, can this simply be "plugged in" 
starting from the main() function?  Is main() executing in ring 0? If 
not, then is there a kernel function to switch in and out?  Can the 
paging/virtual memory support for a new OS simply be added in from 
main() and other modules without needing to hack OSKit?  Has anyone 
actually used OSKit like I describe above?

Is anyone at OSKit working on a tutorial?

Thanks!
James

From owner-oskit-users@fast.cs.utah.edu  Wed Feb 19 02:12:56 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id CAA27868
	for oskit-users-hidden-out; Wed, 19 Feb 2003 02:12:56 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from su.uni-sofia.bg (ns.uni-sofia.bg [62.44.96.1])
	by fast.cs.utah.edu (8.9.1/8.9.1) with SMTP id CAA27863
	for <oskit-users@fast.cs.utah.edu>; Wed, 19 Feb 2003 02:12:50 -0700 (MST)
Received: (qmail 31095 invoked by uid 503); 19 Feb 2003 09:05:44 -0000
Received: from ogi@fmi.uni-sofia.bg by su.uni-sofia.bg by uid 500 with qmail-scanner-1.12 (F-PROT: 3.11. Clear:. Processed in 0.369102 secs); 19 Feb 2003 09:05:44 -0000
Received: from magid.fmi.uni-sofia.bg (HELO fmi.uni-sofia.bg) (62.44.101.57)
  by ns.uni-sofia.bg with SMTP; 19 Feb 2003 09:05:43 -0000
Message-ID: <3E5348FC.7090106@fmi.uni-sofia.bg>
Date: Wed, 19 Feb 2003 11:06:04 +0200
From: Ognyan Kulev <ogi@fmi.uni-sofia.bg>
Organization: Faculty of Mathematics and Informatics, University of Sofia
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20030210
X-Accept-Language: bg, en-us, en
MIME-Version: 1.0
To: jamesbuch@iprimus.com.au
CC: oskit-users@fast.cs.utah.edu
Subject: Re: General OSKit Questions
References: <200302191852.28465.jamesbuch@iprimus.com.au>
In-Reply-To: <200302191852.28465.jamesbuch@iprimus.com.au>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

James Buchanan wrote:
> Has anyone actually used OSKit like I describe above?

Take a look at GNU Mach[1][2][3].  (You need the unreleased GNU Mach 
2.x, not 1.3.)  Start from oskit/x86/main.c.  Although this may not be 
your case, it can help you.  The downside is that GNU Mach is not a 
simple kernel.

[1] http://www.gnu.org/software/hurd/gnumach.html
[2] http://www.gnu.org/software/hurd/gnumach-download.html

Regards
-- 
Ognyan Kulev <ogi@fmi.uni-sofia.bg>, "\"Programmer\""


From owner-oskit-users@fast.cs.utah.edu  Thu Feb 20 07:40:15 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id HAA15469
	for oskit-users-hidden-out; Thu, 20 Feb 2003 07:40:15 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from web15211.mail.bjs.yahoo.com ([61.135.128.141])
	by fast.cs.utah.edu (8.9.1/8.9.1) with SMTP id HAA15462
	for <oskit-users@fast.cs.utah.edu>; Thu, 20 Feb 2003 07:39:32 -0700 (MST)
Message-ID: <20030220143834.67255.qmail@web15211.mail.bjs.yahoo.com>
Received: from [211.144.170.62] by web15211.mail.bjs.yahoo.com via HTTP; Thu, 20 Feb 2003 22:38:34 CST
Date: Thu, 20 Feb 2003 22:38:34 +0800 (CST)
From: =?gb2312?q?Neil=20Yu?= <attonie@yahoo.com>
Subject: Re: oskit_netbsd_uvm linking
To: Chris Silva <ack@xmission.com>, oskit-users@fast.cs.utah.edu
In-Reply-To: <784EA974-4375-11D7-98C3-0030659642C4@xmission.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="0-1761352796-1045751914=:67144"
Content-Transfer-Encoding: 8bit
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

--0-1761352796-1045751914=:67144
Content-Type: text/plain; charset=gb2312
Content-Transfer-Encoding: 8bit


 
 Chris Silva <ack@xmission.com> wrote:I'm trying to link in oskit_netbsd_uvm but I have this error;

ld ../lib/crt.o ../lib/syscall.o swap.o -o swap -loskit_clientos 
-loskit_kern -loskit_netbsd_uvm -loskit_lmm -loskit_freebsd_c -loskit_c
/usr/lib/liboskit_freebsd_c.a(swapoff.o): In function `swapoff':
swapoff.o(.text+0x3b): undefined reference to `oskit_uvm_swap_off'
/usr/lib/liboskit_freebsd_c.a(swapon.o): In function `swapon':
swapon.o(.text+0x3b): undefined reference to `oskit_uvm_swap_on'

What is the proper library linking process?

Thanks,

Chris

 

i think the most efficienty way is link all modules



---------------------------------
Do You Yahoo!?
"ÑÅ»¢½ÚÈÕ´ó×ªÅÌ¾ªÏ²²»¶Ï ¿ìÀÖ½ÚÈÕºÃÀñÁ¬Á¬!"
--0-1761352796-1045751914=:67144
Content-Type: text/html; charset=gb2312
Content-Transfer-Encoding: 8bit

<P>&nbsp;
<P>&nbsp;<B><I>Chris Silva &lt;ack@xmission.com&gt;</I></B> wrote:
<BLOCKQUOTE style="BORDER-LEFT: #1010ff 2px solid; MARGIN-LEFT: 5px; PADDING-LEFT: 5px">I'm trying to link in oskit_netbsd_uvm but I have this error;<BR><BR>ld ../lib/crt.o ../lib/syscall.o swap.o -o swap -loskit_clientos <BR>-loskit_kern -loskit_netbsd_uvm -loskit_lmm -loskit_freebsd_c -loskit_c<BR>/usr/lib/liboskit_freebsd_c.a(swapoff.o): In function `swapoff':<BR>swapoff.o(.text+0x3b): undefined reference to `oskit_uvm_swap_off'<BR>/usr/lib/liboskit_freebsd_c.a(swapon.o): In function `swapon':<BR>swapon.o(.text+0x3b): undefined reference to `oskit_uvm_swap_on'<BR><BR>What is the proper library linking process?<BR><BR>Thanks,<BR><BR>Chris<BR></BLOCKQUOTE>
<P>&nbsp;</P>
<P>i think the most efficienty way is link all modules</P><p><br><hr size=1><b>Do You Yahoo!?</b><br>
<a href="http://rd.yahoo.com/mail_cn/tag?http://cn.promo.yahoo.com/holiday/">"ÑÅ»¢½ÚÈÕ´ó×ªÅÌ¾ªÏ²²»¶Ï ¿ìÀÖ½ÚÈÕºÃÀñÁ¬Á¬!"</a>
--0-1761352796-1045751914=:67144--

From owner-oskit-users@fast.cs.utah.edu  Fri Feb 21 05:22:30 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id FAA27932
	for oskit-users-hidden-out; Fri, 21 Feb 2003 05:22:30 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from rizzo.jerky.net (rizzo.jerky.net [204.57.55.99])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id FAA27925
	for <oskit-users@fast.cs.utah.edu>; Fri, 21 Feb 2003 05:22:27 -0700 (MST)
Received: from hotpop.com (kubrick.hotpop.com [204.57.55.16])
	by rizzo.jerky.net (Postfix) with SMTP id 75CBD307E3
	for <oskit-users@fast.cs.utah.edu>; Fri, 21 Feb 2003 12:22:26 +0000 (UTC)
Received: from SAT (unknown [203.122.19.196])
	by smtp-1.hotpop.com (Postfix) with SMTP id 4A23C2F812F
	for <oskit-users@fast.cs.utah.edu>; Fri, 21 Feb 2003 12:15:27 +0000 (UTC)
Message-ID: <012401c2d9a2$f5d34bf0$253210ac@SAT>
From: "Satendra" <satendra@hotpop.com>
To: <oskit-users@fast.cs.utah.edu>
Subject: problem with ...
Date: Fri, 21 Feb 2003 17:41:04 +0530
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_00DE_01C2D9D0.688AFF80"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-HotPOP: -----------------------------------------------
                   Sent By HotPOP.com FREE Email
             Get your FREE POP email at www.HotPOP.com
          -----------------------------------------------
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

This is a multi-part message in MIME format.

------=_NextPart_000_00DE_01C2D9D0.688AFF80
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

i am trying to write a basic kernel with oskit for my college project=20
i am facing problem while booting the "sproc" example kernel with vmware =
3.2
can anyone plz help me with this ?

TIA=20
Satendra

------=_NextPart_000_00DE_01C2D9D0.688AFF80
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1141" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY style=3D"COLOR: #000000; FONT-FAMILY: Arial" bgColor=3D#ffffff>
<DIV><FONT size=3D2>i am trying to write a basic kernel with oskit for =
my college=20
project </FONT></DIV>
<DIV><FONT size=3D2>i am facing problem while booting the "sproc" =
example kernel=20
with vmware 3.2</FONT></DIV>
<DIV><FONT size=3D2>can anyone plz help me with this ?</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>TIA </FONT></DIV>
<DIV><FONT size=3D2>Satendra</FONT></DIV>
<DIV><FONT size=3D2></FONT><FONT =
size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_00DE_01C2D9D0.688AFF80--



From owner-oskit-users@fast.cs.utah.edu  Fri Feb 21 15:56:34 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id PAA01890
	for oskit-users-hidden-out; Fri, 21 Feb 2003 15:56:34 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from mgr2.xmission.com (mgr2.xmission.com [198.60.22.202])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id PAA01885
	for <oskit-users@fast.cs.utah.edu>; Fri, 21 Feb 2003 15:56:32 -0700 (MST)
Received: from [198.60.22.200] (helo=mail.xmission.com)
	by mgr2.xmission.com with esmtp (Exim 3.35 #1)
	id 18mM03-0006x7-02
	for oskit-users@fast.cs.utah.edu; Fri, 21 Feb 2003 15:50:35 -0700
Received: from ack.dsl.xmission.com ([166.70.25.235] helo=xmission.com)
	by mail.xmission.com with esmtp (Exim 3.22 #1)
	id 18mM01-0006dA-00
	for oskit-users@fast.cs.utah.edu; Fri, 21 Feb 2003 15:50:33 -0700
Date: Fri, 21 Feb 2003 15:50:32 -0700
Mime-Version: 1.0 (Apple Message framework v551)
Content-Type: text/plain; charset=US-ASCII; format=flowed
Subject: oskit_netbsd_uvm memory limitation
From: Chris Silva <ack@xmission.com>
To: oskit-users@fast.cs.utah.edu
Content-Transfer-Encoding: 7bit
Message-Id: <E2112F68-45EE-11D7-9773-0030659642C4@xmission.com>
X-Mailer: Apple Mail (2.551)
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

Hi all,

I've noticed an undocumented(?) oskit_netbsd_uvm problem. The 
oskit_uvm_init(); dies on x86 machines that have less than 128megs of 
ram (I actually only tested on 16, 32, and 64megs). I was wondering why 
this is so? Is there anything that can be done to fix this so it will 
work on machines with < 128megs?

Thanks,

Chris


From owner-oskit-users@fast.cs.utah.edu  Fri Mar  7 10:25:08 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: (from majordom@localhost)
	by fast.cs.utah.edu (8.9.1/8.9.1) id KAA04858
	for oskit-users-hidden-out; Fri, 7 Mar 2003 10:25:08 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from colo.walfield.org ([209.113.166.29])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id KAA04853
	for <oskit-users@fast.cs.utah.edu>; Fri, 7 Mar 2003 10:25:05 -0700 (MST)
Received: from dhcp-9-029.via-eth.ch (aragorn) [192.33.99.29] 
	by colo.walfield.org with esmtp (Exim 3.35 #1 (Debian))
	id 18rLd6-0003bw-00; Fri, 07 Mar 2003 12:27:33 -0500
Received: from wagi by aragorn with local (Exim 3.35 #1 (Debian))
	id 18rLek-00024Q-00; Fri, 07 Mar 2003 18:29:14 +0100
From: Daniel Wagner <wagi@gmx.ch>
Mail-Copies-To: wagi@gmx.ch
To: Roland McGrath <roland@frob.com>
Cc: bug-hurd@gnu.org, oskit-users <oskit-users@fast.cs.utah.edu>
Subject: Re: gnumach2 & the serial port
Date: Fri, 07 Mar 2003 18:29:14 +0100
In-Reply-To: <20030216002417.31D111B9E0@perdition.linnaean.org> (Roland
 McGrath's message of "Sat, 15 Feb 2003 19:24:17 -0500 (EST)")
Message-ID: <87ptp36q6t.fsf@monom.org>
User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2
References: <20030216002417.31D111B9E0@perdition.linnaean.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

> for a low-level interface.  My thinking is to come up with a reasonable
> oskit interface for serial ports with modem control (layered on top of the
> trivial streamdev, but different from ttydev).  

I finally managed to get the sio driver from freebsd working with the
gnumach kernel.  Was quite tricky to find the problems and the code is
more or less a hack.  To fix the last we defently need a such a
interface.  Here is my (first) attempt to such an interface.  Of
course some more glue code is needed for this interface.

daniel


/*
 * Copyright (c) 1997-1998,2002 University of Utah and the Flux Group.
 * All rights reserved.
 * @OSKIT-FLUX-GPLUS@
 */
/*
 * Definition of the oskit_serialdev interface representing
 * stream devices.
 */
#ifndef _OSKIT_DEV_SERIALDEV_H_
#define _OSKIT_DEV_SERIALDEV_H_

#include <oskit/dev/stream.h>


/*
 * Standard serail device node interface, derived from oskit_streamdev_t,
 * IID 4aa7dfa6-7c74-11cf-b500-08000953adc2.
 */
struct oskit_serialdev
{
	struct oskit_serialdev_ops *ops;
};
typedef struct oskit_serialdev oskit_serialdev_t;

struct oskit_serialdev_ops
{
	/* COM-specified IUnknown interface operations */
	OSKIT_COMDECL_IUNKNOWN(oskit_serialdev_t)

	/* Base fdev device interface operations */
	OSKIT_COMDECL	(*getinfo)(oskit_serialdev_t *fdev,
				   oskit_devinfo_t *out_info);
	OSKIT_COMDECL	(*getdriver)(oskit_serialdev_t *fdev,
				     oskit_driver_t **out_driver);

	/* Stream device interface operations */
	OSKIT_COMDECL	(*open)(oskit_serialdev_t *dev, oskit_u32_t flags,
				struct oskit_stream **out_stream);

	/* Serial device interface operations */
	OSKIT_COMDECL   (*set_speed)(oskit_serialdev_t *dev, oskit_u32_t speed);
	OSKIT_COMDECL   (*get_speed)(oskit_serialdev_t *dev, oskit_u32_t *speed);
	OSKIT_COMDECL   (*enable_rts)(oskit_serialdev_t *dev);
	OSKIT_COMDECL   (*disable_rts)(oskit_serialdev_t *dev);
	OSKIT_COMDECL   (*read_rts)(oskit_serialdev_t *dev, oskit_u32_t *rts);
	OSKIT_COMDECL   (*read_cts)(oskit_serialdev_t *dev);
	OSKIT_COMDECL   (*read_dsr)(oskit_serialdev_t *dev, oskit_u32_t *dsr);
	OSKIT_COMDECL   (*enable_dtr)(oskit_serialdev_t *dev);
	OSKIT_COMDECL   (*disable_dtr)(oskit_serialdev_t *dev);
	OSKIT_COMDECL   (*read_dtr)(oskit_serialdev_t *dev);
};

/* GUID for fdev block device interface */
extern const struct oskit_guid oskit_serialdev_iid;
#define OSKIT_SERIALDEV_IID OSKIT_GUID(0x4aa700d, 0x7c74, 0x11cf, \
		0xb5, 0x00, 0x08, 0x00, 0x09, 0x53, 0xad, 0xc2)

#define oskit_serialdev_query(dev, iid, out_ihandle) \
	((dev)->ops->query((oskit_serialdev_t *)(dev), (iid), (out_ihandle)))
#define oskit_serialdev_addref(dev) \
	((dev)->ops->addref((oskit_serialdev_t *)(dev)))
#define oskit_serialdev_release(dev) \
	((dev)->ops->release((oskit_serialdev_t *)(dev)))
#define oskit_serialdev_getinfo(fdev, out_info) \
	((fdev)->ops->getinfo((oskit_serialdev_t *)(fdev), (out_info)))
#define oskit_serialdev_getdriver(fdev, out_driver) \
	((fdev)->ops->getdriver((oskit_serialdev_t *)(fdev), (out_driver)))
#define oskit_serialdev_open(dev, flags, out_stream) \
	((dev)->ops->open((oskit_serialdev_t *)(dev), (flags), (out_stream)))
#define oskit_serialdev_get_speed(dev, speed) \
	((dev)->ops->get_speed((oskit_serialdev_t *)(dev), (speed)))
#define oskit_serialdev_set_speed(dev, speed) \
	((dev)->ops->set_speed((oskit_serialdev_t *)(dev), (speed)))
#define oskit_serialdev_enable_rts(dev) \
	((dev)->ops->enable_rts((oskit_serialdev_t *)(dev)))
#define oskit_serialdev_disable_rts(dev) \
	((dev)->ops->disable_rts((oskit_serialdev_t *)(dev)))
#define oskit_serialdev_read_rts(dev, rts) \
	((dev)->ops->read_rts((oskit_serialdev_t *)(dev), (rts)))
#define oskit_serialdev_read_cts(dev, cts) \
	((dev)->ops->read_cts((oskit_serialdev_t *)(dev), (cts)))
#define oskit_serialdev_read_dsr(dev, dsr) \
	((dev)->ops->read_dsr((oskit_serialdev_t *)(dev), (dsr)))
#define oskit_serialdev_enable_dtr(dev) \
	((dev)->ops->enable_dtr((oskit_serialdev_t *)(dev)))
#define oskit_serialdev_disable_dtr(dev) \
	((dev)->ops->disable_dtr((oskit_serialdev_t *)(dev)))
#define oskit_serialdev_read_dtr(dev, dtr) \
	((dev)->ops->read_dtr((oskit_serialdev_t *)(dev), (dtr)))

#endif /* _OSKIT_DEV_SERIALDEV_H_ */

From owner-oskit-users@fast.cs.utah.edu  Sat Mar  8 12:55:14 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id MAA17619
	for oskit-users-hidden-out; Sat, 8 Mar 2003 12:55:14 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from perdition.linnaean.org (h00c095e26426.ne.client2.attbi.com [66.31.43.253])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id MAA17614
	for <oskit-users@fast.cs.utah.edu>; Sat, 8 Mar 2003 12:55:11 -0700 (MST)
Received: by perdition.linnaean.org (Postfix, from userid 5281)
	id AAA331BA2A; Sat,  8 Mar 2003 14:55:10 -0500 (EST)
From: Roland McGrath <roland@frob.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: Daniel Wagner <wagi@gmx.ch>
Cc: bug-hurd@gnu.org, oskit-users <oskit-users@fast.cs.utah.edu>
Subject: Re: gnumach2 & the serial port
In-Reply-To: Daniel Wagner's message of  Friday, 7 March 2003 18:29:14 +0100 <87ptp36q6t.fsf@monom.org>
X-Windows: you'd better sit down.
Message-Id: <20030308195510.AAA331BA2A@perdition.linnaean.org>
Date: Sat,  8 Mar 2003 14:55:10 -0500 (EST)
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

> I finally managed to get the sio driver from freebsd working with the
> gnumach kernel.  Was quite tricky to find the problems and the code is
> more or less a hack.  To fix the last we defently need a such a
> interface.  Here is my (first) attempt to such an interface.  Of
> course some more glue code is needed for this interface.

Nice work!  Can you show the code and say something about the problems and
hacks you had to do?

The serialdev interface is about the right level of abstraction, but I have
some different ideas about the details of the interface than what you've done.

oskit_device_t derivatives don't generally have control operations in their
direct interface.  Rather, their open method yields an object that has such
operations.  So, I think we want oskit_serialdev_t that has just an open
method and thus perhaps we can just use oskit_streamdev_t unmodified.  The
open method can produce objects that grok oskit_serialstream_t or such an
interface.  This then is the place for the modem control operationd and such.

The reason the interface is like this is so that "openness" can mean
something about the driver's state with respect to the hardware.  When you
have a handle on the device but have not called the open method, the
hardware might be turned off, needing reset, etc.  When you open it, it
will be catching the hardware interrupts, maintaining an input queue, etc.

There could reasonably be a single call to get/set the speed and other line
parameters like byte size and parity.  Might as well just be one, since the
underlying drivers we have are written with a single control interface anyway.

For fetching and changing the modem control bits, there should be just one
set of calls with a bitmask, i.e. equivalents to TIOCM* to set/clear some
or all bits.  

The main nonobvious thing we need is an interface for being notified on
modem status changes.  A simple thing is just to support asyncio and report
"exceptional conditions" on a modem status change.  So the caller wakes up
and calls read_modem_control or whatever it is to see what's happened.
Another idea is to structure it so that state transitions are never lost.
i.e., each change in the modem control bits is a event that is queued like
a byte of input.  I haven't decided whether it seems important to have an
interface that won't drop past states if there are multiple state changes
before the caller gets around to polling after a notification.  

Another question is synchronization of status changes with input.  I've
been saying "modem control changes", but really I am talking about all the
out-of-band information the device has to report.  This includes
e.g. hardware-detected parity errors.  For those, the user (i.e. the Hurd
terminal server) needs to get the parity-error event in the proper order
with respect to the good bytes that arrived before and after it.  So you
need the interface for reading bytes to interact with the status reporting.
e.g., read a packet of bytes + status info instead of just stream-reading;
or, having stream_read block (return EAGAIN or another error for this case)
until you've polled for status information.

From owner-oskit-users@fast.cs.utah.edu  Mon Mar 10 15:51:00 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: (from majordom@localhost)
	by fast.cs.utah.edu (8.9.1/8.9.1) id PAA08165
	for oskit-users-hidden-out; Mon, 10 Mar 2003 15:51:00 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from colo.walfield.org ([209.113.166.29])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id PAA08160
	for <oskit-users@fast.cs.utah.edu>; Mon, 10 Mar 2003 15:50:58 -0700 (MST)
Received: from dhcp-9-042.via-eth.ch (aragorn) [192.33.99.42] 
	by colo.walfield.org with esmtp (Exim 3.35 #1 (Debian))
	id 18sW9A-0007eO-00; Mon, 10 Mar 2003 17:53:28 -0500
Received: from wagi by aragorn with local (Exim 3.35 #1 (Debian))
	id 18sWAj-0000a5-00; Mon, 10 Mar 2003 23:55:05 +0100
From: Daniel Wagner <wagi@gmx.ch>
Mail-Copies-To: wagi@gmx.ch
To: Roland McGrath <roland@frob.com>
Cc: oskit-users <oskit-users@fast.cs.utah.edu>, bug-hurd@gnu.org
Subject: Re: gnumach2 & the serial port
References: <20030308195510.AAA331BA2A@perdition.linnaean.org>
Date: Mon, 10 Mar 2003 23:55:05 +0100
Message-ID: <87of4ibzna.fsf@monom.org>
User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

Roland McGrath <roland@frob.com> writes:
 
> Nice work!  Can you show the code and say something about the problems and
> hacks you had to do?

Sure (I was hopping to conceal my cruel hacks :)  I modified the oskit
sio driver so that only ttyS1 is initialised and ttyS0 left alone so
that remote debugging is still possible.  The only real problem
was finding out why the base_irq_handler from oskit was called and not the
gnumach interrupt handler.  Walking back through the IDT solved this
problem.  In gnumach/i386/i386at/int_init.c the IDT entry for INT 3
got a special treatment.  I had to disable that part, but I don't if
that was a bad idea.  Doesn't seem so far.

With a small test program which opens the @isa@0x02f8 device and writes a
string I was able to see that it works somewhat.  Of course on the
other end of the wire I got something scrambled but still a sign of
live.  Most likely that the settings of the device are wrong. 

> The main nonobvious thing we need is an interface for being notified on
> modem status changes.  A simple thing is just to support asyncio and report
> "exceptional conditions" on a modem status change.  So the caller wakes up
> and calls read_modem_control or whatever it is to see what's happened.
> Another idea is to structure it so that state transitions are never lost.
> i.e., each change in the modem control bits is a event that is queued like
> a byte of input.  I haven't decided whether it seems important to have an
> interface that won't drop past states if there are multiple state changes
> before the caller gets around to polling after a notification.  

Looking at the asyncio interface the first thing would be covered
'naturally' by it.  It depends if dropping state changes is important
or not.  I try to figure it out by looking how other system handle it. 

> Another question is synchronization of status changes with input.  I've
> [...]
> or, having stream_read block (return EAGAIN or another error for this case)
> until you've polled for status information.

This sounds more easier to implement.  If it is no problem I would
rather do this one :)

According to your tips I will give it another try for the
oskit_serialstream_t interface. 

thanks again for your explanations,
daniel 


diff -ru ../gnumach/Makefile.in ./Makefile.in
--- ../gnumach/Makefile.in	2003-01-29 23:46:54.000000000 +0100
+++ ./Makefile.in	2003-02-08 13:13:50.000000000 +0100
@@ -135,7 +135,8 @@
 	       ds_mem.c ds_bus.c \
 	       ds_net.c \
 	       ds_stream.c \
-	       ds_asyncio.c smp-glue.c
+	       ds_asyncio.c smp-glue.c \
+	       ds_serial.c
 oskit-files = $(oskit-cfiles) ds_oskit.h
 
 oskit-dirs-alpha := alpha pc
@@ -275,7 +276,7 @@
 OSKIT_LIBDIR = @OSKIT_LIBDIR@
 OSKIT_LIBS = -loskit_kern -loskit_lmm -loskit_com @SMP_LIBS@ \
 	     -loskit_exec -loskit_unsupp \
-	     -loskit_dev -loskit_linux_dev \
+	     -loskit_dev -loskit_linux_dev -loskit_freebsd_dev \
 	     -loskit_diskpart 
 
 # These rules are useful for development, but have significant overhead.
diff -ru ../gnumach/i386/i386at/int_init.c ./i386/i386at/int_init.c
--- ../gnumach/i386/i386at/int_init.c	2002-11-08 17:29:34.000000000 +0100
+++ ./i386/i386at/int_init.c	2003-03-05 11:06:20.000000000 +0100
@@ -36,12 +36,12 @@
 	int i;
 
 	for (i = 0; i < 16; i++) {
-	  int com_irq = 3;	/* XXX */
-	  if (i == com_irq) {
-	    intpri[i] == SPLDEBUG;
-	    form_pic_mask();
-	  }
-	  else
+/* 	  int com_irq = 3;	/\* XXX *\/ */
+/* 	  if (i == com_irq) { */
+/* 	    intpri[i] == SPLDEBUG; */
+/* 	    form_pic_mask(); */
+/* 	  } */
+/* 	  else */
 	  	fill_irq_gate(i,
 			      int_entry_table[i], KERNEL_CS,
 			      ACC_PL_K|ACC_INTR_GATE);
diff -ru ../gnumach/oskit/ds_osenv.c ./oskit/ds_osenv.c
--- ../gnumach/oskit/ds_osenv.c	2002-11-09 23:28:04.000000000 +0100
+++ ./oskit/ds_osenv.c	2003-03-05 21:53:02.000000000 +0100
@@ -62,6 +62,7 @@
     panic ("cannot create interrupt-driven console stream: %x\n", rc);
 
   oskit_linux_init_osenv (mach_osenv);
+  oskit_freebsd_init_osenv (mach_osenv);
   oskit_linux_init_devs ();
+  oskit_freebsd_init_sio ();
 }
diff -ru ../gnumach/oskit/ds_oskit.h ./oskit/ds_oskit.h
--- ../gnumach/oskit/ds_oskit.h	2002-11-08 17:29:34.000000000 +0100
+++ ./oskit/ds_oskit.h	2003-02-09 18:37:32.000000000 +0100
@@ -52,6 +52,8 @@
 #include <oskit/diskpart/diskpart.h>
 #include <oskit/com/stream.h>
 #include <oskit/io/asyncio.h>
+#include <oskit/io/ttystream.h>
+#include <oskit/dev/tty.h>
 #include <oskit/dev/net.h>
 #include <oskit/io/netio.h>
 #if defined(__i386__)
@@ -90,6 +92,8 @@
     struct {
       oskit_stream_t *io;
       oskit_asyncio_t *aio;
+      oskit_ttydev_t *td;
+      oskit_ttystream_t *si;
       oskit_s32_t listening;	/* OSKIT_ASYNCIO_* */
       queue_head_t read_queue, write_queue; /* queued requests */
       queue_chain_t ready_queue; /* when on device_ready_queue */
@@ -141,6 +145,7 @@
 extern const struct device_ops net_device_ops;
 extern const struct device_ops mem_device_ops;
 extern const struct device_ops bus_device_ops;
+extern const struct device_ops ttystream_device_ops;
 
 extern oskit_error_t ds_netdev_open (device_t dev, oskit_netdev_t *netdev);
 
diff -ru ../gnumach/oskit/ds_routines.c ./oskit/ds_routines.c
--- ../gnumach/oskit/ds_routines.c	2002-12-11 23:01:58.000000000 +0100
+++ ./oskit/ds_routines.c	2003-03-05 11:14:06.000000000 +0100
@@ -52,10 +52,12 @@
 #ifdef HAVE_OSKIT_DEV_STREAM_H
 # include <oskit/dev/stream.h>
 #endif
+#include <oskit/dev/tty.h>
 #include <oskit/dev/net.h>
 #include <oskit/dev/linux.h>
 #include <oskit/com/stream.h>
 #include <oskit/c/stdlib.h>
+#include <oskit/fs/file.h> /* XXX OSKIT_O_RDONLY, OSKIT_O_WRONLY */
 
 #include <oskit/machine/pc/direct_cons.h> /* XXX direct_cons_set_flags */
 
@@ -441,6 +443,16 @@
 	if ((void *) com_device == kmsg_stream && (mode & D_READ))
 	  ++kmsg_readers;
       }
+    else if (oskit_device_query (com_device, &oskit_ttydev_iid,
+				 (void **) &dev->com.stream.td) == 0)
+      {
+	ops = &ttystream_device_ops;
+	rc = oskit_ttydev_open (dev->com.stream.td,
+				((mode & D_READ) ? OSKIT_O_RDONLY : 0) |
+				((mode & D_WRITE) ? OSKIT_O_WRONLY : 0),
+				&dev->com.stream.si);
+	oskit_ttydev_release (dev->com.stream.td);
+      }
     else if (oskit_device_query (com_device, &oskit_bus_iid,
 				 (void **) &bus) == 0)
       {
--- /dev/null	2003-02-13 09:27:53.000000000 +0100
+++ oskit/ds_serial.c	2003-03-05 21:46:26.000000000 +0100
@@ -0,0 +1,81 @@
+#include "ds_oskit.h"
+
+#include <oskit/io/ttystream.h>
+
+/* Straight forward implementation.  I'm not sure if this implementation 
+   handles all needed cases.  Are there any message larger then we can
+   handle? (e.g. ds_blkio_write_inband)  */
+io_return_t
+ds_ttystream_write_inband (device_t dev, ipc_port_t reply_port,
+			   mach_msg_type_name_t reply_port_type, 
+			   dev_mode_t mode, recnum_t recnum, 
+			   io_buf_ptr_t data, unsigned int count,
+			   int *bytes_written)
+{
+  oskit_error_t rc;
+  oskit_u32_t wrote;
+
+  rc = oskit_ttystream_write (dev->com.stream.si, data, count, &wrote);
+  
+  if (rc)
+    return oskit_to_mach_error (rc);
+  
+  if (wrote == count)
+    {
+      *bytes_written = wrote;
+      return D_SUCCESS;
+    }
+ 
+  return D_IO_ERROR; /* XXX maybe the wrong error code */
+}
+
+
+io_return_t
+ds_ttystream_read_inband (device_t dev, ipc_port_t reply_port,
+			  mach_msg_type_name_t reply_port_type, 
+			  dev_mode_t mode, recnum_t recnum, int count, 
+			  char *data, unsigned *bytes_read)
+{
+  oskit_error_t rc;
+
+  if (count == 0)
+    {
+      *bytes_read = 0;
+      return D_SUCCESS;
+    }
+  
+  rc = oskit_ttystream_read (dev->com.stream.si, data, count, bytes_read);
+  return oskit_to_mach_error (rc);
+}
+
+
+io_return_t
+ds_ttystream_set_status (device_t dev, dev_flavor_t flavor,
+			 dev_status_t status, 
+			 mach_msg_type_number_t status_count)
+{
+  oskit_error_t rc;
+
+  INVALOP;
+}
+
+
+io_return_t
+ds_ttystream_get_status (device_t dev, dev_flavor_t flavor, 
+			 dev_status_t status,
+			 mach_msg_type_number_t *status_count)
+{
+  oskit_error_t rc;
+
+  INVALOP;
+}
+
+
+const struct device_ops ttystream_device_ops =
+{
+  write_inband: ds_ttystream_write_inband,
+  read_inband: ds_ttystream_read_inband,
+  set_status: ds_ttystream_set_status,
+  get_status: ds_ttystream_get_status,
+  /* XXX close ?!? */
+};



From owner-oskit-users@fast.cs.utah.edu  Tue Mar 18 04:48:55 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: (from majordom@localhost)
	by fast.cs.utah.edu (8.9.1/8.9.1) id EAA09965
	for oskit-users-hidden-out; Tue, 18 Mar 2003 04:48:55 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from colo.walfield.org ([209.113.166.29])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id EAA09960
	for <oskit-users@fast.cs.utah.edu>; Tue, 18 Mar 2003 04:48:51 -0700 (MST)
Received: from dhcp-9-042.via-eth.ch (aragorn) [192.33.99.42] 
	by colo.walfield.org with esmtp (Exim 3.35 #1 (Debian))
	id 18vFd0-0005Gt-00; Tue, 18 Mar 2003 06:51:34 -0500
Received: from wagi by aragorn with local (Exim 3.35 #1 (Debian))
	id 18vFeR-0002tu-00; Tue, 18 Mar 2003 12:53:03 +0100
From: Daniel Wagner <wagi@gmx.ch>
Mail-Copies-To: wagi@gmx.ch
To: Roland McGrath <roland@frob.com>
Cc: oskit-users <oskit-users@fast.cs.utah.edu>, bug-hurd@gnu.org
Subject: Re: gnumach2 & the serial port
Date: Tue, 18 Mar 2003 12:53:03 +0100
In-Reply-To: <20030308195510.AAA331BA2A@perdition.linnaean.org> (Roland
 McGrath's message of "Sat,  8 Mar 2003 14:55:10 -0500 (EST)")
Message-ID: <8765qgnb6o.fsf@monom.org>
User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2
References: <20030308195510.AAA331BA2A@perdition.linnaean.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

Here is my second attempt.  If this interface is somewhat sane I start
to hack the needed wrapper code.

thanks,
daniel


/*
 * Copyright (c) 1997-1998,2002 University of Utah and the Flux Group.
 * All rights reserved.
 * @OSKIT-FLUX-GPLUS@
 */
/*
 * Definition of a COM interface to support basic serial streams
 */
#ifndef _OSKIT_IO_SERIALSTREAM_H_
#define _OSKIT_IO_SERIALSTREAM_H_

#include <oskit/com.h>
#include <oskit/types.h>
#include <oskit/com/stream.h>

/* XXX The naming scheme looks broken. */
#define OSKIT_IOSPEEDSET      0x001           /* Set the baud rate.  */
#define OSKIT_IOSPEEDGET      0x002           /* Get the baud rate.  */

#define	OSKIT_TIOCMSET	      0x001           /* Set all modem bits.  */
#define	OSKIT_TIOCMBIS	      0x002           /* BIS modem bits.  */
#define	OSKIT_TIOCMBIC	      0x003           /* BIC modem bits.  */
#define	OSKIT_TIOCMGET        0x004	      /* Get all modem bits.  */

#define OSKIT_TIOCM_LE        0x001
#define OSKIT_TIOCM_DTR       0x002
#define OSKIT_TIOCM_RTS       0x004
#define OSKIT_TIOCM_ST        0x008
#define OSKIT_TIOCM_SR        0x010
#define OSKIT_TIOCM_CTS       0x020
#define OSKIT_TIOCM_CAR       0x040
#define OSKIT_TIOCM_RNG       0x080
#define OSKIT_TIOCM_DSR       0x100
#define OSKIT_TIOCM_CD        OSKIT_TIOCM_CAR
#define OSKIT_TIOCM_RI        OSKIT_TIOCM_RNG


/*
 * Basic serial stream object interface,
 * IID 4aa700e-7c74-11cf-b500-08000953adc2.
 * This interface extends the oskit_file interface.
 */
struct oskit_serialstream {
  struct oskit_serialstream_ops *ops;
};
typedef struct oskit_serialstream oskit_serialstream_t;

struct oskit_serialstream_ops {

  /* COM-specified IUnknown interface operations */
  OSKIT_COMDECL_IUNKOWN(oskit_serialstream_t)
       
  /* Operations inherited from IStream interface */
  OSKIT_COMDECL	(*read)(oskit_serialstream_t *s, void *buf, oskit_u32_t len,
			oskit_u32_t *out_actual);
  OSKIT_COMDECL	(*write)( oskit_serialstream_t *s, const void *buf,
			 oskit_u32_t len, oskit_u32_t *out_actual);
  OSKIT_COMDECL	(*seek)(oskit_serialstream_t *s, oskit_s64_t ofs,
			oskit_seek_t whence, oskit_u64_t *out_newpos);
  OSKIT_COMDECL	(*setsize)(oskit_serialstream_t *s, oskit_u64_t new_size);
  OSKIT_COMDECL	(*copyto)(oskit_serialstream_t *s, oskit_serialstream_t *dst,
			  oskit_u64_t size,
			  oskit_u64_t *out_read,
			  oskit_u64_t *out_written);
  OSKIT_COMDECL	(*commit)(oskit_serialstream_t *s,
			  oskit_u32_t commit_flags);
  OSKIT_COMDECL	(*revert)(oskit_serialstream_t *s);
  OSKIT_COMDECL	(*lockregion)(oskit_serialstream_t *s,
			      oskit_u64_t offset, oskit_u64_t size,
			      oskit_u32_t lock_type);
  OSKIT_COMDECL	(*unlockregion)(oskit_serialstream_t *s,
				oskit_u64_t offset, oskit_u64_t size,
				oskit_u32_t lock_type);
  OSKIT_COMDECL	(*stat)(oskit_serialstream_t *s,
			oskit_stream_stat_t *out_stat,
			oskit_u32_t stat_flags);
  OSKIT_COMDECL	(*clone)(oskit_serialstream_t *s,
			 oskit_serialstream_t **out_stream);
  
  /* Serial device interface operations */
  OSKIT_COMDECL (*iospeed)(oskit_serialdev_t *dev, oskit_u32_t request, 
			   oskit_u32_t *speed);
  OSKIT_COMDECL (*ioctl)(oskit_serialdev_t *dev, oskit_u32_t request, 
			 char *arg);
};

/* GUID for oskit_serialstream interface */
extern const struct oskit_guid oskit_serialstream_iid;
#define OSKIT_SERIALSTREAM_IID OSKIT_GUID(0x0aa7d00e, 0x7c74, 0x11cf, \
                          0xb5, 0x00, 0x08, 0x00, 0x09, 0x53, 0xad, 0xc2)

#define oskit_serialstream_query(s, iid, out_ihandle) \
	((s)->ops->query((oskit_serialstream_t *)(s), (iid), (out_ihandle)))
#define oskit_serialstream_addref(s) \
	((s)->ops->addref((oskit_serialstream_t *)(s)))
#define oskit_serialstream_release(s) \
	((s)->ops->release((oskit_serialstream_t *)(s)))
#define oskit_serialstream_read(s, buf, len, out_actual) \
	((s)->ops->read((oskit_serialstream_t *)(s), (buf), (len), (out_actual)))
#define oskit_serialstream_write(s, buf, len, out_actual) \
	((s)->ops->write((oskit_serialstream_t *)(s), (buf), (len), (out_actual)))
#define oskit_serialstream_seek(s, ofs, whence, out_newpos) \
	((s)->ops->seek((oskit_serialstream_t *)(s), (ofs), (whence), (out_newpos)))
#define oskit_serialstream_setsize(s, new_size) \
	((s)->ops->setsize((oskit_serialstream_t *)(s), (new_size)))
#define oskit_serialstream_copyto(s, dst, size, out_read, out_written) \
	((s)->ops->copyto((oskit_serialstream_t *)(s), (dst), (size), (out_read), (out_written)))
#define oskit_serialstream_commit(s, commit_flags) \
	((s)->ops->commit((oskit_serialstream_t *)(s), (commit_flags)))
#define oskit_serialstream_revert(s) \
	((s)->ops->revert((oskit_serialstream_t *)(s)))
#define oskit_serialstream_lockregion(s, offset, size, lock_type) \
	((s)->ops->lockregion((oskit_serialstream_t *)(s), (offset), (size), (lock_type)))
#define oskit_serialstream_unlockregion(s, offset, size, lock_type) \
	((s)->ops->unlockregion((oskit_serialstream_t *)(s), (offset), (size), (lock_type)))
#define oskit_serialstream_stat(s, out_stat, stat_flags) \
	((s)->ops->stat((oskit_serialstream_t *)(s), (out_stat), (stat_flags)))
#define oskit_serialstream_clone(s, out_stream) \
	((s)->ops->clone((oskit_serialstream_t *)(s), (out_stream)))
#define oskit_serialstream_iospeed(s, request, speed) \
        ((s)->ops->ioctl((oskit_serialstream_t *)(s), (request), (speed)))
#define oskit_serialstream_ioctl(s, request, arg) \
        ((s)->ops->ioctl((oskit_serialstream_t *)(s), (request), (arg)))

#endif /* _OSKIT_IO_SERIALSTREAM_H_ */

From owner-oskit-users@fast.cs.utah.edu  Tue Mar 25 16:57:54 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id QAA19384
	for oskit-users-hidden-out; Tue, 25 Mar 2003 16:57:54 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from smtp1.libero.it (smtp1.libero.it [193.70.192.51])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id QAA19379
	for <oskit-users@fast.cs.utah.edu>; Tue, 25 Mar 2003 16:57:49 -0700 (MST)
Received: from bsdabarth.libero.it (151.28.139.148) by smtp1.libero.it (6.7.015) (authenticated as glguida@libero.it)
        id 3E44E7FA011723DA for oskit-users@fast.cs.utah.edu; Wed, 26 Mar 2003 00:57:18 +0100
Content-Type: text/plain;
  charset="us-ascii"
From: Gianluca Guida <glguida@supereva.it>
To: oskit-users@fast.cs.utah.edu
Subject: SMP support in OSKit
Date: Wed, 26 Mar 2003 00:57:44 +0100
User-Agent: KMail/1.4.3
MIME-Version: 1.0
Message-Id: <200303260057.44957.glguida@supereva.it>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by fast.cs.utah.edu id QAA19380
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

Hello,
Is there a particular reason for marking the smp support code as "broken"?
I've tried the example smp kernel on my dual Pentium III and it worked just 
fine.

Regards,
Gianluca

From owner-oskit-users@fast.cs.utah.edu  Tue Mar 25 22:29:07 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id WAA21217
	for oskit-users-hidden-out; Tue, 25 Mar 2003 22:29:07 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from mtiwmhc11.worldnet.att.net (mtiwmhc11.worldnet.att.net [204.127.131.115])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id WAA21212
	for <oskit-users@fast.cs.utah.edu>; Tue, 25 Mar 2003 22:29:05 -0700 (MST)
Received: from who5 (147.new-york-19rh16rt-ny.dial-access.att.net[12.88.197.147])
          by mtiwmhc11.worldnet.att.net (mtiwmhc11) with SMTP
          id <2003032605283411100rin7je>; Wed, 26 Mar 2003 05:28:34 +0000
Reply-To: <gregg@levine.name>
From: "Gregg C Levine" <hansolofalcon@worldnet.att.net>
To: <oskit-users@fast.cs.utah.edu>
Subject: A thought about Mach
Date: Wed, 26 Mar 2003 00:28:31 -0500
Keywords: Ideas, Recreation, Status, Strategies, Waiting
Message-ID: <000201c2f358$8a614fa0$93c5580c@who5>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.4510
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Importance: Normal
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by fast.cs.utah.edu id WAA21213
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

Hello again from Gregg C Levine
Can anyone on this list comment as to when development on the Utah
Mach implementation ceased activities? This is for the i386 platform.

I know, I have been assured that the best way to continue, is to
switch to the GNU Mach code, but for reasons that I do not want to go
into on a message that will be posted to the list, I want to explore
options using code from it. Using the kernels that were so built as to
allow them to be built to boot from LILO, I have gotten as far as a
kernel debugger prompt. That is a ddb prompt. That one was zMach.UK22.

So, anybody with that info? Oh and the date on that one was March 29,
1996. It does give me something to base my information.
Jay, if you're out there, you too, can comment. I'll even accept
replies off list.
If possible I want to actually boot a system using that kernel
completely.
-------------------
Gregg C Levine hansolofalcon@worldnet.att.net
------------------------------------------------------------
"The Force will be with you...Always." Obi-Wan Kenobi
"Use the Force, Luke."  Obi-Wan Kenobi
(This company dedicates this E-Mail to General Obi-Wan Kenobi )
(This company dedicates this E-Mail to Master Yoda )





From owner-oskit-users@fast.cs.utah.edu  Wed Mar 26 09:40:47 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id JAA29624
	for oskit-users-hidden-out; Wed, 26 Mar 2003 09:40:47 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from hotmail.com (f151.law11.hotmail.com [64.4.17.151])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id JAA29619
	for <oskit-users@fast.cs.utah.edu>; Wed, 26 Mar 2003 09:40:45 -0700 (MST)
Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
	 Wed, 26 Mar 2003 08:40:12 -0800
Received: from 149.164.158.239 by lw11fd.law11.hotmail.msn.com with HTTP;
	Wed, 26 Mar 2003 16:40:12 GMT
X-Originating-IP: [149.164.158.239]
X-Originating-Email: [joe_kaylor@hotmail.com]
From: "joe kaylor" <joe_kaylor@hotmail.com>
To: oskit-users@fast.cs.utah.edu
Subject: Re: A thought about Mach
Date: Wed, 26 Mar 2003 16:40:12 +0000
Mime-Version: 1.0
Content-Type: text/html
Message-ID: <F151woRRMcA9ySxBL6900001d8c@hotmail.com>
X-OriginalArrivalTime: 26 Mar 2003 16:40:12.0568 (UTC) FILETIME=[5F256980:01C2F3B6]
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

<html><div style='background-color:'><DIV>
<P>another thaught other than the GNU Mach kernel code would be to investigate the BSD series of kernels.&nbsp; They are built upon a system VERY similar to (same?) as Mach.&nbsp; I believe everyone is familiar with the BSD microkernel and the Lites server series.&nbsp; I personally believe that NetBSD and FreeBSD would be your best bet as an alternative to the GNU code.&nbsp;&nbsp;Also, there is the Darwin project (a derivative of FreeBSD... 4.4 or 4.5 i think) that has an ix86 port that you may want to investigate.</P>
<P>I personally prefer the GNU code because it already compiles on my linux box (w/ minimal work and adjustment) and there is an active CVS server with many patches and fixes on a regular basis (to my knowledge, at least).</P>
<P>I'm not exactly sure what your needs are, but I believe that this should help.</P>
<P>resources:</P>
<P><A href="http://www.freebsd.org">www.freebsd.org</A> <A href="http://www.netbsd.org">www.netbsd.org</A> <A href="http://developer.apple.com/darwin/">http://developer.apple.com/darwin/</A>&nbsp; <A href="http://www.gnu.org/software/hurd/download.html">http://www.gnu.org/software/hurd/download.html</A></P>
<P>&gt;From: "Gregg C Levine" <HANSOLOFALCON@WORLDNET.ATT.NET></P></DIV>
<DIV></DIV>&gt;Reply-To: <GREGG@LEVINE.NAME>
<DIV></DIV>&gt;To: <OSKIT-USERS@FAST.CS.UTAH.EDU>
<DIV></DIV>&gt;Subject: A thought about Mach 
<DIV></DIV>&gt;Date: Wed, 26 Mar 2003 00:28:31 -0500 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Hello again from Gregg C Levine 
<DIV></DIV>&gt;Can anyone on this list comment as to when development on the Utah 
<DIV></DIV>&gt;Mach implementation ceased activities? This is for the i386 platform. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;I know, I have been assured that the best way to continue, is to 
<DIV></DIV>&gt;switch to the GNU Mach code, but for reasons that I do not want to go 
<DIV></DIV>&gt;into on a message that will be posted to the list, I want to explore 
<DIV></DIV>&gt;options using code from it. Using the kernels that were so built as to 
<DIV></DIV>&gt;allow them to be built to boot from LILO, I have gotten as far as a 
<DIV></DIV>&gt;kernel debugger prompt. That is a ddb prompt. That one was zMach.UK22. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;So, anybody with that info? Oh and the date on that one was March 29, 
<DIV></DIV>&gt;1996. It does give me something to base my information. 
<DIV></DIV>&gt;Jay, if you're out there, you too, can comment. I'll even accept 
<DIV></DIV>&gt;replies off list. 
<DIV></DIV>&gt;If possible I want to actually boot a system using that kernel 
<DIV></DIV>&gt;completely. 
<DIV></DIV>&gt;------------------- 
<DIV></DIV>&gt;Gregg C Levine hansolofalcon@worldnet.att.net 
<DIV></DIV>&gt;------------------------------------------------------------ 
<DIV></DIV>&gt;"The Force will be with you...Always." Obi-Wan Kenobi 
<DIV></DIV>&gt;"Use the Force, Luke."&nbsp; Obi-Wan Kenobi 
<DIV></DIV>&gt;(This company dedicates this E-Mail to General Obi-Wan Kenobi ) 
<DIV></DIV>&gt;(This company dedicates this E-Mail to Master Yoda ) 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV></div><br clear=all><hr>  </html>

From owner-oskit-users@fast.cs.utah.edu  Sun Mar 30 18:21:03 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id SAA18106
	for oskit-users-hidden-out; Sun, 30 Mar 2003 18:21:03 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from mtiwmhc11.worldnet.att.net (mtiwmhc11.worldnet.att.net [204.127.131.115])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id SAA18098
	for <oskit-users@fast.cs.utah.edu>; Sun, 30 Mar 2003 18:21:00 -0700 (MST)
Received: from who5 (234.new-york-01rh16rt-ny.dial-access.att.net[12.88.161.234])
          by mtiwmhc11.worldnet.att.net (mtiwmhc11) with SMTP
          id <2003033101202811100he5toe>; Mon, 31 Mar 2003 01:20:28 +0000
From: "Gregg C Levine" <hansolofalcon@worldnet.att.net>
To: <oskit-users@fast.cs.utah.edu>
Subject: Strange problem with GNU Mach-OSkit
Date: Sun, 30 Mar 2003 20:20:37 -0500
Message-ID: <000001c2f723$bd154900$eaa1580c@who5>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.4510
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by fast.cs.utah.edu id SAA18099
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

Hello from Gregg C Levine
This might not be the appropriate place for this problem, but here
goes.
Roland McGrath, can you go to my web site, www.gregg.levine.name
there's a webpage up that's aimed towards you, complete with notes
regarding my current project, and problem. When you have the time of
course. Or anyone else who has used the software that he has
developed.

When you go to the front page, scroll down towards the bottom. That's
the location of a short introduction of my problem, and then the link
to the actual page.

That of building the current snapshot for OSkit-Mach. Basically it
decided to quit with a peculiar error message. Since its too long, I
decided to make a webpage out of the script. I think its looking for
newer releases of the auto* programs and tools then the folks at
Slackware provided with version of 8.0.
-------------------
Gregg C Levine hansolofalcon@worldnet.att.net
------------------------------------------------------------
"The Force will be with you...Always." Obi-Wan Kenobi
"Use the Force, Luke."  Obi-Wan Kenobi
(This company dedicates this E-Mail to General Obi-Wan Kenobi )
(This company dedicates this E-Mail to Master Yoda )


From owner-oskit-users@fast.cs.utah.edu  Sun Mar 30 19:09:43 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id TAA18475
	for oskit-users-hidden-out; Sun, 30 Mar 2003 19:09:43 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from feynman.localnet (dsl092-070-217.bos1.dsl.speakeasy.net [66.92.70.217])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id TAA18470
	for <oskit-users@fast.cs.utah.edu>; Sun, 30 Mar 2003 19:09:40 -0700 (MST)
Received: from jtobey by feynman.localnet with local (Exim 3.35 #1 (Debian))
	id 18zoyE-000159-00; Sun, 30 Mar 2003 21:24:22 -0500
Date: Sun, 30 Mar 2003 21:24:22 -0500
From: John Tobey <jtobey@john-edwin-tobey.org>
To: Gregg C Levine <hansolofalcon@worldnet.att.net>
Cc: oskit-users@fast.cs.utah.edu
Subject: Re: Strange problem with GNU Mach-OSkit
Message-ID: <20030331022422.GA4134@john-edwin-tobey.org>
References: <000001c2f723$bd154900$eaa1580c@who5>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <000001c2f723$bd154900$eaa1580c@who5>
User-Agent: Mutt/1.3.28i
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

On Sun, Mar 30, 2003 at 08:20:37PM -0500, Gregg C Levine wrote:
> When you go to the front page, scroll down towards the bottom. That's
> the location of a short introduction of my problem, and then the link
> to the actual page.

    cd . && autoheader
    autoheader: error: shell error while sourcing /tmp/ah7445/traces.sh
    make: *** [config.h.in] Error 1

This results from a problem with file times in CVS.  I got around it
by touching config.h.in .

-- 
John Tobey <jtobey@john-edwin-tobey.org>
\____^-^
/\  /\

From owner-oskit-users@fast.cs.utah.edu  Wed Apr  2 10:07:09 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: (from majordom@localhost)
	by fast.cs.utah.edu (8.9.1/8.9.1) id KAA22210
	for oskit-users-hidden-out; Wed, 2 Apr 2003 10:07:09 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from smtp0.libero.it (smtp0.libero.it [193.70.192.33])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id KAA22202
	for <oskit-users@fast.cs.utah.edu>; Wed, 2 Apr 2003 10:07:05 -0700 (MST)
Received: from bsdabarth.libero.it (151.28.136.14) by smtp0.libero.it (7.0.012) (authenticated as glguida@libero.it)
        id 3E81B41B00291461 for oskit-users@fast.cs.utah.edu; Wed, 2 Apr 2003 19:06:34 +0200
From: Gianluca Guida <glguida@supereva.it>
To: oskit-users@fast.cs.utah.edu
Subject: low level locks
Date: Wed, 2 Apr 2003 19:06:36 +0200
User-Agent: KMail/1.4.3
MIME-Version: 1.0
Content-Type: Multipart/Mixed;
  boundary="------------Boundary-00=_0J7QZHJI5TJ5299WC9X8"
Message-Id: <200304021906.36608.glguida@supereva.it>
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk


--------------Boundary-00=_0J7QZHJI5TJ5299WC9X8
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hello,
seeking for the problems of SMP support in OSKit, i realized that the fir=
st=20
obstacle is the lack of an oskit-wide SMP fine grained low level locking=20
mechanism.

The attachment is my first attempt to create such thing. Comments welcome=
=2E

At the URL http://www.glguida.altervista.org/oskit.html you can find this=
=20
patch together with a variant of examples/x86/smp/smp.c who show the use =
of=20
these functions.

Regards,
Gianluca
--------------Boundary-00=_0J7QZHJI5TJ5299WC9X8
Content-Type: text/x-diff;
  charset="us-ascii";
  name="ll_lock-patch0"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="ll_lock-patch0"

diff -Nru /usr/local/cvs/oskit/kern/x86/base_critical.c oskit/kern/x86/base_critical.c
--- /usr/local/cvs/oskit/kern/x86/base_critical.c	Mon Mar 31 15:36:20 2003
+++ oskit/kern/x86/base_critical.c	Wed Apr  2 01:31:25 2003
@@ -16,28 +16,24 @@
  */
 /*
  * Simple "global critical section" implementation for panic, debugging, etc.
- * This implementation is for uniprocessors; for multiprocessors,
- * the SMP startup code in libsmp.a overrides it with a different version.
+ * This implementation works for both UP and smp. The SMP startup code in
+ * libsmp.a now overrides the ll_lock_* functions.
  */
 
 #include <oskit/x86/proc_reg.h>
+#include <oskit/x86/ll_lock.h>
 
 static unsigned entry_count;
 static unsigned saved_eflags;
+static ll_lock_t base_critical_mutex=LL_LOCK_INITVALUE;
 
 void base_critical_enter(void)
 {
-	if (entry_count == 0) {
-		saved_eflags = get_eflags();
-		cli();
-	}
-	entry_count++;
+
+	ll_lock_lock(&base_critical_mutex);
 }
 
 void base_critical_leave(void)
 {
-	if (--entry_count == 0) {
-		set_eflags(saved_eflags);
-	}
+	ll_lock_unlock(&base_critical_mutex);
 }
-
diff -Nru /usr/local/cvs/oskit/kern/x86/ll_lock.c oskit/kern/x86/ll_lock.c
--- /usr/local/cvs/oskit/kern/x86/ll_lock.c	Thu Jan  1 01:00:00 1970
+++ oskit/kern/x86/ll_lock.c	Wed Apr  2 01:31:25 2003
@@ -0,0 +1,52 @@
+/*
+ * Copyright (c) 1996-1998 The University of Utah and the Flux Group.
+ * 
+ * This file is part of the OSKit SMP Support Library, which is free software,
+ * also known as "open source;" you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License (GPL), version 2, as published
+ * by the Free Software Foundation (FSF).
+ * 
+ * The OSKit is distributed in the hope that it will be useful, but WITHOUT ANY
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE.  See the GPL for more details.  You should have
+ * received a copy of the GPL along with the OSKit; see the file COPYING.  If
+ * not, write to the FSF, 59 Temple Place #330, Boston, MA 02111-1307, USA.
+ */
+/*
+ * This is the uniprocessor version of the low level lock implementation. 
+ * It works here like a common global critical section mechanism but is much 
+ * more useful on multiprocessors (these functions are overriden by
+ * the liboskit_smp.a library when SMP support is turned on).
+ *
+ * This file comes from x86/base_critical.c
+ */
+
+#include <oskit/x86/ll_lock.h>
+#include <oskit/base_critical.h>
+#include <oskit/x86/proc_reg.h>
+
+extern int num_processors;
+
+void
+ll_lock_lock(ll_lock_t *ll_lock)
+{
+	if (ll_lock->nest_count == 0) {
+		ll_lock->saved_eflags = get_eflags();
+		cli();
+	}
+	ll_lock->nest_count++;
+}
+
+void
+ll_lock_unlock(ll_lock_t *ll_lock)
+{
+	if (--ll_lock->nest_count == 0) {
+		set_eflags(ll_lock->saved_eflags);
+	}
+}
+
+void
+ll_lock_init(ll_lock_t *ll_lock)
+{
+	ll_lock->nest_count=0;
+}
diff -Nru /usr/local/cvs/oskit/oskit/x86/ll_lock.h oskit/oskit/x86/ll_lock.h
--- /usr/local/cvs/oskit/oskit/x86/ll_lock.h	Thu Jan  1 01:00:00 1970
+++ oskit/oskit/x86/ll_lock.h	Wed Apr  2 01:31:25 2003
@@ -0,0 +1,17 @@
+#ifndef _OSKIT_X86_LL_LOCK_H_
+#define _OSKIT_X86_LL_LOCK_H_
+
+typedef struct {
+	volatile int	cpu_id;
+	unsigned int	nest_count;
+	unsigned int	saved_eflags;
+} ll_lock_t;
+
+#define LL_LOCK_INITVALUE \
+	{ cpu_id: -1, nest_count: 0, }
+
+void ll_lock_lock(ll_lock_t *);
+void ll_lock_unlock(ll_lock_t *);
+void ll_lock_init(ll_lock_t *);
+
+#endif /* _OSKIT_X86_LL_LOCK_H_ */
diff -Nru /usr/local/cvs/oskit/smp/x86/critical.c oskit/smp/x86/critical.c
--- /usr/local/cvs/oskit/smp/x86/critical.c	Mon Mar 31 15:36:12 2003
+++ oskit/smp/x86/critical.c	Wed Apr  2 01:31:25 2003
@@ -1,77 +0,0 @@
-/*
- * Copyright (c) 1996-1998 The University of Utah and the Flux Group.
- * 
- * This file is part of the OSKit SMP Support Library, which is free software,
- * also known as "open source;" you can redistribute it and/or modify it under
- * the terms of the GNU General Public License (GPL), version 2, as published
- * by the Free Software Foundation (FSF).
- * 
- * The OSKit is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE.  See the GPL for more details.  You should have
- * received a copy of the GPL along with the OSKit; see the file COPYING.  If
- * not, write to the FSF, 59 Temple Place #330, Boston, MA 02111-1307, USA.
- */
-
-/*
- * This is the critical_section code.  It is NOT designed to provide
- * a locking mechanism for general use; however, it does provide a
- * simple recursive lock which can be used for debugging and speed-
- * insensitive code (such as puts/putc).  Critical sections should 
- * have their own locks, rather than all sharing a common lock.
- */
-
-#include <oskit/smp.h>
-#include <oskit/x86/smp.h>
-#include <oskit/base_critical.h>
-#include <oskit/x86/proc_reg.h>
-#include "linux-smp.h"
-
-/* This also acts as the spin lock; -1 means unlocked. */
-static volatile unsigned critical_cpu_id = -1;
-
-static unsigned critical_nest_count;
-static unsigned critical_saved_eflags;
-
-extern unsigned int num_processors;
-
-void base_critical_enter(void)
-{
-	unsigned old_eflags = get_eflags();
-	unsigned cpu_id = (num_processors > 1) ? smp_find_cur_cpu() : 0;
-
-	/* First make sure we get no interference from interrupt activity. */
-	cli();
-
-	/* If we already own the lock, just increment the count and return. */
-	if (critical_cpu_id == cpu_id) {
-		critical_nest_count++;
-		return;
-	}
-
-	/* Lock the global spin lock, waiting if another processor has it. */
-	asm volatile("1: movl $-1,%%eax; lock; cmpxchgl %0,(%1); jne 1b"
-		     : : "r" (cpu_id), "r" (&critical_cpu_id) : "eax");
-
-	critical_nest_count = 0;
-	critical_saved_eflags = old_eflags;
-}
-
-void base_critical_leave(void)
-{
-	unsigned old_eflags;
-
-	if (critical_nest_count > 0) {
-		critical_nest_count--;
-		return;
-	}
-
-	old_eflags = critical_saved_eflags;
-
-	/* Unlock the global spin lock. */
-	asm volatile("movl %0,(%1)"
-		     : : "r" (-1), "r" (&critical_cpu_id));
-
-	set_eflags(old_eflags);
-}
-
diff -Nru /usr/local/cvs/oskit/smp/x86/ll_lock.c oskit/smp/x86/ll_lock.c
--- /usr/local/cvs/oskit/smp/x86/ll_lock.c	Thu Jan  1 01:00:00 1970
+++ oskit/smp/x86/ll_lock.c	Wed Apr  2 01:31:25 2003
@@ -0,0 +1,86 @@
+/*
+ * Copyright (c) 1996-1998 The University of Utah and the Flux Group.
+ * 
+ * This file is part of the OSKit SMP Support Library, which is free software,
+ * also known as "open source;" you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License (GPL), version 2, as published
+ * by the Free Software Foundation (FSF).
+ * 
+ * The OSKit is distributed in the hope that it will be useful, but WITHOUT ANY
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE.  See the GPL for more details.  You should have
+ * received a copy of the GPL along with the OSKit; see the file COPYING.  If
+ * not, write to the FSF, 59 Temple Place #330, Boston, MA 02111-1307, USA.
+ */
+/*
+ * This is the low level lock implementation. It provides fine
+ * grained critical section mechanism for general use and a simple
+ * recursive lock mechanism.
+ *
+ * This file comes from smp/critical.c
+ */
+
+#include <oskit/x86/ll_lock.h>
+#include <oskit/smp.h>
+#include <oskit/x86/smp.h>
+#include <oskit/base_critical.h>
+#include <oskit/x86/proc_reg.h>
+#include "linux-smp.h"
+
+extern int num_processors;
+
+void
+ll_lock_lock(ll_lock_t *ll_lock)
+{
+	unsigned old_eflags = get_eflags();
+	unsigned cpu_id = (num_processors > 1) ? smp_find_cur_cpu() : 0;
+
+
+	/* First make sure we get no interference from interrupt activity. */
+	cli();
+
+	/* If we already own the lock, just increment the count and return. */
+	if (ll_lock->cpu_id == cpu_id) {
+		ll_lock->nest_count++;
+		return;
+	}
+
+	/* Lock the global spin lock, waiting if another processor has it. */
+	asm volatile("1: movl $-1,%%eax; lock; cmpxchgl %0,%1; jne 1b"
+		     : : "r" (cpu_id), "m" (ll_lock->cpu_id) 
+		     : "eax");
+
+	ll_lock->nest_count = 0;
+	ll_lock->saved_eflags = old_eflags;
+
+}
+
+void
+ll_lock_unlock(ll_lock_t *ll_lock)
+{
+	unsigned old_eflags;
+
+
+	if (ll_lock->nest_count > 0) {
+		ll_lock->nest_count--;
+		return;
+	}
+
+	old_eflags = ll_lock->saved_eflags;
+
+	/* Unlock the global spin lock. */
+	asm volatile("movl $-1,%0"
+		     : : "m" (ll_lock->cpu_id));
+
+	set_eflags(old_eflags);
+
+}
+
+void
+ll_lock_init(ll_lock_t *ll_lock)
+{
+	/* Spinlock initialization: -1 means unlocked */
+	ll_lock->cpu_id=-1;
+
+	ll_lock->nest_count=0;
+}

--------------Boundary-00=_0J7QZHJI5TJ5299WC9X8--


From owner-oskit-users@fast.cs.utah.edu  Wed Apr  2 11:34:20 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: (from majordom@localhost)
	by fast.cs.utah.edu (8.9.1/8.9.1) id LAA23251
	for oskit-users-hidden-out; Wed, 2 Apr 2003 11:34:20 -0700 (MST)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from smtp0.libero.it (smtp0.libero.it [193.70.192.33])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id LAA23246
	for <oskit-users@fast.cs.utah.edu>; Wed, 2 Apr 2003 11:34:17 -0700 (MST)
Received: from bsdabarth.libero.it (151.28.138.97) by smtp0.libero.it (7.0.012) (authenticated as glguida@libero.it)
        id 3E81B41B0029B9A8 for oskit-users@fast.cs.utah.edu; Wed, 2 Apr 2003 20:33:47 +0200
From: Gianluca Guida <glguida@supereva.it>
To: oskit-users@fast.cs.utah.edu
Subject: SMP synchronization barrier
Date: Wed, 2 Apr 2003 20:33:49 +0200
User-Agent: KMail/1.4.3
MIME-Version: 1.0
Message-Id: <200304021906.34772.glguida@libero.it>
Content-Type: Multipart/Mixed;
  boundary="------------Boundary-00=_DKBQPOHVXW9Q51RDPTMN"
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk


--------------Boundary-00=_DKBQPOHVXW9Q51RDPTMN
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hello,
This is a simple processors barrier implementation for the x86 SMP. Can b=
e=20
useful for inter processors synchronization.

It has been tested on my dual PIII, but it should be scalable enough  to =
work=20
with more than 2 cpus.

The example kernel at URL http://www.glguida.altervista.org/oskit.html us=
e=20
this tool.

Gianluca


--------------Boundary-00=_DKBQPOHVXW9Q51RDPTMN
Content-Type: text/x-diff;
  charset="us-ascii";
  name="smp_barrier-patch0"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="smp_barrier-patch0"

diff -Nru /usr/local/cvs/oskit/oskit/x86/smp/smp_barrier.h oskit/oskit/x86/smp/smp_barrier.h
--- /usr/local/cvs/oskit/oskit/x86/smp/smp_barrier.h	Thu Jan  1 01:00:00 1970
+++ oskit/oskit/x86/smp/smp_barrier.h	Wed Apr  2 01:31:25 2003
@@ -0,0 +1,7 @@
+typedef struct {
+	int count;
+	int busy;
+} barrier_t;
+
+void smp_barrier(void);
+void smp_barrier_init(void);

diff -Nru /usr/local/cvs/oskit/smp/x86/smp_barrier.c oskit/smp/x86/smp_barrier.c
--- /usr/local/cvs/oskit/smp/x86/smp_barrier.c	Thu Jan  1 01:00:00 1970
+++ oskit/smp/x86/smp_barrier.c	Wed Apr  2 01:36:42 2003
@@ -0,0 +1,49 @@
+#include <oskit/smp.h>
+#include <oskit/x86/ll_lock.h>
+#include <oskit/x86/smp/smp_barrier.h>
+
+static ll_lock_t barrier_mutex=LL_LOCK_INITVALUE;
+
+static struct {
+	int count;
+	int busy;
+} barrier_struct;
+
+void smp_barrier_init()
+{
+	ll_lock_lock(&barrier_mutex);
+	barrier_struct.count=smp_get_num_cpus();
+	barrier_struct.busy=1;
+	ll_lock_unlock(&barrier_mutex);
+}
+
+void smp_barrier(void)
+{
+	ll_lock_lock(&barrier_mutex);
+
+	/* works if dec is atomic */
+	barrier_struct.count--;
+
+	/*
+	 * If we are the first that enter the barrier,
+	 * we set the spinning variable 
+ 	 */
+	if(!barrier_struct.busy) {
+		barrier_struct.busy=1;
+	}
+
+	/*
+	 * Everyone was waiting for us! Let's reset the 
+	 * counter and free them all.
+	 */
+	if(!barrier_struct.count) {
+		barrier_struct.count=smp_get_num_cpus();
+		barrier_struct.busy=0;
+		ll_lock_unlock(&barrier_mutex);
+		return;
+	}
+
+	ll_lock_unlock(&barrier_mutex);
+
+	asm volatile("1:cmp $0, %0; jnz 1b;\n" :: "m" (barrier_struct.busy));
+}

--------------Boundary-00=_DKBQPOHVXW9Q51RDPTMN--


From owner-oskit-users@fast.cs.utah.edu  Wed Apr  9 13:01:16 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id NAA20454
	for oskit-users-hidden-out; Wed, 9 Apr 2003 13:01:16 -0600 (MDT)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from mail.epost.de (mail.epost.de [193.28.100.165] (may be forged))
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id NAA20449
	for <oskit-users@flux.cs.utah.edu>; Wed, 9 Apr 2003 13:01:14 -0600 (MDT)
Received: from pc1.djthreem.de (80.133.248.99) by mail.epost.de (6.7.015) (authenticated as Matthias.Mueller36@epost.de)
        id 3E7A6C95001F28DF for oskit-users@flux.cs.utah.edu; Wed, 9 Apr 2003 21:01:13 +0200
From: Matthias Mueller <Matthias.Mueller36@epost.de>
To: oskit-users@fast.cs.utah.edu
Subject: Problems with compiling and using
Date: Wed, 9 Apr 2003 21:01:21 +0200
User-Agent: KMail/1.5
MIME-Version: 1.0
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200304092101.21771.Matthias.Mueller36@epost.de>
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

Hi,

i try to build an own OS with oskit, but when I try to compile the 
oskit, I get the follwoing error: 

/usr/src/packages/BUILD/glibc-2.2.5/csu/../sysdeps/unix/sysv/linux/init-first.c(data+0x0): 
multiple definition of '__libc_multiple_libcs' 
sbrk-hack.o(.data+0x0):/home/matmue/abc/oskit/oskit-20020317/unix../unix/linux/ 
sbrk-hack.c: first defined here 
make[1]: *** [nativecalls.o] Error 1 
make[1]: Leaving directory>>/home/matmue/abc/oskit/oskit-20020317/unix<< 
make: *** [unix/all.MAKE] Error 2 

I have SuSE 8.0 with gcc 2.95.3-216 and binutils 2.11.92.0.10-89. I 
tried with St. Patrick's Day and Valentine's Day Snapshot. 
Does anyone know whats wrong? 

Then somebody from alt.os.development adivised me to use the binary 
debian-package. Now the example kernels hello.c multiboot.c and timer.c 
work, no problem. But the others don't work. There are always errors 
"undefined reference". 

For example mouse.c: 
mouse.o: In function 'main': 
mouse.o(.text+0x2d): undefined reference to 'oskit_freebsd_init_osenv' 
mouse.o(.text+0x35): undefined reference to 'oskit_freebsd_init_psm' 
mouse.o(.text+0cd1): undefined reference to 'oskit_mouse_init' 
mouse.o(.text+0xf6): undefined reference to 'oskit_mouse_get_packet' 
collect2: ld returned 1 exit status 

or tty.c: 
tty.o: In function 'main': 
tty.o(.text+0x3d): undefined reference to 'oskit_freebsd_init_osenv' 
tty.o(.text+0x45): undefined reference to 'oskit_freebsd_init_sc' 
collect2: ld returned 1 exit status 

Any idea? Are there not all libraries in the debian-package? Are there 
other binary packages I can use?

Thanks.

Bye Matthias

From owner-oskit-users@fast.cs.utah.edu  Wed Apr  9 13:17:25 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id NAA20706
	for oskit-users-hidden-out; Wed, 9 Apr 2003 13:17:25 -0600 (MDT)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from mail.vis.ethz.ch (naboo.ethz.ch [129.132.17.66])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id NAA20701
	for <oskit-users@fast.cs.utah.edu>; Wed, 9 Apr 2003 13:17:22 -0600 (MDT)
Received: by mail.vis.ethz.ch (Postfix, from userid 1004)
	id 4E17B37AA; Wed,  9 Apr 2003 21:16:51 +0200 (CEST)
Received: from aragorn (dhcp-9-004.via-eth.ch [192.33.99.4])
	by mail.vis.ethz.ch (Postfix) with ESMTP
	id D0B8037A5; Wed,  9 Apr 2003 21:16:50 +0200 (CEST)
Received: by aragorn (Postfix, from userid 1000)
	id B159188C92; Wed,  9 Apr 2003 21:21:37 +0200 (CEST)
From: Daniel Wagner <wagi@gmx.ch>
Mail-Copies-To: wagi@gmx.ch
To: Matthias Mueller <Matthias.Mueller36@epost.de>
Cc: oskit-users@fast.cs.utah.edu
Subject: Re: Problems with compiling and using
Date: Wed, 09 Apr 2003 21:21:37 +0200
In-Reply-To: <200304092101.21771.Matthias.Mueller36@epost.de> (Matthias
 Mueller's message of "Wed, 9 Apr 2003 21:01:21 +0200")
Message-ID: <87el4bxyri.fsf@monom.org>
User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2
References: <200304092101.21771.Matthias.Mueller36@epost.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Status: No, hits=-4.4 required=5.0 tests=IN_REP_TO version=2.20
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

Hallo Matthias

> i try to build an own OS with oskit, but when I try to compile the 
> oskit, I get the follwoing error: 

This is an old know problem with certain distibutions (e.g. debian).
Comment the lines in sbrk-hack.c and that's it. 

cheers,
daniel

From owner-oskit-users@fast.cs.utah.edu  Wed Apr  9 14:44:30 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: (from majordom@localhost)
	by fast.cs.utah.edu (8.9.1/8.9.1) id OAA21465
	for oskit-users-hidden-out; Wed, 9 Apr 2003 14:44:30 -0600 (MDT)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from mail.epost.de ([193.28.100.184])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id OAA21460
	for <oskit-users@fast.cs.utah.edu>; Wed, 9 Apr 2003 14:44:28 -0600 (MDT)
Received: from pc1.djthreem.de (217.84.38.99) by mail.epost.de (6.7.015) (authenticated as Matthias.Mueller36@epost.de)
        id 3E5ED894003FD7A1; Wed, 9 Apr 2003 22:44:27 +0200
From: Matthias Mueller <Matthias.Mueller36@epost.de>
To: Daniel Wagner <wagi@gmx.ch>
Subject: Re: Problems with compiling and using
Date: Wed, 9 Apr 2003 22:44:37 +0200
User-Agent: KMail/1.5
References: <200304092101.21771.Matthias.Mueller36@epost.de> <87el4bxyri.fsf@monom.org>
In-Reply-To: <87el4bxyri.fsf@monom.org>
Cc: oskit-users@fast.cs.utah.edu
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200304092244.37258.Matthias.Mueller36@epost.de>
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

>This is an old know problem with certain distibutions (e.g. debian).
>Comment the lines in sbrk-hack.c and that's it.

Thanks, now it compiled without any errors.

But the other problem, when I try to compile some example kernels, 
remains. There are still the errors "undefined reference".

Bye

Matthias

From owner-oskit-users@fast.cs.utah.edu  Thu Apr 10 18:03:02 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id SAA07917
	for oskit-users-hidden-out; Thu, 10 Apr 2003 18:03:02 -0600 (MDT)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from smtp01.mrf.mail.rcn.net (smtp01.mrf.mail.rcn.net [207.172.4.60])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id SAA07912
	for <oskit-users@flux.cs.utah.edu>; Thu, 10 Apr 2003 18:03:00 -0600 (MDT)
Received: from 66-44-64-205.s205.tnt6.lnhva.md.dialup.rcn.com ([66.44.64.205] helo=starpower.net)
	by smtp01.mrf.mail.rcn.net with esmtp (Exim 3.35 #4)
	id 193m0R-00070z-00
	for oskit-users@flux.cs.utah.edu; Thu, 10 Apr 2003 20:02:59 -0400
Message-ID: <3E95F7F4.5040401@starpower.net>
Date: Thu, 10 Apr 2003 19:02:12 -0400
From: Alan Grimes <alangrimes@starpower.net>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204
X-Accept-Language: en-us
MIME-Version: 1.0
To: oskit-users@fast.cs.utah.edu
Subject: SMP example kernel.
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

How the heck is one supposed to compile the flaming SMP example kernel? 
THERE'S NO MAKEFILE!!! and it wasn't built with the rest of the stuff...


From owner-oskit-users@fast.cs.utah.edu  Mon Apr 14 08:10:57 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id IAA21632
	for oskit-users-hidden-out; Mon, 14 Apr 2003 08:10:57 -0600 (MDT)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from althea.ddavies.net (h0020781885a9.ne.client2.attbi.com [24.61.133.41])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id IAA21627
	for <oskit-users@fast.cs.utah.edu>; Mon, 14 Apr 2003 08:10:54 -0600 (MDT)
From: ddavies@ddavies.net
Received: from shmatey.ddavies.net ([192.168.2.73])
	by althea.ddavies.net with esmtp (Exim 3.33 #1)
	id 1954zw-000728-00; Mon, 14 Apr 2003 10:31:52 -0400
Received: (from ddavies@localhost)
	by shmatey.ddavies.net (8.11.6/8.11.6) id h3EEABl21992;
	Mon, 14 Apr 2003 10:10:11 -0400 (EDT)
To: Alan Grimes <alangrimes@starpower.net>
Cc: oskit-users@fast.cs.utah.edu
Subject: Re: SMP example kernel.
References: <3E95F7F4.5040401@starpower.net>
Date: 14 Apr 2003 10:10:11 -0400
In-Reply-To: <3E95F7F4.5040401@starpower.net>
Message-ID: <87isthi30c.fsf@shmatey.ddavies.net>
Lines: 8
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk


I don't think OSKit does SMP.  Probably the stuff you're seeing was a
stab at it but didn't get completed.

Alan Grimes <alangrimes@starpower.net> writes:

> How the heck is one supposed to compile the flaming SMP example kernel? 
> THERE'S NO MAKEFILE!!! and it wasn't built with the rest of the stuff...

From owner-oskit-users@fast.cs.utah.edu  Tue Apr 15 15:48:13 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id PAA08874
	for oskit-users-hidden-out; Tue, 15 Apr 2003 15:48:13 -0600 (MDT)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from smtp1.libero.it (smtp1.libero.it [193.70.192.51])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id PAA08869
	for <oskit-users@fast.cs.utah.edu>; Tue, 15 Apr 2003 15:48:10 -0600 (MDT)
Received: from bsdabarth.libero.it (151.28.135.130) by smtp1.libero.it (7.0.012) (authenticated as glguida@libero.it)
        id 3E954686001EF482 for oskit-users@fast.cs.utah.edu; Tue, 15 Apr 2003 23:47:39 +0200
Content-Type: text/plain;
  charset="iso-8859-1"
From: Gianluca Guida <glguida@supereva.it>
To: oskit-users@fast.cs.utah.edu
Subject: Re: SMP example kernel.
Date: Tue, 15 Apr 2003 23:47:50 +0200
User-Agent: KMail/1.4.3
References: <3E95F7F4.5040401@starpower.net> <87isthi30c.fsf@shmatey.ddavies.net>
In-Reply-To: <87isthi30c.fsf@shmatey.ddavies.net>
MIME-Version: 1.0
Message-Id: <200304152347.50697.glguida@supereva.it>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by fast.cs.utah.edu id PAA08870
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

On Monday 14 April 2003 16:10, ddavies@ddavies.net wrote:
> I don't think OSKit does SMP.  Probably the stuff you're seeing was a
> stab at it but didn't get completed.
>
Currently it seems it does, in the sense that the libsmp stuff and the example 
kernel works.

Real problems are with components locking, which is almost missing or too 
hairy and not uniform all over the kit.



From owner-oskit-users@fast.cs.utah.edu  Sat Apr 19 00:06:21 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id AAA19626
	for oskit-users-hidden-out; Sat, 19 Apr 2003 00:06:21 -0600 (MDT)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from mtiwmhc12.worldnet.att.net (mtiwmhc12.worldnet.att.net [204.127.131.116])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id AAA19621
	for <oskit-users@fast.cs.utah.edu>; Sat, 19 Apr 2003 00:06:19 -0600 (MDT)
Received: from who5 (9.new-york-19rh16rt-ny.dial-access.att.net[12.88.197.9])
          by mtiwmhc12.worldnet.att.net (mtiwmhc12) with SMTP
          id <2003041906053911200puqp9e>; Sat, 19 Apr 2003 06:05:43 +0000
Reply-To: <gregg@levine.name>
From: "Gregg C Levine" <hansolofalcon@worldnet.att.net>
To: <oskit-users@fast.cs.utah.edu>
Subject: OSkit and LinuxBIOS
Date: Sat, 19 Apr 2003 02:06:16 -0400
Message-ID: <001801c30639$d1795c40$239efea9@who5>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.4510
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by fast.cs.utah.edu id AAA19622
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

Hello from Gregg C Levine
Has any of you on this list besides myself, heard of the LinuxBIOS
project? Their goal is to use Linux to create firmware which can bring
a supported motherboard from power on to full functionality in the
shortest time possible. 

The reason why I am asking, is to see how many of us, besides me, are
also interested in this idea. Please submit only positive replies
directly to me. If you have not, or have little interest in this
subject, or just don't know what I mean, do not reply to me. You can
also ignore the posting on the list, I won't be offended.

What I want to do, is to combine the LinuxBIOS arrangement, with the
completed OSkit kernel. Even a simple test kernel, will do for this.
-------------------
Gregg C Levine hansolofalcon@worldnet.att.net
------------------------------------------------------------
"The Force will be with you...Always." Obi-Wan Kenobi
"Use the Force, Luke."  Obi-Wan Kenobi
(This company dedicates this E-Mail to General Obi-Wan Kenobi )
(This company dedicates this E-Mail to Master Yoda )





From owner-oskit-users@fast.cs.utah.edu  Tue Apr 22 03:39:12 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id DAA25613
	for oskit-users-hidden-out; Tue, 22 Apr 2003 03:39:12 -0600 (MDT)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from mail-svr1.cs.utah.edu (brahma.cs.utah.edu [155.99.198.200])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id DAA25605
	for <oskit-users@fast.cs.utah.edu>; Tue, 22 Apr 2003 03:39:09 -0600 (MDT)
Received: by mail-svr1.cs.utah.edu (Postfix)
	id 8E7763476B; Tue, 22 Apr 2003 03:38:39 -0600 (MDT)
Delivered-To: oskit-users@cs.utah.edu
Received: from hotmail.com (f78.sea1.hotmail.com [207.68.163.78])
	by mail-svr1.cs.utah.edu (Postfix) with ESMTP id 1834B3476A
	for <oskit-users@cs.utah.edu>; Tue, 22 Apr 2003 03:38:39 -0600 (MDT)
Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
	 Tue, 22 Apr 2003 02:38:38 -0700
Received: from 218.104.71.174 by sea1fd.sea1.hotmail.msn.com with HTTP;
	Tue, 22 Apr 2003 09:38:38 GMT
X-Originating-IP: [218.104.71.174]
X-Originating-Email: [lin_chunxiao@hotmail.com]
From: "Lin Chunxiao" <lin_chunxiao@hotmail.com>
To: oskit-users@cs.utah.edu
Subject: Can I run those example kernels without restarting ?
Date: Tue, 22 Apr 2003 09:38:38 +0000
Mime-Version: 1.0
Content-Type: text/plain; charset=gb2312; format=flowed
Message-ID: <Sea1-F78j8UMCThbJbn0000796c@hotmail.com>
X-OriginalArrivalTime: 22 Apr 2003 09:38:38.0687 (UTC) FILETIME=[F3F8B6F0:01C308B2]
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk




Hi ,

I'm just start to study the source code of those examples in 
oskit/examples. but every time i made some changes in the source file(in 
redhat linux 8.0), i have to restart to boot and run the kernel, so tired 
of that. maybe there is a better way?

thanks


_________________________________________________________________
ÓëÁª»úµÄÅóÓÑ½øÐÐ½»Á÷£¬ÇëÊ¹ÓÃ MSN Messenger:  http://messenger.msn.com/cn  


From owner-oskit-users@fast.cs.utah.edu  Tue Apr 22 03:57:21 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id DAA29539
	for oskit-users-hidden-out; Tue, 22 Apr 2003 03:57:21 -0600 (MDT)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from mail-svr1.cs.utah.edu (brahma.cs.utah.edu [155.99.198.200])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id DAA29534
	for <oskit-users@fast.cs.utah.edu>; Tue, 22 Apr 2003 03:57:19 -0600 (MDT)
Received: by mail-svr1.cs.utah.edu (Postfix)
	id EB81C3476A; Tue, 22 Apr 2003 03:56:48 -0600 (MDT)
Delivered-To: oskit-users@cs.utah.edu
Received: from mailengine4.web2000.activeisp.com (webmail2.activeisp.com [213.188.134.18])
	by mail-svr1.cs.utah.edu (Postfix) with ESMTP id 9804234766
	for <oskit-users@cs.utah.edu>; Tue, 22 Apr 2003 03:56:47 -0600 (MDT)
Received: from goran (unverified [158.39.60.219]) by webmail.activeisp.com
 (Rockliffe SMTPRA 5.2.5) with ESMTP id <B0006589883@mailengine4.web2000.activeisp.com> for <oskit-users@cs.utah.edu>;
 Tue, 22 Apr 2003 11:56:46 +0200
Message-ID: <007601c308b5$6e701d90$db3c279e@goran>
From: "G?ran Thomassen" <gwt@poweroffice.no>
To: <oskit-users@cs.utah.edu>
References: <Sea1-F78j8UMCThbJbn0000796c@hotmail.com>
Subject: Re: Can I run those example kernels without restarting ?
Date: Tue, 22 Apr 2003 11:56:22 +0200
MIME-Version: 1.0
Content-Type: text/plain;
	charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

I'm using the x86 emulator Bochs.. Nice as long as speed isn't important :-)

-Goran


----- Original Message -----
From: "Lin Chunxiao" <lin_chunxiao@hotmail.com>
To: <oskit-users@cs.utah.edu>
Sent: Tuesday, April 22, 2003 11:38 AM
Subject: Can I run those example kernels without restarting ?


>
>
>
> Hi ,
>
> I'm just start to study the source code of those examples in
> oskit/examples. but every time i made some changes in the source file(in
> redhat linux 8.0), i have to restart to boot and run the kernel, so tired
> of that. maybe there is a better way?
>
> thanks
>
>
> _________________________________________________________________
> ÓëÁª»úµÄÅóÓÑ½øÐÐ½»Á÷£¬ÇëÊ¹ÓÃ MSN Messenger:  http://messenger.msn.com/cn
>


From owner-oskit-users@fast.cs.utah.edu  Tue Apr 22 04:01:18 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id EAA00419
	for oskit-users-hidden-out; Tue, 22 Apr 2003 04:01:18 -0600 (MDT)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from mail-svr1.cs.utah.edu (brahma.cs.utah.edu [155.99.198.200])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id EAA00396
	for <oskit-users@fast.cs.utah.edu>; Tue, 22 Apr 2003 04:01:14 -0600 (MDT)
Received: by mail-svr1.cs.utah.edu (Postfix)
	id 9CAE334769; Tue, 22 Apr 2003 04:00:44 -0600 (MDT)
Delivered-To: oskit-users@cs.utah.edu
Received: from mailengine3.web2000.activeisp.com (webmail2.activeisp.com [213.188.134.18])
	by mail-svr1.cs.utah.edu (Postfix) with ESMTP id B651A34766
	for <oskit-users@cs.utah.edu>; Tue, 22 Apr 2003 04:00:43 -0600 (MDT)
Received: from goran (unverified [158.39.60.219]) by webmail.activeisp.com
 (Rockliffe SMTPRA 5.2.5) with ESMTP id <B0006035122@mailengine3.web2000.activeisp.com> for <oskit-users@cs.utah.edu>;
 Tue, 22 Apr 2003 12:00:43 +0200
Message-ID: <007f01c308b5$fba5dd80$db3c279e@goran>
From: =?iso-8859-1?Q?G=F8ran_Thomassen?= <gwt@poweroffice.no>
To: <oskit-users@cs.utah.edu>
Subject: Where is the kernel located in memory
Date: Tue, 22 Apr 2003 12:00:19 +0200
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_007C_01C308C6.BECE6510"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

This is a multi-part message in MIME format.

------=_NextPart_000_007C_01C308C6.BECE6510
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi

I'm using the OSKit for a school project, and we've written a page-based =
memorymanager. Now I need to mark the memory used by the kernel as "in =
use" in the page-tables. Therefor I would like to know where in phys mem =
the kernel is loaded.. I'm using GRUB to load the kernel, so this may be =
a GRUB spesific question..

Anyone ??

-G=F8ran

------=_NextPart_000_007C_01C308C6.BECE6510
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I'm using the OSKit for a school =
project, and we've=20
written a page-based memorymanager. Now I need to mark the memory used =
by the=20
kernel as "in use" in the page-tables. Therefor</FONT><FONT face=3DArial =
size=3D2>=20
I&nbsp;would like to know where in phys mem the kernel is loaded.. I'm =
using=20
GRUB to load the kernel, so this may be a GRUB spesific =
question..</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Anyone ??</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>-G=F8ran</FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_007C_01C308C6.BECE6510--


From owner-oskit-users@fast.cs.utah.edu  Tue Apr 22 07:10:54 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id HAA01729
	for oskit-users-hidden-out; Tue, 22 Apr 2003 07:10:54 -0600 (MDT)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from mail-svr1.cs.utah.edu (brahma.cs.utah.edu [155.99.198.200])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id HAA01724
	for <oskit-users@fast.cs.utah.edu>; Tue, 22 Apr 2003 07:10:52 -0600 (MDT)
Received: by mail-svr1.cs.utah.edu (Postfix)
	id E972134769; Tue, 22 Apr 2003 07:10:21 -0600 (MDT)
Delivered-To: oskit-users@cs.utah.edu
Received: from hotmail.com (f39.sea1.hotmail.com [207.68.163.39])
	by mail-svr1.cs.utah.edu (Postfix) with ESMTP id 89A1134766
	for <oskit-users@cs.utah.edu>; Tue, 22 Apr 2003 07:10:21 -0600 (MDT)
Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
	 Tue, 22 Apr 2003 06:10:21 -0700
Received: from 218.104.71.174 by sea1fd.sea1.hotmail.msn.com with HTTP;
	Tue, 22 Apr 2003 13:10:20 GMT
X-Originating-IP: [218.104.71.174]
X-Originating-Email: [lin_chunxiao@hotmail.com]
From: "Lin Chunxiao" <lin_chunxiao@hotmail.com>
To: oskit-users@cs.utah.edu
Subject: what's the form of DISKNAME and PARTITION in start_fs() ?
Date: Tue, 22 Apr 2003 13:10:20 +0000
Mime-Version: 1.0
Content-Type: text/plain; charset=gb2312; format=flowed
Message-ID: <Sea1-F39UTaGmvSVMum000080d2@hotmail.com>
X-OriginalArrivalTime: 22 Apr 2003 13:10:21.0056 (UTC) FILETIME=[872C6800:01C308D0]
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk



my system is red hat 8 and /dev/hda9 is the partition for linux(ext2)

what will be the DISKNAME and PARTITION if i am going to run :
1. concole_tty   //freebsd fs
or 2. linux_fs_com  //linux fs
?

i've tried "hd0" "hda" "0" "a" "9" ....... but didn't work....  :(


thanks for help.

_________________________________________________________________
Ãâ·ÑÏÂÔØ MSN Explorer:   http://explorer.msn.com/lccn  


From owner-oskit-users@fast.cs.utah.edu  Tue Apr 22 09:14:46 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id JAA02520
	for oskit-users-hidden-out; Tue, 22 Apr 2003 09:14:46 -0600 (MDT)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from mail-svr1.cs.utah.edu (brahma.cs.utah.edu [155.99.198.200])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id JAA02515
	for <oskit-users@fast.cs.utah.edu>; Tue, 22 Apr 2003 09:14:44 -0600 (MDT)
From: ddavies@ddavies.net
Received: by mail-svr1.cs.utah.edu (Postfix)
	id 4636934769; Tue, 22 Apr 2003 09:14:14 -0600 (MDT)
Delivered-To: oskit-users@cs.utah.edu
Received: from althea.ddavies.net (h0020781885a9.ne.client2.attbi.com [24.61.133.41])
	by mail-svr1.cs.utah.edu (Postfix) with ESMTP id 904333476A
	for <oskit-users@cs.utah.edu>; Tue, 22 Apr 2003 09:14:09 -0600 (MDT)
Received: from shmatey.ddavies.net ([192.168.2.73])
	by althea.ddavies.net with esmtp (Exim 3.33 #1)
	id 197zoG-0007We-00; Tue, 22 Apr 2003 11:35:52 -0400
Received: (from ddavies@localhost)
	by shmatey.ddavies.net (8.11.6/8.11.6) id h3MFDc804311;
	Tue, 22 Apr 2003 11:13:38 -0400 (EDT)
To: "Lin Chunxiao" <lin_chunxiao@hotmail.com>
Cc: oskit-users@cs.utah.edu
Subject: Re: what's the form of DISKNAME and PARTITION in start_fs() ?
References: <Sea1-F39UTaGmvSVMum000080d2@hotmail.com>
Date: 22 Apr 2003 11:13:37 -0400
In-Reply-To: <Sea1-F39UTaGmvSVMum000080d2@hotmail.com>
Message-ID: <878yu28t0e.fsf@shmatey.ddavies.net>
Lines: 37
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=gb2312
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by fast.cs.utah.edu id JAA02516
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk


It depends where the example kernels live.  I think many people have a
'/boot' directory that has kernels, a bunch of map files and such, and
usually a grub subdir that has a menu.lst file.  I make a '/boot/oskit'
subdir and copy my example kernels there.  Let's say '/boot' is on
/dev/hda1 .  Then my /boot/grub/menu.lst file would have:

title OSKIT hello example
kernel (hd0,0)/boot/oskit/hello

I'd try 'hello' first if I were you, since it's simplest.

For your setup on GNU/Linux partition /dev/hda9 it would be this:

title OSKIT console_tty example
kernel (hd0,8)/boot/oskit/console_tty

If you copied console_tty to '/boot/oskit' on GNU/Linux /dev/hda9 .

Derek

"Lin Chunxiao" <lin_chunxiao@hotmail.com> writes:

> my system is red hat 8 and /dev/hda9 is the partition for linux(ext2)
> 
> what will be the DISKNAME and PARTITION if i am going to run :
> 1. concole_tty   //freebsd fs
> or 2. linux_fs_com  //linux fs
> ?
> 
> i've tried "hd0" "hda" "0" "a" "9" ....... but didn't work....  :(
> 
> 
> thanks for help.
> 
> _________________________________________________________________
> Ãâ·ÑÏÂÔØ MSN Explorer:   http://explorer.msn.com/lccn

From owner-oskit-users@fast.cs.utah.edu  Wed Apr 23 05:41:50 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id FAA15463
	for oskit-users-hidden-out; Wed, 23 Apr 2003 05:41:50 -0600 (MDT)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from mail.epost.de (mail.epost.de [193.28.100.164] (may be forged))
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id FAA15458
	for <oskit-users@fast.cs.utah.edu>; Wed, 23 Apr 2003 05:41:47 -0600 (MDT)
Received: from pc1.djthreem.de (217.84.36.190) by mail.epost.de (6.7.015) (authenticated as Matthias.Mueller36@epost.de)
        id 3EA1811D0004A874 for oskit-users@fast.cs.utah.edu; Wed, 23 Apr 2003 13:41:45 +0200
From: Matthias Mueller <Matthias.Mueller36@epost.de>
To: oskit-users@fast.cs.utah.edu
Subject: Re: Can I run those example kernels without restarting ?
Date: Wed, 23 Apr 2003 13:41:44 +0200
User-Agent: KMail/1.5
References: <Sea1-F78j8UMCThbJbn0000796c@hotmail.com> <007601c308b5$6e701d90$db3c279e@goran> <200304231035.15005.Matthias.Mueller36@epost.de>
In-Reply-To: <200304231035.15005.Matthias.Mueller36@epost.de>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="gb2312"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <200304231341.44891.Matthias.Mueller36@epost.de>
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

>I'm using the x86 emulator Bochs.. Nice as long as speed isn't
> important :-)

I'm using bochs too, but what should I do, if my kernel becomes bigger
than 1.44 MB? Can I access my real harddisk when using bochs to load
my kernel form the harddisk?

Thanks

Bye

Matthias


From owner-oskit-users@fast.cs.utah.edu  Thu Apr 24 00:42:14 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id AAA22790
	for oskit-users-hidden-out; Thu, 24 Apr 2003 00:42:14 -0600 (MDT)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from mail-svr1.cs.utah.edu (brahma.cs.utah.edu [155.99.198.200])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id AAA22785
	for <oskit-users@fast.cs.utah.edu>; Thu, 24 Apr 2003 00:42:12 -0600 (MDT)
Received: by mail-svr1.cs.utah.edu (Postfix)
	id E996B3476B; Thu, 24 Apr 2003 00:41:41 -0600 (MDT)
Delivered-To: oskit-users@cs.utah.edu
Received: from hotmail.com (f33.sea1.hotmail.com [207.68.163.33])
	by mail-svr1.cs.utah.edu (Postfix) with ESMTP id 6CB1934767
	for <oskit-users@cs.utah.edu>; Thu, 24 Apr 2003 00:41:41 -0600 (MDT)
Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
	 Wed, 23 Apr 2003 23:41:40 -0700
Received: from 218.104.71.174 by sea1fd.sea1.hotmail.msn.com with HTTP;
	Thu, 24 Apr 2003 06:41:40 GMT
X-Originating-IP: [218.104.71.174]
X-Originating-Email: [lin_chunxiao@hotmail.com]
From: "Lin Chunxiao" <lin_chunxiao@hotmail.com>
To: oskit-users@cs.utah.edu
Subject: about getting the sub dir handler .
Date: Thu, 24 Apr 2003 06:41:40 +0000
Mime-Version: 1.0
Content-Type: text/plain; charset=gb2312; format=flowed
Message-ID: <Sea1-F33tQoPAzdaQYr00000a72@hotmail.com>
X-OriginalArrivalTime: 24 Apr 2003 06:41:40.0627 (UTC) FILETIME=[8FF0D630:01C30A2C]
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk





Hi,

I've got another problem:

how can i get the handler of some sub dir ,if i already have the 
"oskit_dir_t" typed handler of one dir ?

//
e.g: after mounting the fs, i can get a oskit_dir_t variable represents the 
root dir. now i want to make that variable represent the /oskit dir. 
what function should i call ?
//

I've checked up the doc and oskit_dir com interface,but found nothing.

thanks in advance.

sorry for disturbing.

cxlin.

_________________________________________________________________
ÓëÁª»úµÄÅóÓÑ½øÐÐ½»Á÷£¬ÇëÊ¹ÓÃ MSN Messenger:  http://messenger.msn.com/cn  


From owner-oskit-users@fast.cs.utah.edu  Thu Apr 24 18:45:15 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: (from majordom@localhost)
	by fast.cs.utah.edu (8.9.1/8.9.1) id SAA04396
	for oskit-users-hidden-out; Thu, 24 Apr 2003 18:45:15 -0600 (MDT)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from mail-svr1.cs.utah.edu (brahma.cs.utah.edu [155.99.198.200])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id SAA04391
	for <oskit-users@fast.cs.utah.edu>; Thu, 24 Apr 2003 18:45:13 -0600 (MDT)
Received: by mail-svr1.cs.utah.edu (Postfix)
	id 151AE34767; Thu, 24 Apr 2003 18:44:43 -0600 (MDT)
Delivered-To: oskit-users@cs.utah.edu
Received: from gremlin.ics.uci.edu (gremlin.ics.uci.edu [128.195.1.70])
	by mail-svr1.cs.utah.edu (Postfix) with ESMTP id 67BE134765
	for <oskit-users@cs.utah.edu>; Thu, 24 Apr 2003 18:44:42 -0600 (MDT)
Received: from [128.195.169.233] (vp169233.reshsg.uci.edu [128.195.169.233])
	by gremlin.ics.uci.edu (8.12.9/8.12.9) with ESMTP id h3P0hhlf029249
	for <oskit-users@cs.utah.edu>; Thu, 24 Apr 2003 17:43:43 -0700 (PDT)
User-Agent: Microsoft-Entourage/10.1.0.2006
Date: Thu, 24 Apr 2003 17:43:42 -0700
Subject: Building Kaffe for OSKIT?
From: Vivek Haldar <vhaldar@uci.edu>
To: OSKIT Users <oskit-users@cs.utah.edu>
Message-ID: <BACDD2CE.A266%vhaldar@uci.edu>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
X-ICS-MailScanner: Found to be clean
X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=3.4, required 5,
	DOUBLE_CAPSWORD, MIME_EXCESSIVE_QP, SUBJ_ENDS_IN_Q_MARK, USER_AGENT)
X-ICS-MailScanner-SpamScore: sss
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk

Hello,

I've been trying to build Kaffe (CVS snapshot from Sept 2000) against the
20000901 snapshot of OSKIT (Labor Day) -- as suggested on your  "Kaffe on
OSKIT" webpage. I'm using gcc 2.7.2.3 and binutils 2.8.1.

Oskit-configure runs fine, but when I run "make all" in the kaffe
subdirectory, it breaks with the the messages below...

What gives?

Also, are there any later versions of Kaffe that work with later versions
(such as the St. Patrick's Day  release) of OSKIT?

Any help much appreciated,
Vivek.



Making all in kaffeh
make[1]: Entering directory
`/home/home/haldar/kaffe/sep2000/kaffe-cvs-20000904/config/i386/oskit/kaffe/
kaffeh'
source='inflate.c' object='inflate.o' libtool=no \
depfile='.deps/inflate.Po' tmpdepfile='.deps/inflate.TPo' \
depmode=gcc /bin/sh
/home/haldar/haldar/kaffe/sep2000/kaffe-cvs-20000904/depcomp \
/home/haldar/work/oskit/bin/x86-oskit-gcc -posix-oskit -pthread -nostdinc
-DHAVE_CONFIG_H -I.
-I/home/haldar/haldar/kaffe/sep2000/kaffe-cvs-20000904/kaffe/kaffeh
-I../../con
fig -I../../include -I../kaffevm
-I/home/haldar/haldar/kaffe/sep2000/kaffe-cvs-20000904/kaffe/kaffeh/../kaffe
vm -DKAFFEH  -DKVER='"1.0.6"' -I/home/haldar/haldar/kaffe/sep2000
/kaffe-cvs-20000904/kaffe/kaffevm
-I/home/haldar/haldar/kaffe/sep2000/kaffe-cvs-20000904/kaffe/kaffevm/systems
/oskit-pthreads -I/home/haldar/haldar/kaffe/sep2000/kaffe-cvs-20
000904/config -I/home/haldar/haldar/kaffe/sep2000/kaffe-cvs-20000904/include
-I/usr/local/include  -O2 -Wall -Wstrict-prototypes -c -o inflate.o
inflate.c
gcc: unrecognized option `-posix-oskit'
In file included from
/home/haldar/haldar/kaffe/sep2000/kaffe-cvs-20000904/kaffe/kaffeh/../kaffevm
/inflate.c:18,
                 from inflate.c:1:
/home/haldar/haldar/kaffe/sep2000/kaffe-cvs-20000904/config/config-std.h:14:
stdio.h: No such file or directory
/home/haldar/haldar/kaffe/sep2000/kaffe-cvs-20000904/config/config-std.h:15:
stdlib.h: No such file or directory
/home/haldar/haldar/kaffe/sep2000/kaffe-cvs-20000904/config/config-std.h:16:
assert.h: No such file or directory
In file included from
/home/haldar/haldar/kaffe/sep2000/kaffe-cvs-20000904/kaffe/kaffeh/../kaffevm
/inflate.c:19,
                 from inflate.c:1:
/home/haldar/haldar/kaffe/sep2000/kaffe-cvs-20000904/config/config-mem.h:27:
sys/types.h: No such file or directory
/home/haldar/haldar/kaffe/sep2000/kaffe-cvs-20000904/config/config-mem.h:28:
sys/mman.h: No such file or directory
In file included from
/home/haldar/haldar/kaffe/sep2000/kaffe-cvs-20000904/kaffe/kaffeh/../kaffevm
/gtypes.h:18,
                 from
/home/haldar/haldar/kaffe/sep2000/kaffe-cvs-20000904/kaffe/kaffeh/../kaffevm
/inflate.c:20,
                 from inflate.c:1:
/home/haldar/haldar/kaffe/sep2000/kaffe-cvs-20000904/include/jni.h:15:
stdio.h: No such file or directory
/home/haldar/haldar/kaffe/sep2000/kaffe-cvs-20000904/include/jni.h:16:
stdarg.h: No such file or directory
/home/haldar/haldar/kaffe/sep2000/kaffe-cvs-20000904/include/jni.h:17:
sys/types.h: No such file or directory
make[1]: *** [inflate.o] Error 1
make[1]: Leaving directory
`/home/home/haldar/kaffe/sep2000/kaffe-cvs-20000904/config/i386/oskit/kaffe/
kaffeh'
make: *** [all-recursive] Error 1
-- 
Vivek Haldar
vhaldar@uci.edu
http://www.ics.uci.edu/~vhaldar


From owner-oskit-users@fast.cs.utah.edu  Thu Apr 24 22:14:26 2003
Return-Path: <owner-oskit-users@fast.cs.utah.edu>
Received: by fast.cs.utah.edu (8.9.1/8.9.1) id WAA05300
	for oskit-users-hidden-out; Thu, 24 Apr 2003 22:14:26 -0600 (MDT)
X-Authentication-Warning: fast.cs.utah.edu: majordom set sender to owner-oskit-users@flux.cs.utah.edu using -f
Received: from mail-svr1.cs.utah.edu (brahma.cs.utah.edu [155.99.198.200])
	by fast.cs.utah.edu (8.9.1/8.9.1) with ESMTP id WAA05295
	for <oskit-users@fast.cs.utah.edu>; Thu, 24 Apr 2003 22:14:24 -0600 (MDT)
Received: by mail-svr1.cs.utah.edu (Postfix)
	id 0612534770; Thu, 24 Apr 2003 22:13:54 -0600 (MDT)
Delivered-To: oskit-users@cs.utah.edu
Received: from hotmail.com (f172.sea1.hotmail.com [207.68.163.172])
	by mail-svr1.cs.utah.edu (Postfix) with ESMTP id 9AD113476E
	for <oskit-users@cs.utah.edu>; Thu, 24 Apr 2003 22:13:53 -0600 (MDT)
Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
	 Thu, 24 Apr 2003 21:13:53 -0700
Received: from 218.104.71.174 by sea1fd.sea1.hotmail.msn.com with HTTP;
	Fri, 25 Apr 2003 04:13:52 GMT
X-Originating-IP: [218.104.71.174]
X-Originating-Email: [lin_chunxiao@hotmail.com]
From: "Lin Chunxiao" <lin_chunxiao@hotmail.com>
To: oskit-users@cs.utah.edu
Subject: disk partition table,blkio_read and systid.
Date: Fri, 25 Apr 2003 04:13:52 +0000
Mime-Version: 1.0
Content-Type: text/plain; charset=gb2312; format=flowed
Message-ID: <Sea1-F172LVXfEFzotS00011a09@hotmail.com>
X-OriginalArrivalTime: 25 Apr 2003 04:13:53.0226 (UTC) FILETIME=[14F892A0:01C30AE1]
Sender: owner-oskit-users@fast.cs.utah.edu
Precedence: bulk




Hi

on studing the example/x86/linux_fs_com.c, i found that there maybe some 
thing incomplete in the source:

in the main partition table(sector 0) of my computer, the systid of the 
sencond entry is 0FH (15), i learned from elsewhere that it also stands for 
extended partition. but in the source(20020317 
oskit/diskpart/find_pcbios.c). it checks for extended partitions only when 
systid = 5 (DOS_EXTENDED). if so, my extended partitions will not be 
checked. 

another thing is :
the mechanism of finding next extended partition in the source(also in 
find_pcbios.c) is different from the one used in winxp(dskprob.exe) :

in oskit source:
   use the extended partition table's second entry's offset to locate the 
next partition table.
in dskprob.exe:
   use the extended partition table's sector No. + 63 + the first entry's 
n_sector.

e.g:
my main partition table:
80 01 01 00 07 f3 bf 09 3f 00 00 00 4b f5 7f 00   (NTFS)
                                    ~~~~~~~~~~~
00 00 81 20 0f fe ff ff 8a f5 7f 00 1b f6 ec 01
                        ~~~~~~~~~~~
use both way. the result is the same : 7ff54b + 3f + 0 = 7ff58a (8385930)

the first of by extened partition table is:
00 01 81 0A 82 FE BF 2A 3F 00 00 00 A2 16 08 00   (linux swap)
                                    ~~~~~~~~~~~  
00 00 C1 92 05 FE FF FF 88 17 60 00 C3 1C 20 00   (DOS_EXTENDED)
                        ~~~~~~~~~~~
use the dskprob way : 7ff58a + 816a2 + 3f = 880c6b (8916075)
use the oskit way:    0(mystart) + 601788(entry->offset) = 601788h(6297480)

i can find the next partition table using dskprobe.exe in sector 8916075
but can not find it in both 8916075 & 6297480 with the oskit_blkio_read().
curiously enough,it can read out the first partition table at 8385930 !!! 
???

how can i get the next partition table!!!! my linux ext2 system is just 
there !
...... 

thanks very much !

cxlin

 


_________________________________________________________________
ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓÊ¼þÏµÍ³¡ª MSN Hotmail¡£  http://www.hotmail.com  


