exec_kern.c 981 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
  3. * Licensed under the GPL
  4. */
  5. #include "linux/kernel.h"
  6. #include "asm/current.h"
  7. #include "asm/page.h"
  8. #include "asm/signal.h"
  9. #include "asm/ptrace.h"
  10. #include "asm/uaccess.h"
  11. #include "asm/mmu_context.h"
  12. #include "tlb.h"
  13. #include "skas.h"
  14. #include "um_mmu.h"
  15. #include "os.h"
  16. void flush_thread_skas(void)
  17. {
  18. force_flush_all();
  19. switch_mm_skas(&current->mm->context.skas.id);
  20. }
  21. void start_thread_skas(struct pt_regs *regs, unsigned long eip,
  22. unsigned long esp)
  23. {
  24. set_fs(USER_DS);
  25. PT_REGS_IP(regs) = eip;
  26. PT_REGS_SP(regs) = esp;
  27. }
  28. /*
  29. * Overrides for Emacs so that we follow Linus's tabbing style.
  30. * Emacs will notice this stuff at the end of the file and automatically
  31. * adjust the settings for this buffer only. This must remain at the end
  32. * of the file.
  33. * ---------------------------------------------------------------------------
  34. * Local variables:
  35. * c-file-style: "linux"
  36. * End:
  37. */