Why calling kernelInit two times.



Hi all,

When I was studying boot sequence I found the below abnormality.

There is kernel init call

kernelInit ((FUNCPTR) usrRoot, ROOT_STACK_SIZE, \
(char *) MEM_POOL_START_ADRS,
sysMemTop (), ISR_STACK_SIZE, INT_LOCK_LEVEL); in
usrKernelInit() function in usrkernel.c .


which is called from usrInit() function. but after calling
usrKernelInit(), we again calling kernelInit() from usrInit(). in
bootconfig.c

I wonder why we are calling kernelInit two time..?

Any one know the reason?

I am using vxworks 6.4 ..


Regards,
Nabendu
.



Relevant Pages

  • Re: Why calling kernelInit two times.
    ... usrKernelInit(), we again calling kernelInitfrom usrInit(). ... I wonder why we are calling kernelInit two time..? ...
    (comp.os.vxworks)
  • Re: Why calling kernelInit two times.
    ... usrKernelInit(), we again calling kernelInitfrom usrInit. ... Once when the bootrom image executes. ... after giving boot command image is loaded to ram and run ...
    (comp.os.vxworks)
  • Re: Why calling kernelInit two times.
    ... usrKernelInit(), we again calling kernelInitfrom usrInit. ... you're right -- kernelInit() is called twice. ... Once when the bootrom image executes. ... after giving boot command image is loaded to ram and run ...
    (comp.os.vxworks)
  • Re: Why calling kernelInit two times.
    ... usrKernelInit(), we again calling kernelInit() from usrInit(). ... Once when the bootrom image executes. ...
    (comp.os.vxworks)