[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] cookies, was: ext2fs



Hi Petr!

> Well, some of the objections were reasonable: the cookies provide pointers
> to two short int variables in kernel that keep current time and date.
> When/if those two short int variables are removed the cookies can't work.
> Guido (or someone else) said those variables would be removed soon. I
> don't know why the variables should be removed, though.
> 
> The other reason was based on the memory protection and virtual address
> space. If the FreeMiNT kernel disappears from application's address space
> then the cookies would really be useless. Though these cookies are usually
> used by TSRs that are started before MiNT and thus are in the same address
> space as the kernel.

It's a very bad design in general to use the Cookie Jar for Pointers or 
Entry Points to critical system data and/or system routines.


Tschuess
   ...Frank

--
ATARI FALCON 040
--------------------------------------
Internet: fnaumann@cs.uni-magdeburg.de
Mausnet:  Frank Naumann @ L2