sys32.S 476 B

1234567891011121314151617181920
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * sys32.S: I-cache tricks for 32-bit compatibility layer simple
  4. * conversions.
  5. *
  6. * Copyright (C) 1997 David S. Miller (davem@caip.rutgers.edu)
  7. * Copyright (C) 1998 Jakub Jelinek (jj@ultra.linux.cz)
  8. */
  9. #include <asm/errno.h>
  10. /* NOTE: call as jump breaks return stack, we have to avoid that */
  11. .text
  12. .globl sys32_mmap2
  13. sys32_mmap2:
  14. sethi %hi(sys_mmap), %g1
  15. jmpl %g1 + %lo(sys_mmap), %g0
  16. sllx %o5, 12, %o5