Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- C:\Users\xiond\Downloads\Work\BootNTR>build-mode0
- C:\Users\xiond\Downloads\Work\BootNTR>copy template-cia-0.rsf template-cia.rsf
- 1 file(s) copied.
- C:\Users\xiond\Downloads\Work\BootNTR>cd resources
- C:\Users\xiond\Downloads\Work\BootNTR\resources>copy AppInfo-0 AppInfo
- 1 file(s) copied.
- C:\Users\xiond\Downloads\Work\BootNTR\resources>cd ..
- C:\Users\xiond\Downloads\Work\BootNTR>make clean
- clean ...
- C:\Users\xiond\Downloads\Work\BootNTR>make
- main.c
- arm-none-eabi-gcc -MMD -MP -MF /c/Users/xiond/Downloads/Work/BootNTR/build/main.d -g -Wall -Wno-strict-aliasing -O3 -mword-relocations -fomit-frame-pointer -ffast-math -march=armv6k -mtune=mpcore -mfloat-abi=hard -I/c/Users/xiond/Downloads/Work/BootNTR/source -I/c/Users/xiond/Downloads/Work/BootNTR/include -I/c/devkitPro/portlibs/armv6k/include -I/c/devkitPro/portlibs/3ds/include -I/c/devkitPro/libctru/include -I./lib/include -I/c/Users/xiond/Downloads/Work/BootNTR/build -DARM11 -D_3DS -std=gnu99 -c /c/Users/xiond/Downloads/Work/BootNTR/source/main.c -o main.o
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c: In function 'bnInitParamsByFirmware':
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:236:66: error: lvalue required as left operand of assignment
- if (kernelVersion == SYSTEM_VERSION(2, 51, 2) || kernelVersion = SYSTEM_VERSION(2, 52, 0)) {
- ^
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:334:66: error: lvalue required as left operand of assignment
- if (kernelVersion == SYSTEM_VERSION(2, 51, 2) || kernelVersion = SYSTEM_VERSION(2, 52, 0)) {
- ^
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c: In function 'bnInitParamsByHomeMenu':
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:359:2: warning: implicit declaration of function 'flushDataCache' [-Wimplicit-function-declaration]
- flushDataCache();
- ^
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c: At top level:
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:648:6: warning: conflicting types for 'flushDataCache'
- void flushDataCache() {
- ^
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:359:2: note: previous implicit declaration of 'flushDataCache' was here
- flushDataCache();
- ^
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c: In function 'doFlushCache':
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:660:3: warning: implicit declaration of function 'FlushAllCache' [-Wimplicit-function-declaration]
- FlushAllCache();
- ^
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:661:3: warning: implicit declaration of function 'InvalidateEntireInstructionCache' [-Wimplicit-function-declaration]
- InvalidateEntireInstructionCache();
- ^
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:662:3: warning: implicit declaration of function 'InvalidateEntireDataCache' [-Wimplicit-function-declaration]
- InvalidateEntireDataCache();
- ^
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c: In function 'kernelCallback':
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:812:19: warning: passing argument 1 of 'kFlushDataCache' makes pointer from integer without a cast [-Wint-conversion]
- kFlushDataCache(svc_patch_addr, 0x10);//
- ^
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:684:6: note: expected 'void *' but argument is of type 'u32 {aka long unsigned int}'
- void kFlushDataCache(void*, u32);
- ^
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:815:31: warning: passing argument 1 of 'cache->invalidateDataCache' makes pointer from integer without a cast [-Wint-conversion]
- cache->invalidateDataCache(svc_patch_addr, 0x10);//
- ^
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:815:31: note: expected 'void *' but argument is of type 'u32 {aka long unsigned int}'
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:816:33: warning: passing argument 1 of 'cache->flushInstructionCache' makes pointer from integer without a cast [-Wint-conversion]
- cache->flushInstructionCache(svc_patch_addr - 0xDFF80000 + 0xFFF00000, 0x10);//
- ^
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:816:33: note: expected 'void *' but argument is of type 'long unsigned int'
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c: In function 'bnLoadAndExecuteNTR':
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:899:2: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
- memset((void*) outAddr, 0, totalSize);
- ^
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:899:2: warning: incompatible implicit declaration of built-in function 'memset'
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:899:2: note: include '<string.h>' or provide a declaration of 'memset'
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:901:2: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
- memcpy((void*) (outAddr +(ntrConfig->arm11BinSize)), (void*) outAddr, size);
- ^
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:901:2: warning: incompatible implicit declaration of built-in function 'memcpy'
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:901:2: note: include '<string.h>' or provide a declaration of 'memcpy'
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:909:18: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
- u32* bootArgs = outAddr + 4;
- ^
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:912:14: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
- bootArgs[2] = ntrConfig;
- ^
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:869:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
- u32 ret;
- ^
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c: In function 'bnBootNTR':
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:954:12: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
- tmpBuffer = (u32)linearMemAlign(TMPBUFFER_SIZE, 0x1000);
- ^
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:969:25: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
- ntrConfig->ShowDbgFunc = (void*) showMsg;
- ^
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:1013:67: warning: passing argument 2 of 'rtCheckRemoteMemoryRegionSafeForWrite' makes integer from pointer without a cast [-Wint-conversion]
- rtCheckRemoteMemoryRegionSafeForWrite(getCurrentProcessHandle(), tmpBuffer, TMPBUFFER_SIZE);
- ^
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:149:5: note: expected 'u32 {aka long unsigned int}' but argument is of type 'u8 * {aka unsigned char *}'
- u32 rtCheckRemoteMemoryRegionSafeForWrite(Handle hProcess, u32 addr, u32 size) {
- ^
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c: In function 'main':
- c:/Users/xiond/Downloads/Work/BootNTR/source/main.c:1039:6: warning: variable 'isSuccess' set but not used [-Wunused-but-set-variable]
- int isSuccess = 0;
- ^
- make[1]: *** [main.o] Error 1
- make: *** [build] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement