Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jun 2014 17:57:00 -0600
From:      Ian Lepore <ian@FreeBSD.org>
To:        Aleksandr Rybalko <ray@ddteam.net>
Cc:        freebsd-arm@FreeBSD.org
Subject:   Re: locore.S and debugging initial stages of kernel
Message-ID:  <1403308620.20883.288.camel@revolution.hippie.lan>
In-Reply-To: <0eac2533-d4bb-4bc6-9ba1-3dae40aa4360@email.android.com>
References:  <53A3619C.3020505@narod.ru> <776BC360-5D2F-435C-B2B0-38449D4AB56D@bsdimp.com> <1403230772.20883.281.camel@revolution.hippie.lan> <BFE35132-0A10-40E4-835A-0F35D3084F09@FreeBSD.org> <0eac2533-d4bb-4bc6-9ba1-3dae40aa4360@email.android.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 2014-06-21 at 01:18 +0300, Aleksandr Rybalko wrote:
> On 20 =DE=C5=D2=D7=CE=D1 2014 =D2. 08:23:01 GMT+03:00, Rui Paulo <rpaul=
o@FreeBSD.org> wrote:
> >On Jun 19, 2014, at 19:19, Ian Lepore <ian@FreeBSD.org> 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"
>=20
> Is not it would be better to just load txd address, instead of ORing 2-=
4 times? :-D
> WBW
> ------
> Aleksandr Rybalko <ray@ddteam.net>
>=20
>=20

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 "=3DVALUE" syntax, but chances are that turns int=
o
mov,orr,orr. :)

-- Ian





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1403308620.20883.288.camel>