segment.h 612 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #ifndef __ASMARC_SEGMENT_H
  9. #define __ASMARC_SEGMENT_H
  10. #ifndef __ASSEMBLY__
  11. typedef unsigned long mm_segment_t;
  12. #define MAKE_MM_SEG(s) ((mm_segment_t) { (s) })
  13. #define KERNEL_DS MAKE_MM_SEG(0)
  14. #define USER_DS MAKE_MM_SEG(TASK_SIZE)
  15. #define segment_eq(a, b) ((a) == (b))
  16. #endif /* __ASSEMBLY__ */
  17. #endif /* __ASMARC_SEGMENT_H */