Add 32KB DLDI support.

This commit is contained in:
ApacheThunder 2024-12-14 16:06:54 -06:00
parent bd9620f265
commit 466edd2316

View File

@ -35,7 +35,7 @@ _dldi_start:
#ifndef NO_DLDI #ifndef NO_DLDI
@--------------------------------------------------------------------------------- @---------------------------------------------------------------------------------
@ Driver patch file standard header -- 16 bytes @ Driver patch file standard header -- 32 bytes
#ifdef STANDARD_DLDI #ifdef STANDARD_DLDI
.word 0xBF8DA5ED @ Magic number to identify this region .word 0xBF8DA5ED @ Magic number to identify this region
#else #else
@ -43,12 +43,12 @@ _dldi_start:
#endif #endif
.asciz " Chishm" @ Identifying Magic string (8 bytes with null terminator) .asciz " Chishm" @ Identifying Magic string (8 bytes with null terminator)
.byte 0x01 @ Version number .byte 0x01 @ Version number
.byte 0x0e @ 16KiB @ Log [base-2] of the size of this driver in bytes. .byte 0x1a @ 32KiB @ Log [base-2] of the size of this driver in bytes.
.byte 0x00 @ Sections to fix .byte 0x00 @ Sections to fix
.byte 0x0e @ 16KiB @ Log [base-2] of the allocated space in bytes. .byte 0x1a @ 32KiB @ Log [base-2] of the allocated space in bytes.
@--------------------------------------------------------------------------------- @---------------------------------------------------------------------------------
@ Text identifier - can be anything up to 47 chars + terminating null -- 16 bytes @ Text identifier - can be anything up to 47 chars + terminating null -- 32 bytes
.align 4 .align 4
.asciz "Loader (No interface)" .asciz "Loader (No interface)"
@ -93,7 +93,7 @@ _DLDI_shutdown:
.align .align
.pool .pool
.space (_dldi_start + 16384) - . @ Fill to 16KiB .space (_dldi_start + 32768) - . @ Fill to 32KiB
_dldi_end: _dldi_end:
.end .end
@ -122,3 +122,4 @@ _DLDI_shutdown:
#endif #endif