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

Re: [MiNT] XaAES and appl_init()



Gerhard Stoll, 28.02.2013 17:41:30:

Vincent Rivière wrote:

But it does that in supervisor mode, while calling the AES from
supervisor is forbidden.

No is not, but it is difficult.

I found a text (page 589) in a german book called "Atari Profibuch
ST-STE-TT".

Sorry, maybe someone can translate this.

As I understand this the problems that may arise are:

- The AES (here: EmuTOS) switches to user-mode when the AES-call returns

- User- and the Supervisor-Stack must not overlap

- The AES may write beyond the Supervisor-Stack.

Correct?

Ein "sicherer" Aufruf sollte daher etwa so aussehen (Quelle: "TOS 1.4
Release Notes"):

char my_stack [8192];

old_ssp	Super (&my_stack(8180));  /* nicht ganz aufs Ende! */

Shouldn't this be

old_ssp	= Super (&my_stack[8180]);  /* nicht ganz aufs Ende! */

?

--
Helmut Karlowski