Changeset db3341e in mainline for arch/amd64/include/asm.h
- Timestamp:
- 2005-09-01T14:28:00Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 623ba26c
- Parents:
- 1dde3b61
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/include/asm.h
r1dde3b61 rdb3341e 37 37 void asm_fake_loop(__u32 t); 38 38 39 /* TODO: implement the real stuff */40 39 static inline __address get_stack_base(void) 41 40 { 42 return NULL; 41 __address v; 42 43 __asm__ volatile ("andq %%rsp, %0\n" : "=r" (v) : "0" (~((__u64)STACK_SIZE-1))); 44 45 return v; 43 46 } 44 47 … … 52 55 53 56 asm ( 54 "mov % 0, %%dx;"57 "mov %1, %%dx;" 55 58 "inb %%dx,%%al;" 56 "mov %%al, % 1;"59 "mov %%al, %0;" 57 60 :"=m"(out) 58 61 :"m"(port)
Note:
See TracChangeset
for help on using the changeset viewer.