diff --git a/configure.py b/configure.py index 5753e452..0398eb38 100644 --- a/configure.py +++ b/configure.py @@ -1687,9 +1687,9 @@ config.libs = [ Object(Matching, "fa/pf_service.c"), Object(Matching, "fa/pf_str.c"), Object(Matching, "fa/pf_driver.c"), - Object(NonMatching, "fa/pdm_api.c"), - Object(NonMatching, "fa/pdm_bpb.c"), - Object(NonMatching, "fa/pdm_disk.c"), + Object(Matching, "fa/pdm_api.c"), + Object(Matching, "fa/pdm_bpb.c"), + Object(Matching, "fa/pdm_disk.c"), Object(NonMatching, "fa/pdm_partition.c"), Object(NonMatching, "fa/pf_cache.c"), Object(NonMatching, "fa/pf_cluster.c"), @@ -1799,32 +1799,32 @@ config.libs = [ Object(Matching, "fa/pf_w_rename.c"), Object(Matching, "fa/pf_w_rmdir.c"), Object(Matching, "fa/pf_w_xdivide.c"), - Object(NonMatching, "fa/pf_filelock.c"), + Object(Matching, "fa/pf_filelock.c"), Object(NonMatching, "fa/pf_stub.c"), - Object(NonMatching, "fa/pf_system.c"), - Object(NonMatching, "fa/pf_stub_standard.c"), - Object(NonMatching, "fa/pfs_attach.c"), - Object(NonMatching, "fa/pfs_buffering.c"), - Object(NonMatching, "fa/pfs_create.c"), - Object(NonMatching, "fa/pfs_createdir.c"), - Object(NonMatching, "fa/pfs_detach.c"), - Object(NonMatching, "fa/pfs_errnum.c"), - Object(NonMatching, "fa/pfs_fclose.c"), - Object(NonMatching, "fa/pfs_finfot.c"), - Object(NonMatching, "fa/pfs_fopen.c"), - Object(NonMatching, "fa/pfs_format.c"), - Object(NonMatching, "fa/pfs_fread.c"), - Object(NonMatching, "fa/pfs_fseek.c"), - Object(NonMatching, "fa/pfs_fsfirst.c"), - Object(NonMatching, "fa/pfs_fsnext.c"), - Object(NonMatching, "fa/pfs_fstat.c"), - Object(NonMatching, "fa/pfs_fwrite.c"), - Object(NonMatching, "fa/pfs_getdev.c"), - Object(NonMatching, "fa/pfs_init_prfile2.c"), - Object(NonMatching, "fa/pfs_mount.c"), - Object(NonMatching, "fa/pfs_remove.c"), - Object(NonMatching, "fa/pfs_unmount.c"), - Object(NonMatching, "fa/pf_stub_unicode.c"), + Object(Matching, "fa/pf_system.c"), + Object(Matching, "fa/pf_stub_standard.c"), + Object(Matching, "fa/pfs_attach.c"), + Object(Matching, "fa/pfs_buffering.c"), + Object(Matching, "fa/pfs_create.c"), + Object(Matching, "fa/pfs_createdir.c"), + Object(Matching, "fa/pfs_detach.c"), + Object(Matching, "fa/pfs_errnum.c"), + Object(Matching, "fa/pfs_fclose.c"), + Object(Matching, "fa/pfs_finfot.c"), + Object(Matching, "fa/pfs_fopen.c"), + Object(Matching, "fa/pfs_format.c"), + Object(Matching, "fa/pfs_fread.c"), + Object(Matching, "fa/pfs_fseek.c"), + Object(Matching, "fa/pfs_fsfirst.c"), + Object(Matching, "fa/pfs_fsnext.c"), + Object(Matching, "fa/pfs_fstat.c"), + Object(Matching, "fa/pfs_fwrite.c"), + Object(Matching, "fa/pfs_getdev.c"), + Object(Matching, "fa/pfs_init_prfile2.c"), + Object(Matching, "fa/pfs_mount.c"), + Object(Matching, "fa/pfs_remove.c"), + Object(Matching, "fa/pfs_unmount.c"), + Object(Matching, "fa/pf_stub_unicode.c"), Object(NonMatching, "fa/api/FAAttach.c"), Object(Matching, "fa/api/FABuffering.c"), diff --git a/libs/RVL_SDK/src/fa/pdm_partition.c b/libs/RVL_SDK/src/fa/pdm_partition.c index 74c05396..f4670e2b 100644 --- a/libs/RVL_SDK/src/fa/pdm_partition.c +++ b/libs/RVL_SDK/src/fa/pdm_partition.c @@ -1,6 +1,6 @@ #include #include -#define MBR_WORD(buf, offset) (((pf_u32)(buf)[(offset) + 2] << 16) + (buf)[offset] + (((pf_u32)(buf)[(offset) + 3] << 24) + ((pf_u32)(buf)[(offset) + 1] << 8))) +#define MBR_WORD(buf, offset) (((pf_u32)(buf)[(offset) + 3] << 24) + ((pf_u32)(buf)[(offset) + 2] << 16) + ((pf_u32)(buf)[(offset) + 1] << 8) + (buf)[offset]) static inline pf_u16 read_boot_u16(pf_u8* buf, pf_u32 offset) { if ((pf_u32)&buf[offset] & 1) { return (buf[offset + 1] << 8) | buf[offset]; } return PF_SWAP_16(*(pf_u16*)&buf[(offset + 1) & ~1]);