From owner-freebsd-arm@FreeBSD.ORG Mon Jun 23 07:14:30 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 009F1580; Mon, 23 Jun 2014 07:14:29 +0000 (UTC) Received: from forward12.mail.yandex.net (forward12.mail.yandex.net [IPv6:2a02:6b8:0:801::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A262D25D7; Mon, 23 Jun 2014 07:14:29 +0000 (UTC) Received: from web5j.yandex.ru (web5j.yandex.ru [5.45.198.46]) by forward12.mail.yandex.net (Yandex) with ESMTP id B752CC20E9F; Mon, 23 Jun 2014 11:14:24 +0400 (MSK) Received: from 127.0.0.1 (localhost [127.0.0.1]) by web5j.yandex.ru (Yandex) with ESMTP id 28CF2268019B; Mon, 23 Jun 2014 11:14:24 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1403507664; bh=ye1+VqaglN7jXXpWMy2PakwW3aCe+/eWQr96cS47Ulw=; h=From:To:Cc:In-Reply-To:References:Subject:Date; b=tY7ntb6mJOypEYatJatJu5h14WDz4rvCLhxmXBeRzKtP7npbTOTX2EccwvYTVp1FR 77Yzazt2W3jO7KACaK0gXhGCIVbibusOVGXeGhcmEECcDfgrEmonXVL7rsmxXFZoT+ p8ZD3eyWmtHjb/I64A2YLiQxA4JL+MaWseNlnL0w= Received: from adsl-71-135-98-2.dsl.pltn13.pacbell.net (adsl-71-135-98-2.dsl.pltn13.pacbell.net [71.135.98.2]) by web5j.yandex.ru with HTTP; Mon, 23 Jun 2014 11:14:23 +0400 From: Stepan Dyatkovskiy Envelope-From: stpworld@yandex.ru To: Ian Lepore , Aleksandr Rybalko In-Reply-To: <1403308620.20883.288.camel@revolution.hippie.lan> References: <53A3619C.3020505@narod.ru> <776BC360-5D2F-435C-B2B0-38449D4AB56D@bsdimp.com> <1403230772.20883.281.camel@revolution.hippie.lan> <0eac2533-d4bb-4bc6-9ba1-3dae40aa4360@email.android.com> <1403308620.20883.288.camel@revolution.hippie.lan> Subject: Re: locore.S and debugging initial stages of kernel MIME-Version: 1.0 Message-Id: <188111403507663@web5j.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Mon, 23 Jun 2014 11:14:23 +0400 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=koi8-r Cc: "freebsd-arm@FreeBSD.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jun 2014 07:14:30 -0000 Thank you guys! Currently I have to stop my kernel survey. Though I've managed to updated cross-binutils and compile (and then launch) kernel with -mcpu=cortex-a9 option. Where I can read rules about, how to prepare and send patch to freebsd-arm community, so could share my experience? Thanks! -Stepan 21.06.2014, 03:57, "Ian Lepore" : > On Sat, 2014-06-21 at 01:18 +0300, Aleksandr Rybalko wrote: >> šOn 20 ÞÅÒ×ÎÑ 2014 Ò. 08:23:01 GMT+03:00, Rui Paulo wrote: >>> On Jun 19, 2014, at 19:19, Ian Lepore wrote: >>>> šI usually emit single chars by writing directly the console uart >>>> šregister. >>> I use exactly the same method, but your code looks much better. :-) >>> >>> -- >>> Rui Paulo >>> >>> _______________________________________________ >>> freebsd-arm@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-arm >>> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >> šIs not it would be better to just load txd address, instead of ORing 2-4 times? :-D >> šWBW >> š------ >> šAleksandr Rybalko > > You mean store the value in memory somewhere, and then at runtime load a > pointer to where it's stored using only pc-relative instructions and > then loading the actual value using the pointer? šHarder to write, the > code added for "quick debugging" would be more scattered, and it's > actually slower (not that performance really matters here). šIt could be > done as a 1-liner using "=VALUE" syntax, but chances are that turns into > mov,orr,orr. :) > > -- Ian > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"