The kernel side of the Phorepoc 64-bit (LP64) port that both 64-bit architectures share: the changes the 2010 EKA2 kernel needs for 64-bit pointers, the kernel's reader of the 64-bit image format, and the ROM builder the 64-bit bootstraps include.
Nothing here is architecture code. The nanokernel back ends, the MMU code, the bootstraps and the board drivers live in the architecture repositories, which build the kernel with this repository laid over the Symbian source.
os/kernel/eka/-- whole-file overlays ofkernel/ekafiles of the pinned Symbian kernel source (oss.FCL.sf.os.kernelhwsrvat 0c3208650587ac0230aed8a74e9bddb5288023eb, coresources.lock), same relative paths. A 64-bit kernel build compiles a file from here when it exists, else the upstream file. The 32-bit builds never see this tree. The files are the upstream files with the LP64 changes applied once; each change carries anLP64comment. They cover:include/kernel,include/nkern,include/nkernsmp,include/memmodel,include/slab.h,include/dispchannel.inl: pointer-sized fields, the 64-bit exec tables,TPhysAddras 64 bits, the 64-bit trap and message argument slots;kernel/,klib/,nkern/,nkernsmp/: casts and fields that held a pointer in 32 bits;memmodel/epoc/...(the flexible memory model): virtual addresses and page-table indexes inTLinAddr, the address-space allocator's slab masks, the code-segment export directory with 8-byte entries;drivers/(local media, ECOMM, EDISP, the shared-chunk sound LDD) andewsrv/: the same kind of casts;drivers/display/display.cpp(the RDisplayChannel LDD): its physical addresses asTPhysAddr, notTUint32.drivers/pipe/dpipe.cpp+include/drivers/dpipe.h(the Open C pipe LDD): the same casts,operator newonTSizeT;drivers/camerasc/cameraldd.cpp: the shared-chunk camera LDD of the 2010 release'sBRANCH_RCL_3, which the boards restore (it is not in the pinned kernel source), its int request arguments cast throughTLinAddr.
os/symbian-2010/-- whole-file overlays of kernel-side files of other packages, by their path under thesymbian-2010source tree: the Graphics Resource channel (graphicsresourceimplementation/src/sgchannel.cpp:EControlResourceDataAddresswrites the 64-bit address to its second argument instead of returning it in theTIntresult; core's LP64 copy ofsgdevice.inlpasses it) and the reference surface manager (surfacemgrcommon/src/extension.cpp,surfacemanagerdriver.cpp: physical addresses asTPhysAddr, page lists and kernel addresses at their LP64 types, int arguments throughTLinAddr).os/symbian-rcl3/-- the same for files of thesymbian-rcl3source tree: the WLAN logical device (oss.FCL.sf.os.wlan:wlan_bearer/wlanldd, the UMAC, OSA and LDD, and thewlan_plat/wlan_hal_apitypes).TPacketIdis pointer-sized (the UMAC passes a pointer as the packet id); the OSA heap's placementnewtakessize_t, its hardware-chunk id is the chunk's address as aTLinAddr; the frame transfer block's own addresses areTLinAddr(the block is shared kernel/user memory, both sides 64-bit); the Rx buffer lists stay 32-bit offsets from the Rx chunk. TheEControlFastAllocTxBufferfast control returns the Tx meta header's offset from the transfer block in itsTIntresult (never 0: the block's queues come first) andRPcmNetCardIf::AllocTxBufferadds the block's user address back.os/kernel/lp64/p64loader.cpp,p64loader.h-- the kernel-side reader of P64Image (the LP64 variant of E32Image that the pdk'stools/emitter/p64image.pywrites): header checks, the 64-bit relocations, the 8-byte export directory, import resolution.os/kernel/lp64/p64rom.inc-- the ROM builder: it turns the PORF file list (the pdk'stools/p64rom.py) into the ROM header, the XIP-relocated images and the ROM file system. A bootstrap includes it and provides the ROM area, the console output andDie(); a board with devices linked into the kernel definesLp64BuiltinDevice().
The user-visible kernel headers (include/e32*.h, u32*.h), common/ and euser/ are not here: they belong to
the user-side type model in core (os/toolchain/shims/lp64_eka), and the kernel build takes them from there.
The overlays are Nokia's files with Phorepoc's changes and keep Nokia's notice; see NOTICE and LICENSES/.
Phorepoc's own files are EPL-2.0 OR GPL-2.0-or-later.