Changeset 3d6beaa in mainline
- Timestamp:
- 2010-05-22T22:10:51Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b8230b9
- Parents:
- 4bd675d
- Location:
- kernel/arch
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/abs32le/include/asm.h
r4bd675d r3d6beaa 182 182 } 183 183 184 static inline uintptr_t *get_ip()185 {186 /* On real hardware this returns the current instruction187 pointer value. The value certainly changes with each188 instruction, but it can be still used to identify189 a specific function. */190 191 return 0;192 }193 194 184 #endif 195 185 -
kernel/arch/amd64/include/asm.h
r4bd675d r3d6beaa 332 332 } 333 333 334 static inline uintptr_t * get_ip()335 {336 uintptr_t *ip;337 338 asm volatile (339 "mov %%rip, %[ip]"340 : [ip] "=r" (ip)341 );342 343 return ip;344 }345 346 334 /** Invalidate TLB Entry. 347 335 * -
kernel/arch/ia32/include/asm.h
r4bd675d r3d6beaa 362 362 } 363 363 364 /** Return current IP address */365 static inline uintptr_t * get_ip()366 {367 uintptr_t *ip;368 369 asm volatile (370 "mov %%eip, %[ip]"371 : [ip] "=r" (ip)372 );373 374 return ip;375 }376 377 364 /** Invalidate TLB Entry. 378 365 *
Note:
See TracChangeset
for help on using the changeset viewer.