X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Favr%2Fmain.c;h=efde4d2beaef53048b1dd4eb7b1471ae7c74d8be;hb=d21ded48bbf95a0a9e64b971ced755f28fcbe2b8;hp=aa9a9d3e9440dc47f12905de3b50772a9d480e11;hpb=4db4740164fed3cb25145cfdaadb986fc0690507;p=fw%2Fsdcc diff --git a/src/avr/main.c b/src/avr/main.c index aa9a9d3e..efde4d2b 100644 --- a/src/avr/main.c +++ b/src/avr/main.c @@ -48,7 +48,7 @@ _avr_reset_regparm (void) } static int -_avr_regparm (sym_link * l) +_avr_regparm (sym_link * l, bool reentrant) { /* the first eight bytes will be passed in registers r16-r23. but we won't split variables @@ -126,9 +126,9 @@ _avr_genAssemblerPreamble (FILE * of) /* Generate interrupt vector table. */ static int -_avr_genIVT (FILE * of, symbol ** interrupts, int maxInterrupts) +_avr_genIVT (struct dbuf_s * oBuf, symbol ** interrupts, int maxInterrupts) { - return TRUE; + return TRUE; } /* Indicate which extended bit operations this port supports */ @@ -201,6 +201,10 @@ PORT avr_port = { { /* Sizes: char, short, int, long, ptr, fptr, gptr, bit, float, max */ 1, 2, 2, 4, 2, 2, 3, 1, 4, 4}, + + /* tags for generic pointers */ + { 0x00, 0x40, 0x60, 0x80 }, /* far, near, xstack, code */ + { "XSEG", "STACK", @@ -217,7 +221,10 @@ PORT avr_port = { "HOME", NULL, // initialized xdata NULL, // a code copy of xiseg - "CONST (CODE)", // const_name - const data (code or not) + "CONST (CODE)", // const_name - const data (code or not) + "CABS (ABS,CODE)", // cabs_name - const absolute data (code or not) + "XABS (ABS,XDATA)", // xabs_name - absolute xdata/pdata + "IABS (ABS,DATA)", // iabs_name - absolute idata/data NULL, NULL, 0,