From a5f4a37ff9fd6a9f94cb853878bc875d4cee8821 Mon Sep 17 00:00:00 2001 From: Liu Aleaxander Date: Mon, 15 Jun 2009 14:18:40 +0800 Subject: [PATCH] Core:EXTLINUX: removes the open_file_t structure --- core/extlinux.asm | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/core/extlinux.asm b/core/extlinux.asm index 9f623ad..27fbc3e 100644 --- a/core/extlinux.asm +++ b/core/extlinux.asm @@ -55,22 +55,7 @@ vk_append: resb max_cmd_len+1 ; Command line vk_end: equ $ ; Should be <= vk_size endstruc -; -; File structure. This holds the information for each currently open file. -; - struc open_file_t -file_bytesleft resd 1 ; Number of bytes left (0 = free) -file_sector resd 1 ; Next linear sector to read -file_in_sec resd 1 ; Sector where inode lives -file_in_off resw 1 -file_mode resw 1 - endstruc -%ifndef DEPEND -%if (open_file_t_size & (open_file_t_size-1)) -%error "open_file_t is not a power of 2" -%endif -%endif ; --------------------------------------------------------------------------- ; BEGIN CODE @@ -88,7 +73,7 @@ trackbuf resb trackbufsize ; Track buffer goes here section .bss16 alignb 16 global Files -Files resb MAX_OPEN*open_file_t_size +Files resb MAX_OPEN*16 ; 16 == open_file_t_size ; ; Common bootstrap code for disk-based derivatives -- 2.7.4