Where is the function of printing magic number in the OKL4 booting?

3 messages Options
Embed this post
Permalink
Guanghui, Cheng

Where is the function of printing magic number in the OKL4 booting?

Reply Threaded More More options
Print post
Permalink
Hello:
        Every time when i boot OKL4 image file and the first lines of output are like
this:
7a70c3

OKL4 - (provider: Open Kernel Labs) built on Feb 21 2009 17:09:24 using gcc
version 3.4.4.
Linux version 2.6.24-arm (cheng@cheng-laptop) (gcc version 4.2.4) #1 Sat Feb
21 17:13:50 CST 2009
... ...

I want to know where to get this definition or macro definition to print this
magic number.
        Thanks.
        Best wishes.
                                                                Cheng Guanghui

_______________________________________________
Developer mailing list
[hidden email]
https://lists.okl4.org/mailman/listinfo/developer
Josh Matthews

Re: Where is the function of printing magic number in the OKL4 booting?

Reply Threaded More More options
Print post
Permalink
Hi Cheng,

I'm not sure about the magic number - that may be being printed by your
emulator or boot loader. The lines directly below that, however, are
printed from init_hello() (in pistachio/src/debug.cc), which itself is
called by startup_system_mmu() (in arch/arm/pistachio/src/init.cc for
ARM).

Best regards,
Josh

On Thu, March 5, 2009 1:18 am, Guanghui, Cheng wrote:

> Hello:
> Every time when i boot OKL4 image file and the first lines of output are
> like
> this:
> 7a70c3
>
> OKL4 - (provider: Open Kernel Labs) built on Feb 21 2009 17:09:24 using
> gcc
> version 3.4.4.
> Linux version 2.6.24-arm (cheng@cheng-laptop) (gcc version 4.2.4) #1 Sat
> Feb
> 21 17:13:50 CST 2009
> ... ...
>
> I want to know where to get this definition or macro definition to print
> this
> magic number.
> Thanks.
> Best wishes.
> Cheng Guanghui
>
> _______________________________________________
> Developer mailing list
> [hidden email]
> https://lists.okl4.org/mailman/listinfo/developer
>


_______________________________________________
Developer mailing list
[hidden email]
https://lists.okl4.org/mailman/listinfo/developer
Guanghui, Cheng

Re: Where is the function of printing magic number in the OKL4 booting?

Reply Threaded More More options
Print post
Permalink
On Friday 06 March 2009 01:53:37 am you wrote:
> Hi Cheng,
>
> I'm not sure about the magic number - that may be being printed by your
> emulator or boot loader. The lines directly below that, however, are
> printed from init_hello() (in pistachio/src/debug.cc), which itself is
> called by startup_system_mmu() (in arch/arm/pistachio/src/init.cc for
> ARM).
>
        Thanks. you are right. The magic number is from emulator. But the info about
init_hello() is also very useful for me.
        Thanks a lot.
                        Cheng Guanghui

_______________________________________________
Developer mailing list
[hidden email]
https://lists.okl4.org/mailman/listinfo/developer