Hi all
loadcepc.exe will fill bootargs structure. Then eboot.bin or nk.bin can
use the information in this structure.

In OAL there is code:
#define BOOT_ARG_PTR_LOCATION 0x801FFFFC
InitBootInfo ((BOOT_ARGS *) ((ULONG)(*(PBYTE *)BOOT_ARG_PTR_LOCATION) |
0x80000000));

In eboot there is similar:
#define BOOT_ARG_PTR_LOCATION_NP 0x001FFFFC
pBootArgs = (BOOT_ARGS *) ((ULONG)(*(PBYTE *)BOOT_ARG_PTR_LOCATION_NP));

But in loadcepc.exe I can't find such code. How does loadcepc.exe know the
specific address of bootargs? Can gurus help me please. Thanks

Re: bootargs in loadcepc, eboot.bin, nk.bin by Luca

Luca
Wed Jun 18 08:32:06 PDT 2008

I do not know which OS version you're talking about: in CE 6.0 in
transfer.asm (loadcepc code) you have:

mov edx, 001FFFFCh
mov dword ptr [edx], esi ; Save linear ptr to args in known
location



--

Luca Calligaris
www.eurotech.it

"Frank.Z" <FrankZ@discussions.microsoft.com> ha scritto nel messaggio
news:F95BD018-7F66-48CE-AAE7-968CB126B2E8@microsoft.com...
> Hi all
> loadcepc.exe will fill bootargs structure. Then eboot.bin or nk.bin can
> use the information in this structure.
>
> In OAL there is code:
> #define BOOT_ARG_PTR_LOCATION 0x801FFFFC
> InitBootInfo ((BOOT_ARGS *) ((ULONG)(*(PBYTE *)BOOT_ARG_PTR_LOCATION) |
> 0x80000000));
>
> In eboot there is similar:
> #define BOOT_ARG_PTR_LOCATION_NP 0x001FFFFC
> pBootArgs = (BOOT_ARGS *) ((ULONG)(*(PBYTE *)BOOT_ARG_PTR_LOCATION_NP));
>
> But in loadcepc.exe I can't find such code. How does loadcepc.exe know the
> specific address of bootargs? Can gurus help me please. Thanks