Changeset 92d349c8 in mainline
- Timestamp:
- 2007-06-05T15:31:30Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 52d30c4
- Parents:
- 473e693
- Location:
- kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
r473e693 r92d349c8 39 39 DEFS = -D$(ARCH) -DARCH=\"$(ARCH)\" -DRELEASE=\"$(RELEASE)\" "-DNAME=\"$(NAME)\"" -DKERNEL 40 40 CFLAGS = -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 42 46 LFLAGS = -M 43 47 AFLAGS = -
kernel/arch/amd64/include/asm.h
r473e693 r92d349c8 59 59 { 60 60 asm volatile ("hlt\n"); 61 } ;61 } 62 62 63 63 static inline void cpu_halt(void) 64 64 { 65 65 asm volatile ("hlt\n"); 66 } ;66 } 67 67 68 68 … … 74 74 * @return Value read 75 75 */ 76 static inline uint8_t inb(uint16_t port) { uint8_t val; __asm__ volatile ("inb %w1, %b0 \n" : "=a" (val) : "d" (port) ); return val; } 76 static 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 } 77 83 78 84 /** Byte to port … … 83 89 * @param val Value to write 84 90 */ 85 static inline void outb(uint16_t port, uint8_t val) { __asm__ volatile ("outb %b0, %w1\n" : : "a" (val), "d" (port) ); } 91 static inline void outb(uint16_t port, uint8_t val) 92 { 93 asm volatile ("outb %b0, %w1\n" : : "a" (val), "d" (port)); 94 } 86 95 87 96 /** Swap Hidden part of GS register with visible one */ 88 static inline void swapgs(void) { __asm__ volatile("swapgs"); } 97 static inline void swapgs(void) 98 { 99 asm volatile("swapgs"); 100 } 89 101 90 102 /** Enable interrupts.
Note:
See TracChangeset
for help on using the changeset viewer.