proto.h 913 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef _ASM_X86_PROTO_H
  2. #define _ASM_X86_PROTO_H
  3. #include <asm/ldt.h>
  4. /* misc architecture specific prototypes */
  5. extern void early_idt_handler(void);
  6. extern void system_call(void);
  7. extern void syscall_init(void);
  8. extern void ia32_syscall(void);
  9. extern void ia32_cstar_target(void);
  10. extern void ia32_sysenter_target(void);
  11. extern void syscall32_cpu_init(void);
  12. extern void check_efer(void);
  13. extern int reboot_force;
  14. long do_arch_prctl(struct task_struct *task, int code, unsigned long addr);
  15. /*
  16. * This looks more complex than it should be. But we need to
  17. * get the type for the ~ right in round_down (it needs to be
  18. * as wide as the result!), and we want to evaluate the macro
  19. * arguments just once each.
  20. */
  21. #define __round_mask(x,y) ((__typeof__(x))((y)-1))
  22. #define round_up(x,y) ((((x)-1) | __round_mask(x,y))+1)
  23. #define round_down(x,y) ((x) & ~__round_mask(x,y))
  24. #endif /* _ASM_X86_PROTO_H */