diff options
Diffstat (limited to 'dev/HPFS/EPM')
| -rw-r--r-- | dev/HPFS/EPM/EBS.i | 28 | ||||
| -rw-r--r-- | dev/HPFS/EPM/EPM.asm | 35 |
2 files changed, 63 insertions, 0 deletions
diff --git a/dev/HPFS/EPM/EBS.i b/dev/HPFS/EPM/EBS.i new file mode 100644 index 00000000..3c55825b --- /dev/null +++ b/dev/HPFS/EPM/EBS.i @@ -0,0 +1,28 @@ +;; FILE: EBS.asm +;; PURPOSE: EXPLICIT BOOT SECTOR STRUCTURE (HPFS RELATED). +;; AUTHOR: AMLAL EL MAHROUSS + +[bits 64] + +;; DUMP THIS BLOB TO DISK, WHEN FORMATTING THE SSD. + +HPFS_EBS_HEADER: + db "HPFS ", 0 ;; MAGIC NUMBER OF FILESYSTEM + dq 0 ;; RESERVED 4 + dw 1 ;; VERSION + dw 0 ;; PARTITION TYPE + dq 0 ;; RESERVED 3 + dw 0 ;; DISK TYPE (INVALID = 0, CDROM = 1, SSD = 2, USB = 3) + dw 0 ;; CHECKSUM OF PARTITION + dw 0 ;; IS IT LOCKED? (DISK ENCRYPTION ON?) + dq 0 ;; SECTOR COUNT + dq 0 ;; RESERVED 2 + dq 512 ;; SECTOR SZ + dq 0 ;; DISK SIZE + dq 0 ;; RESERVED 1 + dq 0 ;; LOCKER ON? + dq 0 ;; PARTITION MAP TYPE (GPT, MBR, EPM) + dq 0 ;; MASTER FILE TABLE + dq 0 ;; MASTER TRACE TABLE + dq 0 ;; MASTER DIRECTORY TABLE + dw 0xFFFF ;; END OF HEADER WORD
\ No newline at end of file diff --git a/dev/HPFS/EPM/EPM.asm b/dev/HPFS/EPM/EPM.asm new file mode 100644 index 00000000..fadb555c --- /dev/null +++ b/dev/HPFS/EPM/EPM.asm @@ -0,0 +1,35 @@ +;; FILE: EBS.asm +;; PURPOSE: EXPLICIT PARTITION MAP BOOT STRUCTURE (HPFS RELATED). +;; AUTHOR: AMLAL EL MAHROUSS + +[bits 64] + +HPFS_EPM_HEADER: + db "EPMAM", 0 + db "HPFS ", 0 +HPFS_EPM_UUID: + dd 0 + dw 0 + db 0 + db 0 + db 0 + db 0 + db 0 + db 0 + db 0 + db 0 + dd 0xAD ;; REVISON + dd 0 ;; NUM BLOCKS + dd 512 ;; SECTOR SZ + dd 0 + dd 0 + dw 0x1f ;; NewOS + dd 1 + db "FileSystem (C:)", 0 + times 401 db 0 +HPFS_EPM_HEADER_END: + + +%include "EBS.i" + +times 512 db 0
\ No newline at end of file |
