Changeset 92d349c8 in mainline


Ignore:
Timestamp:
2007-06-05T15:31:30Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
52d30c4
Parents:
473e693
Message:

More suncc fixes.

  • remove more empty declarations
  • add options to turn errors on empty structs into warnings and options to silence these warnings
Location:
kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile

    r473e693 r92d349c8  
    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 -D__FUNCTION__=__func__
     41
     42#SUNCC_CFLAGS = -xO3 -Igeneric/include/ -xnolib -xc99=all \
     43#-D__FUNCTION__=__func__ -features=extensions \
     44#-erroff=E_ZERO_SIZED_STRUCT_UNION
     45
    4246LFLAGS = -M
    4347AFLAGS =
  • kernel/arch/amd64/include/asm.h

    r473e693 r92d349c8  
    5959{
    6060        asm volatile ("hlt\n");
    61 };
     61}
    6262
    6363static inline void cpu_halt(void)
    6464{
    6565        asm volatile ("hlt\n");
    66 };
     66}
    6767
    6868
     
    7474 * @return Value read
    7575 */
    76 static inline uint8_t inb(uint16_t port) { uint8_t val; __asm__ volatile ("inb %w1, %b0 \n" : "=a" (val) : "d" (port) ); return val; }
     76static inline uint8_t inb(uint16_t port)
     77{
     78        uint8_t val;
     79
     80        asm volatile ("inb %w1, %b0 \n" : "=a" (val) : "d" (port));
     81        return val;
     82}
    7783
    7884/** Byte to port
     
    8389 * @param val Value to write
    8490 */
    85 static inline void outb(uint16_t port, uint8_t val) { __asm__ volatile ("outb %b0, %w1\n" : : "a" (val), "d" (port) ); }
     91static inline void outb(uint16_t port, uint8_t val)
     92{
     93        asm volatile ("outb %b0, %w1\n" : : "a" (val), "d" (port));
     94}
    8695
    8796/** Swap Hidden part of GS register with visible one */
    88 static inline void swapgs(void) { __asm__ volatile("swapgs"); }
     97static inline void swapgs(void)
     98{
     99        asm volatile("swapgs");
     100}
    89101
    90102/** Enable interrupts.
Note: See TracChangeset for help on using the changeset viewer.