Changeset 473e693 in mainline


Ignore:
Timestamp:
2007-06-05T13:58:00Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
92d349c8
Parents:
48d14222
Message:

More suncc fixes.

  • Removed extra semicolons after function declaration.
  • Sun Studio recognizes only C99 func and no gcc-specific FUNCTION. In this case, a simple -D option can fix the problem.
Location:
kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile

    r48d14222 r473e693  
    3939DEFS = -D$(ARCH) -DARCH=\"$(ARCH)\" -DRELEASE=\"$(RELEASE)\" "-DNAME=\"$(NAME)\"" -DKERNEL
    4040CFLAGS = -fno-builtin -fomit-frame-pointer -Wall -Wmissing-prototypes -Werror -O3 -nostdlib -nostdinc -Igeneric/include/
    41 #SUNCC_CFLAGS = -xO3 -Igeneric/include/ -xnolib -xc99=all
     41#SUNCC_CFLAGS = -xO3 -Igeneric/include/ -xnolib -xc99=all -D__FUNCTION__=__func__
    4242LFLAGS = -M
    4343AFLAGS =
  • kernel/arch/amd64/include/asm.h

    r48d14222 r473e693  
    261261    }
    262262
    263 GEN_READ_REG(cr0);
    264 GEN_READ_REG(cr2);
    265 GEN_READ_REG(cr3);
    266 GEN_WRITE_REG(cr3);
    267 
    268 GEN_READ_REG(dr0);
    269 GEN_READ_REG(dr1);
    270 GEN_READ_REG(dr2);
    271 GEN_READ_REG(dr3);
    272 GEN_READ_REG(dr6);
    273 GEN_READ_REG(dr7);
    274 
    275 GEN_WRITE_REG(dr0);
    276 GEN_WRITE_REG(dr1);
    277 GEN_WRITE_REG(dr2);
    278 GEN_WRITE_REG(dr3);
    279 GEN_WRITE_REG(dr6);
    280 GEN_WRITE_REG(dr7);
     263GEN_READ_REG(cr0)
     264GEN_READ_REG(cr2)
     265GEN_READ_REG(cr3)
     266GEN_WRITE_REG(cr3)
     267
     268GEN_READ_REG(dr0)
     269GEN_READ_REG(dr1)
     270GEN_READ_REG(dr2)
     271GEN_READ_REG(dr3)
     272GEN_READ_REG(dr6)
     273GEN_READ_REG(dr7)
     274
     275GEN_WRITE_REG(dr0)
     276GEN_WRITE_REG(dr1)
     277GEN_WRITE_REG(dr2)
     278GEN_WRITE_REG(dr3)
     279GEN_WRITE_REG(dr6)
     280GEN_WRITE_REG(dr7)
    281281
    282282extern size_t interrupt_handler_size;
Note: See TracChangeset for help on using the changeset viewer.