mirror of
https://github.com/LNH-team/pico-loader.git
synced 2026-06-02 09:16:49 +02:00
platform: add support for the EZ-Flash Parallel
This commit is contained in:
19
arm9/source/patches/platform/ezp/ezpWriteSectorsAsm.h
Normal file
19
arm9/source/patches/platform/ezp/ezpWriteSectorsAsm.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
#include "sections.h"
|
||||
#include "../SdWritePatchCode.h"
|
||||
|
||||
DEFINE_SECTION_SYMBOLS(ezp_writesectors);
|
||||
|
||||
extern "C" void ezp_writeSectors(u32 dstSector, const void* src, u32 sectorCount);
|
||||
|
||||
class EZPWriteSectorsPatchCode : public SdWritePatchCode
|
||||
{
|
||||
public:
|
||||
explicit EZPWriteSectorsPatchCode(PatchHeap& patchHeap)
|
||||
: SdWritePatchCode(SECTION_START(ezp_writesectors), SECTION_SIZE(ezp_writesectors), patchHeap) { }
|
||||
|
||||
const SdWriteFunc GetSdWriteFunction() const override
|
||||
{
|
||||
return (const SdWriteFunc)GetAddressAtTarget((void*)ezp_writeSectors);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user