diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-01-14 23:07:11 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-01-14 23:07:11 +0100 |
| commit | d561eeb53d5c3e6e8f712691a56ba706051316ce (patch) | |
| tree | c8924a7cc9935d0097c682bbffa040aaa040c924 | |
| parent | 99826c21b9da1c3a74fd8b3ebc08c7f8dbfadd30 (diff) | |
ADD: setup_arm64.sh and patches on NeFS.cc
| -rw-r--r-- | dev/Kernel/src/FS/NeFS.cc | 10 | ||||
| -rwxr-xr-x | setup_amd64.sh (renamed from setup-amd64.sh) | 0 | ||||
| -rwxr-xr-x | setup_arm64.sh | 5 |
3 files changed, 10 insertions, 5 deletions
diff --git a/dev/Kernel/src/FS/NeFS.cc b/dev/Kernel/src/FS/NeFS.cc index 742919f8..19a4047a 100644 --- a/dev/Kernel/src/FS/NeFS.cc +++ b/dev/Kernel/src/FS/NeFS.cc @@ -315,15 +315,15 @@ _Output NFS_CATALOG_STRUCT* NeFileSystemParser::CreateCatalog(_Input const Char* rt_string_len("fs/nefs-packet")); drive.fPacket.fPacketContent = &temporary_catalog; - drive.fPacket.fPacketSize = kNeFSSectorSz; + drive.fPacket.fPacketSize = sizeof(NFS_CATALOG_STRUCT); drive.fPacket.fPacketLba = start_free; drive.fInput(&drive.fPacket); - Char buf_part_block[kNeFSSectorSz] = {0}; + Char buf_part_block[sizeof(NFS_ROOT_PARTITION_BLOCK)] = {0}; drive.fPacket.fPacketContent = buf_part_block; - drive.fPacket.fPacketSize = kNeFSSectorSz; + drive.fPacket.fPacketSize = sizeof(NFS_ROOT_PARTITION_BLOCK); drive.fPacket.fPacketLba = kNeFSRootCatalogStartAddress; drive.fInput(&drive.fPacket); @@ -368,9 +368,9 @@ _Output NFS_CATALOG_STRUCT* NeFileSystemParser::CreateCatalog(_Input const Char* drive.fOutput(&drive.fPacket); - kcout << "Create new catalog, status: " + kcout << "Create new catalog with flags: " << hex_number(child_catalog->Flags) << endl; - kcout << "Create new catalog, name: " << child_catalog->Name + kcout << "Create new catalog with name: " << child_catalog->Name << endl; delete catalog; diff --git a/setup-amd64.sh b/setup_amd64.sh index be110a3b..be110a3b 100755 --- a/setup-amd64.sh +++ b/setup_amd64.sh diff --git a/setup_arm64.sh b/setup_arm64.sh new file mode 100755 index 00000000..6725707c --- /dev/null +++ b/setup_arm64.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +cd dev/Boot +make -f arm64-desktop.make efi +make -f arm64-desktop.make epm-img
\ No newline at end of file |
