proto.h 889 B

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