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

Re: [MiNT] GEMPARBLK in toshyp



On Sun, 2011-08-07 at 08:23 +0200, Gerhard Stoll wrote:

> > It's called AESPB and is described here:
> 
> I think Paul mean this
> -------------------------------cut-------------------------------
> typedef struct
> {
>     int    contrl[15];
>     int    global[80];
>     int    intin[128];
>     int    intout[45];
>     int    ptsout[128];
>     void   *addrin[128];
>     void   *addrout[6];
>     int    ptsin[128];
> } GEMPARBLK;
> -------------------------------cut-------------------------------
> 
> PureC GEM lib have this structure. The gemlib from MiNT not and that 
> is the reason why the structure is it at the moment not in the 
> tos.hyp.

>From memory, so I could be wrong:

This is not a GEM struct. It's PureC specific. AESPB is the struct which
is passed to the AES when calling AES functions. GEMPARBLK contains the
various elements that the members of AESPB points to. GEMPARBLK is just
a convenient way of storing these in one place. The AES doesn't care
where the various arrays are stored, it just evaluates the pointers in
AESPB.

Jo Even