Page 1 of 1

Ideas about logging features

Posted: Fri Dec 21, 2018 2:54 am
by admin
prokushev

Site Admin

Joined: 25 Nov 2003
Posts: 100
Posted: Sun May 13, 2007 6:43 am

This thread continues discussaion started at

http://www.osfree.org/forum/viewtopic.php?t=231

Well, may be just add extra data to end of structure? This is make logic easer.
Something like this:

Code: Select all

struct FileTable {
    unsigned short ft_cfiles; /* # of entries in this table            */
    unsigned short ft_ldrseg; /* paragraph # where OS2LDR is loaded    */
    unsigned long  ft_ldrlen; /* length of OS2LDR in bytes              */
    unsigned short ft_museg;  /* paragraph # where microFSD is loaded  */
    unsigned long  ft_mulen;  /* length of microFSD in bytes            */
    unsigned short ft_mfsseg; /* paragraph # where miniFSD is loaded    */
    unsigned long  ft_mfslen; /* length of miniFSD in bytes            */
    unsigned short ft_ripseg; /* paragraph # where RIPL data is loaded  */
    unsigned long  ft_riplen; /* length of RIPL data in bytes          */

    /* The next four elements are pointers to microFSD entry points    */

    unsigned short (far *ft_muOpen)
                    (char far *pName, unsigned long far *pulFileSize);
    unsigned long (far *ft_muRead)
                    (long loffseek, char far *pBuf, unsigned long cbBuf);
    unsigned long (far *ft_muClose)(void);
    unsigned long (far *ft_muTerminate)(void);
    unsigned long magic
  ... extra data here...
};
BTW, I propose to change FileTable name to MemoryMap.

Posted: Fri Dec 21, 2018 2:55 am
by admin
valerius

Joined: 03 Apr 2005
Posts: 50
Location: Elizovo, Kamchatka, Russia
Posted: Sun May 13, 2007 8:15 am
BTW, I propose to change FileTable name to MemoryMap.
Why change a common-used name? IBM named it so, and no cause to rename it. IMHO, FileTable name
is for IBM defined interfaces, and Memmap is for multiboot specific. -- It is get used historically.

Also, I propose to use FileTable structure as a loader-specific means of linkage of different parts, not only
loader with microfsd, but loader stage0, stage1, microfsd and microxfd. (See in a thread about FreeLdr
ideas, it is not only about Log buffer, but also other extensions)
_________________
WBR,
Valery V. Sedletski

Posted: Fri Dec 21, 2018 2:56 am
by admin
prokushev

Site Admin

Joined: 25 Nov 2003
Posts: 100
Posted: Mon May 14, 2007 12:15 pm

Well. I prefer to use names which says about its usage. We always can has alias for some compatability.

According linking question I fully agree.