compat_wrapper.S 49 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913
  1. /*
  2. * arch/s390/kernel/compat_wrapper.S
  3. * wrapper for 31 bit compatible system calls.
  4. *
  5. * Copyright (C) IBM Corp. 2000,2006
  6. * Author(s): Gerhard Tonn (ton@de.ibm.com),
  7. * Thomas Spatzier (tspat@de.ibm.com)
  8. */
  9. .globl sys32_exit_wrapper
  10. sys32_exit_wrapper:
  11. lgfr %r2,%r2 # int
  12. jg sys_exit # branch to sys_exit
  13. .globl sys32_read_wrapper
  14. sys32_read_wrapper:
  15. llgfr %r2,%r2 # unsigned int
  16. llgtr %r3,%r3 # char *
  17. llgfr %r4,%r4 # size_t
  18. jg sys32_read # branch to sys_read
  19. .globl sys32_write_wrapper
  20. sys32_write_wrapper:
  21. llgfr %r2,%r2 # unsigned int
  22. llgtr %r3,%r3 # const char *
  23. llgfr %r4,%r4 # size_t
  24. jg sys32_write # branch to system call
  25. .globl sys32_open_wrapper
  26. sys32_open_wrapper:
  27. llgtr %r2,%r2 # const char *
  28. lgfr %r3,%r3 # int
  29. lgfr %r4,%r4 # int
  30. jg sys_open # branch to system call
  31. .globl sys32_close_wrapper
  32. sys32_close_wrapper:
  33. llgfr %r2,%r2 # unsigned int
  34. jg sys_close # branch to system call
  35. .globl sys32_creat_wrapper
  36. sys32_creat_wrapper:
  37. llgtr %r2,%r2 # const char *
  38. lgfr %r3,%r3 # int
  39. jg sys_creat # branch to system call
  40. .globl sys32_link_wrapper
  41. sys32_link_wrapper:
  42. llgtr %r2,%r2 # const char *
  43. llgtr %r3,%r3 # const char *
  44. jg sys_link # branch to system call
  45. .globl sys32_unlink_wrapper
  46. sys32_unlink_wrapper:
  47. llgtr %r2,%r2 # const char *
  48. jg sys_unlink # branch to system call
  49. .globl sys32_chdir_wrapper
  50. sys32_chdir_wrapper:
  51. llgtr %r2,%r2 # const char *
  52. jg sys_chdir # branch to system call
  53. .globl sys32_time_wrapper
  54. sys32_time_wrapper:
  55. llgtr %r2,%r2 # int *
  56. jg compat_sys_time # branch to system call
  57. .globl sys32_mknod_wrapper
  58. sys32_mknod_wrapper:
  59. llgtr %r2,%r2 # const char *
  60. lgfr %r3,%r3 # int
  61. llgfr %r4,%r4 # dev
  62. jg sys_mknod # branch to system call
  63. .globl sys32_chmod_wrapper
  64. sys32_chmod_wrapper:
  65. llgtr %r2,%r2 # const char *
  66. llgfr %r3,%r3 # mode_t
  67. jg sys_chmod # branch to system call
  68. .globl sys32_lchown16_wrapper
  69. sys32_lchown16_wrapper:
  70. llgtr %r2,%r2 # const char *
  71. llgfr %r3,%r3 # __kernel_old_uid_emu31_t
  72. llgfr %r4,%r4 # __kernel_old_uid_emu31_t
  73. jg sys32_lchown16 # branch to system call
  74. .globl sys32_lseek_wrapper
  75. sys32_lseek_wrapper:
  76. llgfr %r2,%r2 # unsigned int
  77. lgfr %r3,%r3 # off_t
  78. llgfr %r4,%r4 # unsigned int
  79. jg sys_lseek # branch to system call
  80. #sys32_getpid_wrapper # void
  81. .globl sys32_mount_wrapper
  82. sys32_mount_wrapper:
  83. llgtr %r2,%r2 # char *
  84. llgtr %r3,%r3 # char *
  85. llgtr %r4,%r4 # char *
  86. llgfr %r5,%r5 # unsigned long
  87. llgtr %r6,%r6 # void *
  88. jg compat_sys_mount # branch to system call
  89. .globl sys32_oldumount_wrapper
  90. sys32_oldumount_wrapper:
  91. llgtr %r2,%r2 # char *
  92. jg sys_oldumount # branch to system call
  93. .globl sys32_setuid16_wrapper
  94. sys32_setuid16_wrapper:
  95. llgfr %r2,%r2 # __kernel_old_uid_emu31_t
  96. jg sys32_setuid16 # branch to system call
  97. #sys32_getuid16_wrapper # void
  98. .globl sys32_ptrace_wrapper
  99. sys32_ptrace_wrapper:
  100. lgfr %r2,%r2 # long
  101. lgfr %r3,%r3 # long
  102. llgtr %r4,%r4 # long
  103. llgfr %r5,%r5 # long
  104. jg compat_sys_ptrace # branch to system call
  105. .globl sys32_alarm_wrapper
  106. sys32_alarm_wrapper:
  107. llgfr %r2,%r2 # unsigned int
  108. jg sys_alarm # branch to system call
  109. .globl compat_sys_utime_wrapper
  110. compat_sys_utime_wrapper:
  111. llgtr %r2,%r2 # char *
  112. llgtr %r3,%r3 # struct compat_utimbuf *
  113. jg compat_sys_utime # branch to system call
  114. .globl sys32_access_wrapper
  115. sys32_access_wrapper:
  116. llgtr %r2,%r2 # const char *
  117. lgfr %r3,%r3 # int
  118. jg sys_access # branch to system call
  119. .globl sys32_nice_wrapper
  120. sys32_nice_wrapper:
  121. lgfr %r2,%r2 # int
  122. jg sys_nice # branch to system call
  123. #sys32_sync_wrapper # void
  124. .globl sys32_kill_wrapper
  125. sys32_kill_wrapper:
  126. lgfr %r2,%r2 # int
  127. lgfr %r3,%r3 # int
  128. jg sys_kill # branch to system call
  129. .globl sys32_rename_wrapper
  130. sys32_rename_wrapper:
  131. llgtr %r2,%r2 # const char *
  132. llgtr %r3,%r3 # const char *
  133. jg sys_rename # branch to system call
  134. .globl sys32_mkdir_wrapper
  135. sys32_mkdir_wrapper:
  136. llgtr %r2,%r2 # const char *
  137. lgfr %r3,%r3 # int
  138. jg sys_mkdir # branch to system call
  139. .globl sys32_rmdir_wrapper
  140. sys32_rmdir_wrapper:
  141. llgtr %r2,%r2 # const char *
  142. jg sys_rmdir # branch to system call
  143. .globl sys32_dup_wrapper
  144. sys32_dup_wrapper:
  145. llgfr %r2,%r2 # unsigned int
  146. jg sys_dup # branch to system call
  147. .globl sys32_pipe_wrapper
  148. sys32_pipe_wrapper:
  149. llgtr %r2,%r2 # u32 *
  150. jg sys_pipe # branch to system call
  151. .globl compat_sys_times_wrapper
  152. compat_sys_times_wrapper:
  153. llgtr %r2,%r2 # struct compat_tms *
  154. jg compat_sys_times # branch to system call
  155. .globl sys32_brk_wrapper
  156. sys32_brk_wrapper:
  157. llgtr %r2,%r2 # unsigned long
  158. jg sys_brk # branch to system call
  159. .globl sys32_setgid16_wrapper
  160. sys32_setgid16_wrapper:
  161. llgfr %r2,%r2 # __kernel_old_gid_emu31_t
  162. jg sys32_setgid16 # branch to system call
  163. #sys32_getgid16_wrapper # void
  164. .globl sys32_signal_wrapper
  165. sys32_signal_wrapper:
  166. lgfr %r2,%r2 # int
  167. llgtr %r3,%r3 # __sighandler_t
  168. jg sys_signal
  169. #sys32_geteuid16_wrapper # void
  170. #sys32_getegid16_wrapper # void
  171. .globl sys32_acct_wrapper
  172. sys32_acct_wrapper:
  173. llgtr %r2,%r2 # char *
  174. jg sys_acct # branch to system call
  175. .globl sys32_umount_wrapper
  176. sys32_umount_wrapper:
  177. llgtr %r2,%r2 # char *
  178. lgfr %r3,%r3 # int
  179. jg sys_umount # branch to system call
  180. .globl compat_sys_ioctl_wrapper
  181. compat_sys_ioctl_wrapper:
  182. llgfr %r2,%r2 # unsigned int
  183. llgfr %r3,%r3 # unsigned int
  184. llgfr %r4,%r4 # unsigned int
  185. jg compat_sys_ioctl # branch to system call
  186. .globl compat_sys_fcntl_wrapper
  187. compat_sys_fcntl_wrapper:
  188. llgfr %r2,%r2 # unsigned int
  189. llgfr %r3,%r3 # unsigned int
  190. llgfr %r4,%r4 # unsigned long
  191. jg compat_sys_fcntl # branch to system call
  192. .globl sys32_setpgid_wrapper
  193. sys32_setpgid_wrapper:
  194. lgfr %r2,%r2 # pid_t
  195. lgfr %r3,%r3 # pid_t
  196. jg sys_setpgid # branch to system call
  197. .globl sys32_umask_wrapper
  198. sys32_umask_wrapper:
  199. lgfr %r2,%r2 # int
  200. jg sys_umask # branch to system call
  201. .globl sys32_chroot_wrapper
  202. sys32_chroot_wrapper:
  203. llgtr %r2,%r2 # char *
  204. jg sys_chroot # branch to system call
  205. .globl sys32_ustat_wrapper
  206. sys32_ustat_wrapper:
  207. llgfr %r2,%r2 # dev_t
  208. llgtr %r3,%r3 # struct ustat *
  209. jg compat_sys_ustat
  210. .globl sys32_dup2_wrapper
  211. sys32_dup2_wrapper:
  212. llgfr %r2,%r2 # unsigned int
  213. llgfr %r3,%r3 # unsigned int
  214. jg sys_dup2 # branch to system call
  215. #sys32_getppid_wrapper # void
  216. #sys32_getpgrp_wrapper # void
  217. #sys32_setsid_wrapper # void
  218. .globl sys32_sigaction_wrapper
  219. sys32_sigaction_wrapper:
  220. lgfr %r2,%r2 # int
  221. llgtr %r3,%r3 # const struct old_sigaction *
  222. llgtr %r4,%r4 # struct old_sigaction32 *
  223. jg sys32_sigaction # branch to system call
  224. .globl sys32_setreuid16_wrapper
  225. sys32_setreuid16_wrapper:
  226. llgfr %r2,%r2 # __kernel_old_uid_emu31_t
  227. llgfr %r3,%r3 # __kernel_old_uid_emu31_t
  228. jg sys32_setreuid16 # branch to system call
  229. .globl sys32_setregid16_wrapper
  230. sys32_setregid16_wrapper:
  231. llgfr %r2,%r2 # __kernel_old_gid_emu31_t
  232. llgfr %r3,%r3 # __kernel_old_gid_emu31_t
  233. jg sys32_setregid16 # branch to system call
  234. .globl sys_sigsuspend_wrapper
  235. sys_sigsuspend_wrapper:
  236. lgfr %r2,%r2 # int
  237. lgfr %r3,%r3 # int
  238. llgfr %r4,%r4 # old_sigset_t
  239. jg sys_sigsuspend
  240. .globl compat_sys_sigpending_wrapper
  241. compat_sys_sigpending_wrapper:
  242. llgtr %r2,%r2 # compat_old_sigset_t *
  243. jg compat_sys_sigpending # branch to system call
  244. .globl sys32_sethostname_wrapper
  245. sys32_sethostname_wrapper:
  246. llgtr %r2,%r2 # char *
  247. lgfr %r3,%r3 # int
  248. jg sys_sethostname # branch to system call
  249. .globl compat_sys_setrlimit_wrapper
  250. compat_sys_setrlimit_wrapper:
  251. llgfr %r2,%r2 # unsigned int
  252. llgtr %r3,%r3 # struct rlimit_emu31 *
  253. jg compat_sys_setrlimit # branch to system call
  254. .globl compat_sys_old_getrlimit_wrapper
  255. compat_sys_old_getrlimit_wrapper:
  256. llgfr %r2,%r2 # unsigned int
  257. llgtr %r3,%r3 # struct rlimit_emu31 *
  258. jg compat_sys_old_getrlimit # branch to system call
  259. .globl compat_sys_getrlimit_wrapper
  260. compat_sys_getrlimit_wrapper:
  261. llgfr %r2,%r2 # unsigned int
  262. llgtr %r3,%r3 # struct rlimit_emu31 *
  263. jg compat_sys_getrlimit # branch to system call
  264. .globl sys32_mmap2_wrapper
  265. sys32_mmap2_wrapper:
  266. llgtr %r2,%r2 # struct mmap_arg_struct_emu31 *
  267. jg sys32_mmap2 # branch to system call
  268. .globl compat_sys_getrusage_wrapper
  269. compat_sys_getrusage_wrapper:
  270. lgfr %r2,%r2 # int
  271. llgtr %r3,%r3 # struct rusage_emu31 *
  272. jg compat_sys_getrusage # branch to system call
  273. .globl compat_sys_gettimeofday_wrapper
  274. compat_sys_gettimeofday_wrapper:
  275. llgtr %r2,%r2 # struct timeval_emu31 *
  276. llgtr %r3,%r3 # struct timezone *
  277. jg compat_sys_gettimeofday # branch to system call
  278. .globl compat_sys_settimeofday_wrapper
  279. compat_sys_settimeofday_wrapper:
  280. llgtr %r2,%r2 # struct timeval_emu31 *
  281. llgtr %r3,%r3 # struct timezone *
  282. jg compat_sys_settimeofday # branch to system call
  283. .globl sys32_getgroups16_wrapper
  284. sys32_getgroups16_wrapper:
  285. lgfr %r2,%r2 # int
  286. llgtr %r3,%r3 # __kernel_old_gid_emu31_t *
  287. jg sys32_getgroups16 # branch to system call
  288. .globl sys32_setgroups16_wrapper
  289. sys32_setgroups16_wrapper:
  290. lgfr %r2,%r2 # int
  291. llgtr %r3,%r3 # __kernel_old_gid_emu31_t *
  292. jg sys32_setgroups16 # branch to system call
  293. .globl sys32_symlink_wrapper
  294. sys32_symlink_wrapper:
  295. llgtr %r2,%r2 # const char *
  296. llgtr %r3,%r3 # const char *
  297. jg sys_symlink # branch to system call
  298. .globl sys32_readlink_wrapper
  299. sys32_readlink_wrapper:
  300. llgtr %r2,%r2 # const char *
  301. llgtr %r3,%r3 # char *
  302. lgfr %r4,%r4 # int
  303. jg sys_readlink # branch to system call
  304. .globl sys32_uselib_wrapper
  305. sys32_uselib_wrapper:
  306. llgtr %r2,%r2 # const char *
  307. jg sys_uselib # branch to system call
  308. .globl sys32_swapon_wrapper
  309. sys32_swapon_wrapper:
  310. llgtr %r2,%r2 # const char *
  311. lgfr %r3,%r3 # int
  312. jg sys_swapon # branch to system call
  313. .globl sys32_reboot_wrapper
  314. sys32_reboot_wrapper:
  315. lgfr %r2,%r2 # int
  316. lgfr %r3,%r3 # int
  317. llgfr %r4,%r4 # unsigned int
  318. llgtr %r5,%r5 # void *
  319. jg sys_reboot # branch to system call
  320. .globl old32_readdir_wrapper
  321. old32_readdir_wrapper:
  322. llgfr %r2,%r2 # unsigned int
  323. llgtr %r3,%r3 # void *
  324. llgfr %r4,%r4 # unsigned int
  325. jg compat_sys_old_readdir # branch to system call
  326. .globl old32_mmap_wrapper
  327. old32_mmap_wrapper:
  328. llgtr %r2,%r2 # struct mmap_arg_struct_emu31 *
  329. jg old32_mmap # branch to system call
  330. .globl sys32_munmap_wrapper
  331. sys32_munmap_wrapper:
  332. llgfr %r2,%r2 # unsigned long
  333. llgfr %r3,%r3 # size_t
  334. jg sys_munmap # branch to system call
  335. .globl sys32_truncate_wrapper
  336. sys32_truncate_wrapper:
  337. llgtr %r2,%r2 # const char *
  338. lgfr %r3,%r3 # long
  339. jg sys_truncate # branch to system call
  340. .globl sys32_ftruncate_wrapper
  341. sys32_ftruncate_wrapper:
  342. llgfr %r2,%r2 # unsigned int
  343. llgfr %r3,%r3 # unsigned long
  344. jg sys_ftruncate # branch to system call
  345. .globl sys32_fchmod_wrapper
  346. sys32_fchmod_wrapper:
  347. llgfr %r2,%r2 # unsigned int
  348. llgfr %r3,%r3 # mode_t
  349. jg sys_fchmod # branch to system call
  350. .globl sys32_fchown16_wrapper
  351. sys32_fchown16_wrapper:
  352. llgfr %r2,%r2 # unsigned int
  353. llgfr %r3,%r3 # compat_uid_t
  354. llgfr %r4,%r4 # compat_uid_t
  355. jg sys32_fchown16 # branch to system call
  356. .globl sys32_getpriority_wrapper
  357. sys32_getpriority_wrapper:
  358. lgfr %r2,%r2 # int
  359. lgfr %r3,%r3 # int
  360. jg sys_getpriority # branch to system call
  361. .globl sys32_setpriority_wrapper
  362. sys32_setpriority_wrapper:
  363. lgfr %r2,%r2 # int
  364. lgfr %r3,%r3 # int
  365. lgfr %r4,%r4 # int
  366. jg sys_setpriority # branch to system call
  367. .globl compat_sys_statfs_wrapper
  368. compat_sys_statfs_wrapper:
  369. llgtr %r2,%r2 # char *
  370. llgtr %r3,%r3 # struct compat_statfs *
  371. jg compat_sys_statfs # branch to system call
  372. .globl compat_sys_fstatfs_wrapper
  373. compat_sys_fstatfs_wrapper:
  374. llgfr %r2,%r2 # unsigned int
  375. llgtr %r3,%r3 # struct compat_statfs *
  376. jg compat_sys_fstatfs # branch to system call
  377. .globl compat_sys_socketcall_wrapper
  378. compat_sys_socketcall_wrapper:
  379. lgfr %r2,%r2 # int
  380. llgtr %r3,%r3 # u32 *
  381. jg compat_sys_socketcall # branch to system call
  382. .globl sys32_syslog_wrapper
  383. sys32_syslog_wrapper:
  384. lgfr %r2,%r2 # int
  385. llgtr %r3,%r3 # char *
  386. lgfr %r4,%r4 # int
  387. jg sys_syslog # branch to system call
  388. .globl compat_sys_setitimer_wrapper
  389. compat_sys_setitimer_wrapper:
  390. lgfr %r2,%r2 # int
  391. llgtr %r3,%r3 # struct itimerval_emu31 *
  392. llgtr %r4,%r4 # struct itimerval_emu31 *
  393. jg compat_sys_setitimer # branch to system call
  394. .globl compat_sys_getitimer_wrapper
  395. compat_sys_getitimer_wrapper:
  396. lgfr %r2,%r2 # int
  397. llgtr %r3,%r3 # struct itimerval_emu31 *
  398. jg compat_sys_getitimer # branch to system call
  399. .globl compat_sys_newstat_wrapper
  400. compat_sys_newstat_wrapper:
  401. llgtr %r2,%r2 # char *
  402. llgtr %r3,%r3 # struct stat_emu31 *
  403. jg compat_sys_newstat # branch to system call
  404. .globl compat_sys_newlstat_wrapper
  405. compat_sys_newlstat_wrapper:
  406. llgtr %r2,%r2 # char *
  407. llgtr %r3,%r3 # struct stat_emu31 *
  408. jg compat_sys_newlstat # branch to system call
  409. .globl compat_sys_newfstat_wrapper
  410. compat_sys_newfstat_wrapper:
  411. llgfr %r2,%r2 # unsigned int
  412. llgtr %r3,%r3 # struct stat_emu31 *
  413. jg compat_sys_newfstat # branch to system call
  414. #sys32_vhangup_wrapper # void
  415. .globl compat_sys_wait4_wrapper
  416. compat_sys_wait4_wrapper:
  417. lgfr %r2,%r2 # pid_t
  418. llgtr %r3,%r3 # unsigned int *
  419. lgfr %r4,%r4 # int
  420. llgtr %r5,%r5 # struct rusage *
  421. jg compat_sys_wait4 # branch to system call
  422. .globl sys32_swapoff_wrapper
  423. sys32_swapoff_wrapper:
  424. llgtr %r2,%r2 # const char *
  425. jg sys_swapoff # branch to system call
  426. .globl compat_sys_sysinfo_wrapper
  427. compat_sys_sysinfo_wrapper:
  428. llgtr %r2,%r2 # struct sysinfo_emu31 *
  429. jg compat_sys_sysinfo # branch to system call
  430. .globl sys32_ipc_wrapper
  431. sys32_ipc_wrapper:
  432. llgfr %r2,%r2 # uint
  433. lgfr %r3,%r3 # int
  434. lgfr %r4,%r4 # int
  435. lgfr %r5,%r5 # int
  436. llgfr %r6,%r6 # u32
  437. jg sys32_ipc # branch to system call
  438. .globl sys32_fsync_wrapper
  439. sys32_fsync_wrapper:
  440. llgfr %r2,%r2 # unsigned int
  441. jg sys_fsync # branch to system call
  442. #sys32_sigreturn_wrapper # done in sigreturn_glue
  443. #sys32_clone_wrapper # done in clone_glue
  444. .globl sys32_setdomainname_wrapper
  445. sys32_setdomainname_wrapper:
  446. llgtr %r2,%r2 # char *
  447. lgfr %r3,%r3 # int
  448. jg sys_setdomainname # branch to system call
  449. .globl sys32_newuname_wrapper
  450. sys32_newuname_wrapper:
  451. llgtr %r2,%r2 # struct new_utsname *
  452. jg sys_newuname # branch to system call
  453. .globl compat_sys_adjtimex_wrapper
  454. compat_sys_adjtimex_wrapper:
  455. llgtr %r2,%r2 # struct compat_timex *
  456. jg compat_sys_adjtimex # branch to system call
  457. .globl sys32_mprotect_wrapper
  458. sys32_mprotect_wrapper:
  459. llgtr %r2,%r2 # unsigned long (actually pointer
  460. llgfr %r3,%r3 # size_t
  461. llgfr %r4,%r4 # unsigned long
  462. jg sys_mprotect # branch to system call
  463. .globl compat_sys_sigprocmask_wrapper
  464. compat_sys_sigprocmask_wrapper:
  465. lgfr %r2,%r2 # int
  466. llgtr %r3,%r3 # compat_old_sigset_t *
  467. llgtr %r4,%r4 # compat_old_sigset_t *
  468. jg compat_sys_sigprocmask # branch to system call
  469. .globl sys_init_module_wrapper
  470. sys_init_module_wrapper:
  471. llgtr %r2,%r2 # void *
  472. llgfr %r3,%r3 # unsigned long
  473. llgtr %r4,%r4 # char *
  474. jg sys_init_module # branch to system call
  475. .globl sys_delete_module_wrapper
  476. sys_delete_module_wrapper:
  477. llgtr %r2,%r2 # const char *
  478. llgfr %r3,%r3 # unsigned int
  479. jg sys_delete_module # branch to system call
  480. .globl sys32_quotactl_wrapper
  481. sys32_quotactl_wrapper:
  482. llgfr %r2,%r2 # unsigned int
  483. llgtr %r3,%r3 # const char *
  484. llgfr %r4,%r4 # qid_t
  485. llgtr %r5,%r5 # caddr_t
  486. jg sys_quotactl # branch to system call
  487. .globl sys32_getpgid_wrapper
  488. sys32_getpgid_wrapper:
  489. lgfr %r2,%r2 # pid_t
  490. jg sys_getpgid # branch to system call
  491. .globl sys32_fchdir_wrapper
  492. sys32_fchdir_wrapper:
  493. llgfr %r2,%r2 # unsigned int
  494. jg sys_fchdir # branch to system call
  495. .globl sys32_bdflush_wrapper
  496. sys32_bdflush_wrapper:
  497. lgfr %r2,%r2 # int
  498. lgfr %r3,%r3 # long
  499. jg sys_bdflush # branch to system call
  500. .globl sys32_sysfs_wrapper
  501. sys32_sysfs_wrapper:
  502. lgfr %r2,%r2 # int
  503. llgfr %r3,%r3 # unsigned long
  504. llgfr %r4,%r4 # unsigned long
  505. jg sys_sysfs # branch to system call
  506. .globl sys32_personality_wrapper
  507. sys32_personality_wrapper:
  508. llgfr %r2,%r2 # unsigned int
  509. jg sys_s390_personality # branch to system call
  510. .globl sys32_setfsuid16_wrapper
  511. sys32_setfsuid16_wrapper:
  512. llgfr %r2,%r2 # __kernel_old_uid_emu31_t
  513. jg sys32_setfsuid16 # branch to system call
  514. .globl sys32_setfsgid16_wrapper
  515. sys32_setfsgid16_wrapper:
  516. llgfr %r2,%r2 # __kernel_old_gid_emu31_t
  517. jg sys32_setfsgid16 # branch to system call
  518. .globl sys32_llseek_wrapper
  519. sys32_llseek_wrapper:
  520. llgfr %r2,%r2 # unsigned int
  521. llgfr %r3,%r3 # unsigned long
  522. llgfr %r4,%r4 # unsigned long
  523. llgtr %r5,%r5 # loff_t *
  524. llgfr %r6,%r6 # unsigned int
  525. jg sys_llseek # branch to system call
  526. .globl sys32_getdents_wrapper
  527. sys32_getdents_wrapper:
  528. llgfr %r2,%r2 # unsigned int
  529. llgtr %r3,%r3 # void *
  530. llgfr %r4,%r4 # unsigned int
  531. jg compat_sys_getdents # branch to system call
  532. .globl compat_sys_select_wrapper
  533. compat_sys_select_wrapper:
  534. lgfr %r2,%r2 # int
  535. llgtr %r3,%r3 # compat_fd_set *
  536. llgtr %r4,%r4 # compat_fd_set *
  537. llgtr %r5,%r5 # compat_fd_set *
  538. llgtr %r6,%r6 # struct compat_timeval *
  539. jg compat_sys_select # branch to system call
  540. .globl sys32_flock_wrapper
  541. sys32_flock_wrapper:
  542. llgfr %r2,%r2 # unsigned int
  543. llgfr %r3,%r3 # unsigned int
  544. jg sys_flock # branch to system call
  545. .globl sys32_msync_wrapper
  546. sys32_msync_wrapper:
  547. llgfr %r2,%r2 # unsigned long
  548. llgfr %r3,%r3 # size_t
  549. lgfr %r4,%r4 # int
  550. jg sys_msync # branch to system call
  551. .globl compat_sys_readv_wrapper
  552. compat_sys_readv_wrapper:
  553. lgfr %r2,%r2 # int
  554. llgtr %r3,%r3 # const struct compat_iovec *
  555. llgfr %r4,%r4 # unsigned long
  556. jg compat_sys_readv # branch to system call
  557. .globl compat_sys_writev_wrapper
  558. compat_sys_writev_wrapper:
  559. lgfr %r2,%r2 # int
  560. llgtr %r3,%r3 # const struct compat_iovec *
  561. llgfr %r4,%r4 # unsigned long
  562. jg compat_sys_writev # branch to system call
  563. .globl sys32_getsid_wrapper
  564. sys32_getsid_wrapper:
  565. lgfr %r2,%r2 # pid_t
  566. jg sys_getsid # branch to system call
  567. .globl sys32_fdatasync_wrapper
  568. sys32_fdatasync_wrapper:
  569. llgfr %r2,%r2 # unsigned int
  570. jg sys_fdatasync # branch to system call
  571. .globl sys32_mlock_wrapper
  572. sys32_mlock_wrapper:
  573. llgfr %r2,%r2 # unsigned long
  574. llgfr %r3,%r3 # size_t
  575. jg sys_mlock # branch to system call
  576. .globl sys32_munlock_wrapper
  577. sys32_munlock_wrapper:
  578. llgfr %r2,%r2 # unsigned long
  579. llgfr %r3,%r3 # size_t
  580. jg sys_munlock # branch to system call
  581. .globl sys32_mlockall_wrapper
  582. sys32_mlockall_wrapper:
  583. lgfr %r2,%r2 # int
  584. jg sys_mlockall # branch to system call
  585. #sys32_munlockall_wrapper # void
  586. .globl sys32_sched_setparam_wrapper
  587. sys32_sched_setparam_wrapper:
  588. lgfr %r2,%r2 # pid_t
  589. llgtr %r3,%r3 # struct sched_param *
  590. jg sys_sched_setparam # branch to system call
  591. .globl sys32_sched_getparam_wrapper
  592. sys32_sched_getparam_wrapper:
  593. lgfr %r2,%r2 # pid_t
  594. llgtr %r3,%r3 # struct sched_param *
  595. jg sys_sched_getparam # branch to system call
  596. .globl sys32_sched_setscheduler_wrapper
  597. sys32_sched_setscheduler_wrapper:
  598. lgfr %r2,%r2 # pid_t
  599. lgfr %r3,%r3 # int
  600. llgtr %r4,%r4 # struct sched_param *
  601. jg sys_sched_setscheduler # branch to system call
  602. .globl sys32_sched_getscheduler_wrapper
  603. sys32_sched_getscheduler_wrapper:
  604. lgfr %r2,%r2 # pid_t
  605. jg sys_sched_getscheduler # branch to system call
  606. #sys32_sched_yield_wrapper # void
  607. .globl sys32_sched_get_priority_max_wrapper
  608. sys32_sched_get_priority_max_wrapper:
  609. lgfr %r2,%r2 # int
  610. jg sys_sched_get_priority_max # branch to system call
  611. .globl sys32_sched_get_priority_min_wrapper
  612. sys32_sched_get_priority_min_wrapper:
  613. lgfr %r2,%r2 # int
  614. jg sys_sched_get_priority_min # branch to system call
  615. .globl sys32_sched_rr_get_interval_wrapper
  616. sys32_sched_rr_get_interval_wrapper:
  617. lgfr %r2,%r2 # pid_t
  618. llgtr %r3,%r3 # struct compat_timespec *
  619. jg sys32_sched_rr_get_interval # branch to system call
  620. .globl compat_sys_nanosleep_wrapper
  621. compat_sys_nanosleep_wrapper:
  622. llgtr %r2,%r2 # struct compat_timespec *
  623. llgtr %r3,%r3 # struct compat_timespec *
  624. jg compat_sys_nanosleep # branch to system call
  625. .globl sys32_mremap_wrapper
  626. sys32_mremap_wrapper:
  627. llgfr %r2,%r2 # unsigned long
  628. llgfr %r3,%r3 # unsigned long
  629. llgfr %r4,%r4 # unsigned long
  630. llgfr %r5,%r5 # unsigned long
  631. llgfr %r6,%r6 # unsigned long
  632. jg sys_mremap # branch to system call
  633. .globl sys32_setresuid16_wrapper
  634. sys32_setresuid16_wrapper:
  635. llgfr %r2,%r2 # __kernel_old_uid_emu31_t
  636. llgfr %r3,%r3 # __kernel_old_uid_emu31_t
  637. llgfr %r4,%r4 # __kernel_old_uid_emu31_t
  638. jg sys32_setresuid16 # branch to system call
  639. .globl sys32_getresuid16_wrapper
  640. sys32_getresuid16_wrapper:
  641. llgtr %r2,%r2 # __kernel_old_uid_emu31_t *
  642. llgtr %r3,%r3 # __kernel_old_uid_emu31_t *
  643. llgtr %r4,%r4 # __kernel_old_uid_emu31_t *
  644. jg sys32_getresuid16 # branch to system call
  645. .globl sys32_poll_wrapper
  646. sys32_poll_wrapper:
  647. llgtr %r2,%r2 # struct pollfd *
  648. llgfr %r3,%r3 # unsigned int
  649. lgfr %r4,%r4 # long
  650. jg sys_poll # branch to system call
  651. .globl compat_sys_nfsservctl_wrapper
  652. compat_sys_nfsservctl_wrapper:
  653. lgfr %r2,%r2 # int
  654. llgtr %r3,%r3 # struct compat_nfsctl_arg*
  655. llgtr %r4,%r4 # union compat_nfsctl_res*
  656. jg compat_sys_nfsservctl # branch to system call
  657. .globl sys32_setresgid16_wrapper
  658. sys32_setresgid16_wrapper:
  659. llgfr %r2,%r2 # __kernel_old_gid_emu31_t
  660. llgfr %r3,%r3 # __kernel_old_gid_emu31_t
  661. llgfr %r4,%r4 # __kernel_old_gid_emu31_t
  662. jg sys32_setresgid16 # branch to system call
  663. .globl sys32_getresgid16_wrapper
  664. sys32_getresgid16_wrapper:
  665. llgtr %r2,%r2 # __kernel_old_gid_emu31_t *
  666. llgtr %r3,%r3 # __kernel_old_gid_emu31_t *
  667. llgtr %r4,%r4 # __kernel_old_gid_emu31_t *
  668. jg sys32_getresgid16 # branch to system call
  669. .globl sys32_prctl_wrapper
  670. sys32_prctl_wrapper:
  671. lgfr %r2,%r2 # int
  672. llgfr %r3,%r3 # unsigned long
  673. llgfr %r4,%r4 # unsigned long
  674. llgfr %r5,%r5 # unsigned long
  675. llgfr %r6,%r6 # unsigned long
  676. jg sys_prctl # branch to system call
  677. #sys32_rt_sigreturn_wrapper # done in rt_sigreturn_glue
  678. .globl sys32_rt_sigaction_wrapper
  679. sys32_rt_sigaction_wrapper:
  680. lgfr %r2,%r2 # int
  681. llgtr %r3,%r3 # const struct sigaction_emu31 *
  682. llgtr %r4,%r4 # const struct sigaction_emu31 *
  683. llgfr %r5,%r5 # size_t
  684. jg sys32_rt_sigaction # branch to system call
  685. .globl sys32_rt_sigprocmask_wrapper
  686. sys32_rt_sigprocmask_wrapper:
  687. lgfr %r2,%r2 # int
  688. llgtr %r3,%r3 # old_sigset_emu31 *
  689. llgtr %r4,%r4 # old_sigset_emu31 *
  690. llgfr %r5,%r5 # size_t
  691. jg sys32_rt_sigprocmask # branch to system call
  692. .globl sys32_rt_sigpending_wrapper
  693. sys32_rt_sigpending_wrapper:
  694. llgtr %r2,%r2 # sigset_emu31 *
  695. llgfr %r3,%r3 # size_t
  696. jg sys32_rt_sigpending # branch to system call
  697. .globl compat_sys_rt_sigtimedwait_wrapper
  698. compat_sys_rt_sigtimedwait_wrapper:
  699. llgtr %r2,%r2 # const sigset_emu31_t *
  700. llgtr %r3,%r3 # siginfo_emu31_t *
  701. llgtr %r4,%r4 # const struct compat_timespec *
  702. llgfr %r5,%r5 # size_t
  703. jg compat_sys_rt_sigtimedwait # branch to system call
  704. .globl sys32_rt_sigqueueinfo_wrapper
  705. sys32_rt_sigqueueinfo_wrapper:
  706. lgfr %r2,%r2 # int
  707. lgfr %r3,%r3 # int
  708. llgtr %r4,%r4 # siginfo_emu31_t *
  709. jg sys32_rt_sigqueueinfo # branch to system call
  710. .globl compat_sys_rt_sigsuspend_wrapper
  711. compat_sys_rt_sigsuspend_wrapper:
  712. llgtr %r2,%r2 # compat_sigset_t *
  713. llgfr %r3,%r3 # compat_size_t
  714. jg compat_sys_rt_sigsuspend
  715. .globl sys32_pread64_wrapper
  716. sys32_pread64_wrapper:
  717. llgfr %r2,%r2 # unsigned int
  718. llgtr %r3,%r3 # char *
  719. llgfr %r4,%r4 # size_t
  720. llgfr %r5,%r5 # u32
  721. llgfr %r6,%r6 # u32
  722. jg sys32_pread64 # branch to system call
  723. .globl sys32_pwrite64_wrapper
  724. sys32_pwrite64_wrapper:
  725. llgfr %r2,%r2 # unsigned int
  726. llgtr %r3,%r3 # const char *
  727. llgfr %r4,%r4 # size_t
  728. llgfr %r5,%r5 # u32
  729. llgfr %r6,%r6 # u32
  730. jg sys32_pwrite64 # branch to system call
  731. .globl sys32_chown16_wrapper
  732. sys32_chown16_wrapper:
  733. llgtr %r2,%r2 # const char *
  734. llgfr %r3,%r3 # __kernel_old_uid_emu31_t
  735. llgfr %r4,%r4 # __kernel_old_gid_emu31_t
  736. jg sys32_chown16 # branch to system call
  737. .globl sys32_getcwd_wrapper
  738. sys32_getcwd_wrapper:
  739. llgtr %r2,%r2 # char *
  740. llgfr %r3,%r3 # unsigned long
  741. jg sys_getcwd # branch to system call
  742. .globl sys32_capget_wrapper
  743. sys32_capget_wrapper:
  744. llgtr %r2,%r2 # cap_user_header_t
  745. llgtr %r3,%r3 # cap_user_data_t
  746. jg sys_capget # branch to system call
  747. .globl sys32_capset_wrapper
  748. sys32_capset_wrapper:
  749. llgtr %r2,%r2 # cap_user_header_t
  750. llgtr %r3,%r3 # const cap_user_data_t
  751. jg sys_capset # branch to system call
  752. .globl sys32_sigaltstack_wrapper
  753. sys32_sigaltstack_wrapper:
  754. llgtr %r2,%r2 # const stack_emu31_t *
  755. llgtr %r3,%r3 # stack_emu31_t *
  756. jg sys32_sigaltstack
  757. .globl sys32_sendfile_wrapper
  758. sys32_sendfile_wrapper:
  759. lgfr %r2,%r2 # int
  760. lgfr %r3,%r3 # int
  761. llgtr %r4,%r4 # __kernel_off_emu31_t *
  762. llgfr %r5,%r5 # size_t
  763. jg sys32_sendfile # branch to system call
  764. #sys32_vfork_wrapper # done in vfork_glue
  765. .globl sys32_truncate64_wrapper
  766. sys32_truncate64_wrapper:
  767. llgtr %r2,%r2 # const char *
  768. llgfr %r3,%r3 # unsigned long
  769. llgfr %r4,%r4 # unsigned long
  770. jg sys32_truncate64 # branch to system call
  771. .globl sys32_ftruncate64_wrapper
  772. sys32_ftruncate64_wrapper:
  773. llgfr %r2,%r2 # unsigned int
  774. llgfr %r3,%r3 # unsigned long
  775. llgfr %r4,%r4 # unsigned long
  776. jg sys32_ftruncate64 # branch to system call
  777. .globl sys32_lchown_wrapper
  778. sys32_lchown_wrapper:
  779. llgtr %r2,%r2 # const char *
  780. llgfr %r3,%r3 # uid_t
  781. llgfr %r4,%r4 # gid_t
  782. jg sys_lchown # branch to system call
  783. #sys32_getuid_wrapper # void
  784. #sys32_getgid_wrapper # void
  785. #sys32_geteuid_wrapper # void
  786. #sys32_getegid_wrapper # void
  787. .globl sys32_setreuid_wrapper
  788. sys32_setreuid_wrapper:
  789. llgfr %r2,%r2 # uid_t
  790. llgfr %r3,%r3 # uid_t
  791. jg sys_setreuid # branch to system call
  792. .globl sys32_setregid_wrapper
  793. sys32_setregid_wrapper:
  794. llgfr %r2,%r2 # gid_t
  795. llgfr %r3,%r3 # gid_t
  796. jg sys_setregid # branch to system call
  797. .globl sys32_getgroups_wrapper
  798. sys32_getgroups_wrapper:
  799. lgfr %r2,%r2 # int
  800. llgtr %r3,%r3 # gid_t *
  801. jg sys_getgroups # branch to system call
  802. .globl sys32_setgroups_wrapper
  803. sys32_setgroups_wrapper:
  804. lgfr %r2,%r2 # int
  805. llgtr %r3,%r3 # gid_t *
  806. jg sys_setgroups # branch to system call
  807. .globl sys32_fchown_wrapper
  808. sys32_fchown_wrapper:
  809. llgfr %r2,%r2 # unsigned int
  810. llgfr %r3,%r3 # uid_t
  811. llgfr %r4,%r4 # gid_t
  812. jg sys_fchown # branch to system call
  813. .globl sys32_setresuid_wrapper
  814. sys32_setresuid_wrapper:
  815. llgfr %r2,%r2 # uid_t
  816. llgfr %r3,%r3 # uid_t
  817. llgfr %r4,%r4 # uid_t
  818. jg sys_setresuid # branch to system call
  819. .globl sys32_getresuid_wrapper
  820. sys32_getresuid_wrapper:
  821. llgtr %r2,%r2 # uid_t *
  822. llgtr %r3,%r3 # uid_t *
  823. llgtr %r4,%r4 # uid_t *
  824. jg sys_getresuid # branch to system call
  825. .globl sys32_setresgid_wrapper
  826. sys32_setresgid_wrapper:
  827. llgfr %r2,%r2 # gid_t
  828. llgfr %r3,%r3 # gid_t
  829. llgfr %r4,%r4 # gid_t
  830. jg sys_setresgid # branch to system call
  831. .globl sys32_getresgid_wrapper
  832. sys32_getresgid_wrapper:
  833. llgtr %r2,%r2 # gid_t *
  834. llgtr %r3,%r3 # gid_t *
  835. llgtr %r4,%r4 # gid_t *
  836. jg sys_getresgid # branch to system call
  837. .globl sys32_chown_wrapper
  838. sys32_chown_wrapper:
  839. llgtr %r2,%r2 # const char *
  840. llgfr %r3,%r3 # uid_t
  841. llgfr %r4,%r4 # gid_t
  842. jg sys_chown # branch to system call
  843. .globl sys32_setuid_wrapper
  844. sys32_setuid_wrapper:
  845. llgfr %r2,%r2 # uid_t
  846. jg sys_setuid # branch to system call
  847. .globl sys32_setgid_wrapper
  848. sys32_setgid_wrapper:
  849. llgfr %r2,%r2 # gid_t
  850. jg sys_setgid # branch to system call
  851. .globl sys32_setfsuid_wrapper
  852. sys32_setfsuid_wrapper:
  853. llgfr %r2,%r2 # uid_t
  854. jg sys_setfsuid # branch to system call
  855. .globl sys32_setfsgid_wrapper
  856. sys32_setfsgid_wrapper:
  857. llgfr %r2,%r2 # gid_t
  858. jg sys_setfsgid # branch to system call
  859. .globl sys32_pivot_root_wrapper
  860. sys32_pivot_root_wrapper:
  861. llgtr %r2,%r2 # const char *
  862. llgtr %r3,%r3 # const char *
  863. jg sys_pivot_root # branch to system call
  864. .globl sys32_mincore_wrapper
  865. sys32_mincore_wrapper:
  866. llgfr %r2,%r2 # unsigned long
  867. llgfr %r3,%r3 # size_t
  868. llgtr %r4,%r4 # unsigned char *
  869. jg sys_mincore # branch to system call
  870. .globl sys32_madvise_wrapper
  871. sys32_madvise_wrapper:
  872. llgfr %r2,%r2 # unsigned long
  873. llgfr %r3,%r3 # size_t
  874. lgfr %r4,%r4 # int
  875. jg sys_madvise # branch to system call
  876. .globl sys32_getdents64_wrapper
  877. sys32_getdents64_wrapper:
  878. llgfr %r2,%r2 # unsigned int
  879. llgtr %r3,%r3 # void *
  880. llgfr %r4,%r4 # unsigned int
  881. jg sys_getdents64 # branch to system call
  882. .globl compat_sys_fcntl64_wrapper
  883. compat_sys_fcntl64_wrapper:
  884. llgfr %r2,%r2 # unsigned int
  885. llgfr %r3,%r3 # unsigned int
  886. llgfr %r4,%r4 # unsigned long
  887. jg compat_sys_fcntl64 # branch to system call
  888. .globl sys32_stat64_wrapper
  889. sys32_stat64_wrapper:
  890. llgtr %r2,%r2 # char *
  891. llgtr %r3,%r3 # struct stat64 *
  892. jg sys32_stat64 # branch to system call
  893. .globl sys32_lstat64_wrapper
  894. sys32_lstat64_wrapper:
  895. llgtr %r2,%r2 # char *
  896. llgtr %r3,%r3 # struct stat64 *
  897. jg sys32_lstat64 # branch to system call
  898. .globl sys32_stime_wrapper
  899. sys32_stime_wrapper:
  900. llgtr %r2,%r2 # long *
  901. jg compat_sys_stime # branch to system call
  902. .globl sys32_sysctl_wrapper
  903. sys32_sysctl_wrapper:
  904. llgtr %r2,%r2 # struct compat_sysctl_args *
  905. jg compat_sys_sysctl
  906. .globl sys32_fstat64_wrapper
  907. sys32_fstat64_wrapper:
  908. llgfr %r2,%r2 # unsigned long
  909. llgtr %r3,%r3 # struct stat64 *
  910. jg sys32_fstat64 # branch to system call
  911. .globl compat_sys_futex_wrapper
  912. compat_sys_futex_wrapper:
  913. llgtr %r2,%r2 # u32 *
  914. lgfr %r3,%r3 # int
  915. lgfr %r4,%r4 # int
  916. llgtr %r5,%r5 # struct compat_timespec *
  917. llgtr %r6,%r6 # u32 *
  918. lgf %r0,164(%r15) # int
  919. stg %r0,160(%r15)
  920. jg compat_sys_futex # branch to system call
  921. .globl sys32_setxattr_wrapper
  922. sys32_setxattr_wrapper:
  923. llgtr %r2,%r2 # char *
  924. llgtr %r3,%r3 # char *
  925. llgtr %r4,%r4 # void *
  926. llgfr %r5,%r5 # size_t
  927. lgfr %r6,%r6 # int
  928. jg sys_setxattr
  929. .globl sys32_lsetxattr_wrapper
  930. sys32_lsetxattr_wrapper:
  931. llgtr %r2,%r2 # char *
  932. llgtr %r3,%r3 # char *
  933. llgtr %r4,%r4 # void *
  934. llgfr %r5,%r5 # size_t
  935. lgfr %r6,%r6 # int
  936. jg sys_lsetxattr
  937. .globl sys32_fsetxattr_wrapper
  938. sys32_fsetxattr_wrapper:
  939. lgfr %r2,%r2 # int
  940. llgtr %r3,%r3 # char *
  941. llgtr %r4,%r4 # void *
  942. llgfr %r5,%r5 # size_t
  943. lgfr %r6,%r6 # int
  944. jg sys_fsetxattr
  945. .globl sys32_getxattr_wrapper
  946. sys32_getxattr_wrapper:
  947. llgtr %r2,%r2 # char *
  948. llgtr %r3,%r3 # char *
  949. llgtr %r4,%r4 # void *
  950. llgfr %r5,%r5 # size_t
  951. jg sys_getxattr
  952. .globl sys32_lgetxattr_wrapper
  953. sys32_lgetxattr_wrapper:
  954. llgtr %r2,%r2 # char *
  955. llgtr %r3,%r3 # char *
  956. llgtr %r4,%r4 # void *
  957. llgfr %r5,%r5 # size_t
  958. jg sys_lgetxattr
  959. .globl sys32_fgetxattr_wrapper
  960. sys32_fgetxattr_wrapper:
  961. lgfr %r2,%r2 # int
  962. llgtr %r3,%r3 # char *
  963. llgtr %r4,%r4 # void *
  964. llgfr %r5,%r5 # size_t
  965. jg sys_fgetxattr
  966. .globl sys32_listxattr_wrapper
  967. sys32_listxattr_wrapper:
  968. llgtr %r2,%r2 # char *
  969. llgtr %r3,%r3 # char *
  970. llgfr %r4,%r4 # size_t
  971. jg sys_listxattr
  972. .globl sys32_llistxattr_wrapper
  973. sys32_llistxattr_wrapper:
  974. llgtr %r2,%r2 # char *
  975. llgtr %r3,%r3 # char *
  976. llgfr %r4,%r4 # size_t
  977. jg sys_llistxattr
  978. .globl sys32_flistxattr_wrapper
  979. sys32_flistxattr_wrapper:
  980. lgfr %r2,%r2 # int
  981. llgtr %r3,%r3 # char *
  982. llgfr %r4,%r4 # size_t
  983. jg sys_flistxattr
  984. .globl sys32_removexattr_wrapper
  985. sys32_removexattr_wrapper:
  986. llgtr %r2,%r2 # char *
  987. llgtr %r3,%r3 # char *
  988. jg sys_removexattr
  989. .globl sys32_lremovexattr_wrapper
  990. sys32_lremovexattr_wrapper:
  991. llgtr %r2,%r2 # char *
  992. llgtr %r3,%r3 # char *
  993. jg sys_lremovexattr
  994. .globl sys32_fremovexattr_wrapper
  995. sys32_fremovexattr_wrapper:
  996. lgfr %r2,%r2 # int
  997. llgtr %r3,%r3 # char *
  998. jg sys_fremovexattr
  999. .globl sys32_sched_setaffinity_wrapper
  1000. sys32_sched_setaffinity_wrapper:
  1001. lgfr %r2,%r2 # int
  1002. llgfr %r3,%r3 # unsigned int
  1003. llgtr %r4,%r4 # unsigned long *
  1004. jg compat_sys_sched_setaffinity
  1005. .globl sys32_sched_getaffinity_wrapper
  1006. sys32_sched_getaffinity_wrapper:
  1007. lgfr %r2,%r2 # int
  1008. llgfr %r3,%r3 # unsigned int
  1009. llgtr %r4,%r4 # unsigned long *
  1010. jg compat_sys_sched_getaffinity
  1011. .globl sys32_exit_group_wrapper
  1012. sys32_exit_group_wrapper:
  1013. lgfr %r2,%r2 # int
  1014. jg sys_exit_group # branch to system call
  1015. .globl sys32_set_tid_address_wrapper
  1016. sys32_set_tid_address_wrapper:
  1017. llgtr %r2,%r2 # int *
  1018. jg sys_set_tid_address # branch to system call
  1019. .globl sys_epoll_create_wrapper
  1020. sys_epoll_create_wrapper:
  1021. lgfr %r2,%r2 # int
  1022. jg sys_epoll_create # branch to system call
  1023. .globl sys_epoll_ctl_wrapper
  1024. sys_epoll_ctl_wrapper:
  1025. lgfr %r2,%r2 # int
  1026. lgfr %r3,%r3 # int
  1027. lgfr %r4,%r4 # int
  1028. llgtr %r5,%r5 # struct epoll_event *
  1029. jg sys_epoll_ctl # branch to system call
  1030. .globl sys_epoll_wait_wrapper
  1031. sys_epoll_wait_wrapper:
  1032. lgfr %r2,%r2 # int
  1033. llgtr %r3,%r3 # struct epoll_event *
  1034. lgfr %r4,%r4 # int
  1035. lgfr %r5,%r5 # int
  1036. jg sys_epoll_wait # branch to system call
  1037. .globl sys32_lookup_dcookie_wrapper
  1038. sys32_lookup_dcookie_wrapper:
  1039. sllg %r2,%r2,32 # get high word of 64bit dcookie
  1040. or %r2,%r3 # get low word of 64bit dcookie
  1041. llgtr %r3,%r4 # char *
  1042. llgfr %r4,%r5 # size_t
  1043. jg sys_lookup_dcookie
  1044. .globl sys32_fadvise64_wrapper
  1045. sys32_fadvise64_wrapper:
  1046. lgfr %r2,%r2 # int
  1047. sllg %r3,%r3,32 # get high word of 64bit loff_t
  1048. or %r3,%r4 # get low word of 64bit loff_t
  1049. llgfr %r4,%r5 # size_t (unsigned long)
  1050. lgfr %r5,%r6 # int
  1051. jg sys32_fadvise64
  1052. .globl sys32_fadvise64_64_wrapper
  1053. sys32_fadvise64_64_wrapper:
  1054. llgtr %r2,%r2 # struct fadvise64_64_args *
  1055. jg sys32_fadvise64_64
  1056. .globl sys32_clock_settime_wrapper
  1057. sys32_clock_settime_wrapper:
  1058. lgfr %r2,%r2 # clockid_t (int)
  1059. llgtr %r3,%r3 # struct compat_timespec *
  1060. jg compat_sys_clock_settime
  1061. .globl sys32_clock_gettime_wrapper
  1062. sys32_clock_gettime_wrapper:
  1063. lgfr %r2,%r2 # clockid_t (int)
  1064. llgtr %r3,%r3 # struct compat_timespec *
  1065. jg compat_sys_clock_gettime
  1066. .globl sys32_clock_getres_wrapper
  1067. sys32_clock_getres_wrapper:
  1068. lgfr %r2,%r2 # clockid_t (int)
  1069. llgtr %r3,%r3 # struct compat_timespec *
  1070. jg compat_sys_clock_getres
  1071. .globl sys32_clock_nanosleep_wrapper
  1072. sys32_clock_nanosleep_wrapper:
  1073. lgfr %r2,%r2 # clockid_t (int)
  1074. lgfr %r3,%r3 # int
  1075. llgtr %r4,%r4 # struct compat_timespec *
  1076. llgtr %r5,%r5 # struct compat_timespec *
  1077. jg compat_sys_clock_nanosleep
  1078. .globl sys32_timer_create_wrapper
  1079. sys32_timer_create_wrapper:
  1080. lgfr %r2,%r2 # timer_t (int)
  1081. llgtr %r3,%r3 # struct compat_sigevent *
  1082. llgtr %r4,%r4 # timer_t *
  1083. jg compat_sys_timer_create
  1084. .globl sys32_timer_settime_wrapper
  1085. sys32_timer_settime_wrapper:
  1086. lgfr %r2,%r2 # timer_t (int)
  1087. lgfr %r3,%r3 # int
  1088. llgtr %r4,%r4 # struct compat_itimerspec *
  1089. llgtr %r5,%r5 # struct compat_itimerspec *
  1090. jg compat_sys_timer_settime
  1091. .globl sys32_timer_gettime_wrapper
  1092. sys32_timer_gettime_wrapper:
  1093. lgfr %r2,%r2 # timer_t (int)
  1094. llgtr %r3,%r3 # struct compat_itimerspec *
  1095. jg compat_sys_timer_gettime
  1096. .globl sys32_timer_getoverrun_wrapper
  1097. sys32_timer_getoverrun_wrapper:
  1098. lgfr %r2,%r2 # timer_t (int)
  1099. jg sys_timer_getoverrun
  1100. .globl sys32_timer_delete_wrapper
  1101. sys32_timer_delete_wrapper:
  1102. lgfr %r2,%r2 # timer_t (int)
  1103. jg sys_timer_delete
  1104. .globl sys32_io_setup_wrapper
  1105. sys32_io_setup_wrapper:
  1106. llgfr %r2,%r2 # unsigned int
  1107. llgtr %r3,%r3 # u32 *
  1108. jg compat_sys_io_setup
  1109. .globl sys32_io_destroy_wrapper
  1110. sys32_io_destroy_wrapper:
  1111. llgfr %r2,%r2 # (aio_context_t) u32
  1112. jg sys_io_destroy
  1113. .globl sys32_io_getevents_wrapper
  1114. sys32_io_getevents_wrapper:
  1115. llgfr %r2,%r2 # (aio_context_t) u32
  1116. lgfr %r3,%r3 # long
  1117. lgfr %r4,%r4 # long
  1118. llgtr %r5,%r5 # struct io_event *
  1119. llgtr %r6,%r6 # struct compat_timespec *
  1120. jg compat_sys_io_getevents
  1121. .globl sys32_io_submit_wrapper
  1122. sys32_io_submit_wrapper:
  1123. llgfr %r2,%r2 # (aio_context_t) u32
  1124. lgfr %r3,%r3 # long
  1125. llgtr %r4,%r4 # struct iocb **
  1126. jg compat_sys_io_submit
  1127. .globl sys32_io_cancel_wrapper
  1128. sys32_io_cancel_wrapper:
  1129. llgfr %r2,%r2 # (aio_context_t) u32
  1130. llgtr %r3,%r3 # struct iocb *
  1131. llgtr %r4,%r4 # struct io_event *
  1132. jg sys_io_cancel
  1133. .globl compat_sys_statfs64_wrapper
  1134. compat_sys_statfs64_wrapper:
  1135. llgtr %r2,%r2 # const char *
  1136. llgfr %r3,%r3 # compat_size_t
  1137. llgtr %r4,%r4 # struct compat_statfs64 *
  1138. jg compat_sys_statfs64
  1139. .globl compat_sys_fstatfs64_wrapper
  1140. compat_sys_fstatfs64_wrapper:
  1141. llgfr %r2,%r2 # unsigned int fd
  1142. llgfr %r3,%r3 # compat_size_t
  1143. llgtr %r4,%r4 # struct compat_statfs64 *
  1144. jg compat_sys_fstatfs64
  1145. .globl compat_sys_mq_open_wrapper
  1146. compat_sys_mq_open_wrapper:
  1147. llgtr %r2,%r2 # const char *
  1148. lgfr %r3,%r3 # int
  1149. llgfr %r4,%r4 # mode_t
  1150. llgtr %r5,%r5 # struct compat_mq_attr *
  1151. jg compat_sys_mq_open
  1152. .globl sys32_mq_unlink_wrapper
  1153. sys32_mq_unlink_wrapper:
  1154. llgtr %r2,%r2 # const char *
  1155. jg sys_mq_unlink
  1156. .globl compat_sys_mq_timedsend_wrapper
  1157. compat_sys_mq_timedsend_wrapper:
  1158. lgfr %r2,%r2 # mqd_t
  1159. llgtr %r3,%r3 # const char *
  1160. llgfr %r4,%r4 # size_t
  1161. llgfr %r5,%r5 # unsigned int
  1162. llgtr %r6,%r6 # const struct compat_timespec *
  1163. jg compat_sys_mq_timedsend
  1164. .globl compat_sys_mq_timedreceive_wrapper
  1165. compat_sys_mq_timedreceive_wrapper:
  1166. lgfr %r2,%r2 # mqd_t
  1167. llgtr %r3,%r3 # char *
  1168. llgfr %r4,%r4 # size_t
  1169. llgtr %r5,%r5 # unsigned int *
  1170. llgtr %r6,%r6 # const struct compat_timespec *
  1171. jg compat_sys_mq_timedreceive
  1172. .globl compat_sys_mq_notify_wrapper
  1173. compat_sys_mq_notify_wrapper:
  1174. lgfr %r2,%r2 # mqd_t
  1175. llgtr %r3,%r3 # struct compat_sigevent *
  1176. jg compat_sys_mq_notify
  1177. .globl compat_sys_mq_getsetattr_wrapper
  1178. compat_sys_mq_getsetattr_wrapper:
  1179. lgfr %r2,%r2 # mqd_t
  1180. llgtr %r3,%r3 # struct compat_mq_attr *
  1181. llgtr %r4,%r4 # struct compat_mq_attr *
  1182. jg compat_sys_mq_getsetattr
  1183. .globl compat_sys_add_key_wrapper
  1184. compat_sys_add_key_wrapper:
  1185. llgtr %r2,%r2 # const char *
  1186. llgtr %r3,%r3 # const char *
  1187. llgtr %r4,%r4 # const void *
  1188. llgfr %r5,%r5 # size_t
  1189. llgfr %r6,%r6 # (key_serial_t) u32
  1190. jg sys_add_key
  1191. .globl compat_sys_request_key_wrapper
  1192. compat_sys_request_key_wrapper:
  1193. llgtr %r2,%r2 # const char *
  1194. llgtr %r3,%r3 # const char *
  1195. llgtr %r4,%r4 # const void *
  1196. llgfr %r5,%r5 # (key_serial_t) u32
  1197. jg sys_request_key
  1198. .globl sys32_remap_file_pages_wrapper
  1199. sys32_remap_file_pages_wrapper:
  1200. llgfr %r2,%r2 # unsigned long
  1201. llgfr %r3,%r3 # unsigned long
  1202. llgfr %r4,%r4 # unsigned long
  1203. llgfr %r5,%r5 # unsigned long
  1204. llgfr %r6,%r6 # unsigned long
  1205. jg sys_remap_file_pages
  1206. .globl compat_sys_waitid_wrapper
  1207. compat_sys_waitid_wrapper:
  1208. lgfr %r2,%r2 # int
  1209. lgfr %r3,%r3 # pid_t
  1210. llgtr %r4,%r4 # siginfo_emu31_t *
  1211. lgfr %r5,%r5 # int
  1212. llgtr %r6,%r6 # struct rusage_emu31 *
  1213. jg compat_sys_waitid
  1214. .globl compat_sys_kexec_load_wrapper
  1215. compat_sys_kexec_load_wrapper:
  1216. llgfr %r2,%r2 # unsigned long
  1217. llgfr %r3,%r3 # unsigned long
  1218. llgtr %r4,%r4 # struct kexec_segment *
  1219. llgfr %r5,%r5 # unsigned long
  1220. jg compat_sys_kexec_load
  1221. .globl sys_ioprio_set_wrapper
  1222. sys_ioprio_set_wrapper:
  1223. lgfr %r2,%r2 # int
  1224. lgfr %r3,%r3 # int
  1225. lgfr %r4,%r4 # int
  1226. jg sys_ioprio_set
  1227. .globl sys_ioprio_get_wrapper
  1228. sys_ioprio_get_wrapper:
  1229. lgfr %r2,%r2 # int
  1230. lgfr %r3,%r3 # int
  1231. jg sys_ioprio_get
  1232. .globl sys_inotify_add_watch_wrapper
  1233. sys_inotify_add_watch_wrapper:
  1234. lgfr %r2,%r2 # int
  1235. llgtr %r3,%r3 # const char *
  1236. llgfr %r4,%r4 # u32
  1237. jg sys_inotify_add_watch
  1238. .globl sys_inotify_rm_watch_wrapper
  1239. sys_inotify_rm_watch_wrapper:
  1240. lgfr %r2,%r2 # int
  1241. llgfr %r3,%r3 # u32
  1242. jg sys_inotify_rm_watch
  1243. .globl compat_sys_openat_wrapper
  1244. compat_sys_openat_wrapper:
  1245. llgfr %r2,%r2 # unsigned int
  1246. llgtr %r3,%r3 # const char *
  1247. lgfr %r4,%r4 # int
  1248. lgfr %r5,%r5 # int
  1249. jg compat_sys_openat
  1250. .globl sys_mkdirat_wrapper
  1251. sys_mkdirat_wrapper:
  1252. lgfr %r2,%r2 # int
  1253. llgtr %r3,%r3 # const char *
  1254. lgfr %r4,%r4 # int
  1255. jg sys_mkdirat
  1256. .globl sys_mknodat_wrapper
  1257. sys_mknodat_wrapper:
  1258. lgfr %r2,%r2 # int
  1259. llgtr %r3,%r3 # const char *
  1260. lgfr %r4,%r4 # int
  1261. llgfr %r5,%r5 # unsigned int
  1262. jg sys_mknodat
  1263. .globl sys_fchownat_wrapper
  1264. sys_fchownat_wrapper:
  1265. lgfr %r2,%r2 # int
  1266. llgtr %r3,%r3 # const char *
  1267. llgfr %r4,%r4 # uid_t
  1268. llgfr %r5,%r5 # gid_t
  1269. lgfr %r6,%r6 # int
  1270. jg sys_fchownat
  1271. .globl compat_sys_futimesat_wrapper
  1272. compat_sys_futimesat_wrapper:
  1273. llgfr %r2,%r2 # unsigned int
  1274. llgtr %r3,%r3 # char *
  1275. llgtr %r4,%r4 # struct timeval *
  1276. jg compat_sys_futimesat
  1277. .globl sys32_fstatat64_wrapper
  1278. sys32_fstatat64_wrapper:
  1279. llgfr %r2,%r2 # unsigned int
  1280. llgtr %r3,%r3 # char *
  1281. llgtr %r4,%r4 # struct stat64 *
  1282. lgfr %r5,%r5 # int
  1283. jg sys32_fstatat64
  1284. .globl sys_unlinkat_wrapper
  1285. sys_unlinkat_wrapper:
  1286. lgfr %r2,%r2 # int
  1287. llgtr %r3,%r3 # const char *
  1288. lgfr %r4,%r4 # int
  1289. jg sys_unlinkat
  1290. .globl sys_renameat_wrapper
  1291. sys_renameat_wrapper:
  1292. lgfr %r2,%r2 # int
  1293. llgtr %r3,%r3 # const char *
  1294. lgfr %r4,%r4 # int
  1295. llgtr %r5,%r5 # const char *
  1296. jg sys_renameat
  1297. .globl sys_linkat_wrapper
  1298. sys_linkat_wrapper:
  1299. lgfr %r2,%r2 # int
  1300. llgtr %r3,%r3 # const char *
  1301. lgfr %r4,%r4 # int
  1302. llgtr %r5,%r5 # const char *
  1303. lgfr %r6,%r6 # int
  1304. jg sys_linkat
  1305. .globl sys_symlinkat_wrapper
  1306. sys_symlinkat_wrapper:
  1307. llgtr %r2,%r2 # const char *
  1308. lgfr %r3,%r3 # int
  1309. llgtr %r4,%r4 # const char *
  1310. jg sys_symlinkat
  1311. .globl sys_readlinkat_wrapper
  1312. sys_readlinkat_wrapper:
  1313. lgfr %r2,%r2 # int
  1314. llgtr %r3,%r3 # const char *
  1315. llgtr %r4,%r4 # char *
  1316. lgfr %r5,%r5 # int
  1317. jg sys_readlinkat
  1318. .globl sys_fchmodat_wrapper
  1319. sys_fchmodat_wrapper:
  1320. lgfr %r2,%r2 # int
  1321. llgtr %r3,%r3 # const char *
  1322. llgfr %r4,%r4 # mode_t
  1323. jg sys_fchmodat
  1324. .globl sys_faccessat_wrapper
  1325. sys_faccessat_wrapper:
  1326. lgfr %r2,%r2 # int
  1327. llgtr %r3,%r3 # const char *
  1328. lgfr %r4,%r4 # int
  1329. jg sys_faccessat
  1330. .globl compat_sys_pselect6_wrapper
  1331. compat_sys_pselect6_wrapper:
  1332. lgfr %r2,%r2 # int
  1333. llgtr %r3,%r3 # fd_set *
  1334. llgtr %r4,%r4 # fd_set *
  1335. llgtr %r5,%r5 # fd_set *
  1336. llgtr %r6,%r6 # struct timespec *
  1337. llgt %r0,164(%r15) # void *
  1338. stg %r0,160(%r15)
  1339. jg compat_sys_pselect6
  1340. .globl compat_sys_ppoll_wrapper
  1341. compat_sys_ppoll_wrapper:
  1342. llgtr %r2,%r2 # struct pollfd *
  1343. llgfr %r3,%r3 # unsigned int
  1344. llgtr %r4,%r4 # struct timespec *
  1345. llgtr %r5,%r5 # const sigset_t *
  1346. llgfr %r6,%r6 # size_t
  1347. jg compat_sys_ppoll
  1348. .globl sys_unshare_wrapper
  1349. sys_unshare_wrapper:
  1350. llgfr %r2,%r2 # unsigned long
  1351. jg sys_unshare
  1352. .globl compat_sys_set_robust_list_wrapper
  1353. compat_sys_set_robust_list_wrapper:
  1354. llgtr %r2,%r2 # struct compat_robust_list_head *
  1355. llgfr %r3,%r3 # size_t
  1356. jg compat_sys_set_robust_list
  1357. .globl compat_sys_get_robust_list_wrapper
  1358. compat_sys_get_robust_list_wrapper:
  1359. lgfr %r2,%r2 # int
  1360. llgtr %r3,%r3 # compat_uptr_t_t *
  1361. llgtr %r4,%r4 # compat_size_t *
  1362. jg compat_sys_get_robust_list
  1363. .globl sys_splice_wrapper
  1364. sys_splice_wrapper:
  1365. lgfr %r2,%r2 # int
  1366. llgtr %r3,%r3 # loff_t *
  1367. lgfr %r4,%r4 # int
  1368. llgtr %r5,%r5 # loff_t *
  1369. llgfr %r6,%r6 # size_t
  1370. llgf %r0,164(%r15) # unsigned int
  1371. stg %r0,160(%r15)
  1372. jg sys_splice
  1373. .globl sys_sync_file_range_wrapper
  1374. sys_sync_file_range_wrapper:
  1375. lgfr %r2,%r2 # int
  1376. sllg %r3,%r3,32 # get high word of 64bit loff_t
  1377. or %r3,%r4 # get low word of 64bit loff_t
  1378. sllg %r4,%r5,32 # get high word of 64bit loff_t
  1379. or %r4,%r6 # get low word of 64bit loff_t
  1380. llgf %r5,164(%r15) # unsigned int
  1381. jg sys_sync_file_range
  1382. .globl sys_tee_wrapper
  1383. sys_tee_wrapper:
  1384. lgfr %r2,%r2 # int
  1385. lgfr %r3,%r3 # int
  1386. llgfr %r4,%r4 # size_t
  1387. llgfr %r5,%r5 # unsigned int
  1388. jg sys_tee
  1389. .globl compat_sys_vmsplice_wrapper
  1390. compat_sys_vmsplice_wrapper:
  1391. lgfr %r2,%r2 # int
  1392. llgtr %r3,%r3 # compat_iovec *
  1393. llgfr %r4,%r4 # unsigned int
  1394. llgfr %r5,%r5 # unsigned int
  1395. jg compat_sys_vmsplice
  1396. .globl sys_getcpu_wrapper
  1397. sys_getcpu_wrapper:
  1398. llgtr %r2,%r2 # unsigned *
  1399. llgtr %r3,%r3 # unsigned *
  1400. llgtr %r4,%r4 # struct getcpu_cache *
  1401. jg sys_getcpu
  1402. .globl compat_sys_epoll_pwait_wrapper
  1403. compat_sys_epoll_pwait_wrapper:
  1404. lgfr %r2,%r2 # int
  1405. llgtr %r3,%r3 # struct compat_epoll_event *
  1406. lgfr %r4,%r4 # int
  1407. lgfr %r5,%r5 # int
  1408. llgtr %r6,%r6 # compat_sigset_t *
  1409. llgf %r0,164(%r15) # compat_size_t
  1410. stg %r0,160(%r15)
  1411. jg compat_sys_epoll_pwait
  1412. .globl compat_sys_utimes_wrapper
  1413. compat_sys_utimes_wrapper:
  1414. llgtr %r2,%r2 # char *
  1415. llgtr %r3,%r3 # struct compat_timeval *
  1416. jg compat_sys_utimes
  1417. .globl compat_sys_utimensat_wrapper
  1418. compat_sys_utimensat_wrapper:
  1419. llgfr %r2,%r2 # unsigned int
  1420. llgtr %r3,%r3 # char *
  1421. llgtr %r4,%r4 # struct compat_timespec *
  1422. lgfr %r5,%r5 # int
  1423. jg compat_sys_utimensat
  1424. .globl compat_sys_signalfd_wrapper
  1425. compat_sys_signalfd_wrapper:
  1426. lgfr %r2,%r2 # int
  1427. llgtr %r3,%r3 # compat_sigset_t *
  1428. llgfr %r4,%r4 # compat_size_t
  1429. jg compat_sys_signalfd
  1430. .globl sys_eventfd_wrapper
  1431. sys_eventfd_wrapper:
  1432. llgfr %r2,%r2 # unsigned int
  1433. jg sys_eventfd
  1434. .globl sys_fallocate_wrapper
  1435. sys_fallocate_wrapper:
  1436. lgfr %r2,%r2 # int
  1437. lgfr %r3,%r3 # int
  1438. sllg %r4,%r4,32 # get high word of 64bit loff_t
  1439. lr %r4,%r5 # get low word of 64bit loff_t
  1440. sllg %r5,%r6,32 # get high word of 64bit loff_t
  1441. l %r5,164(%r15) # get low word of 64bit loff_t
  1442. jg sys_fallocate
  1443. .globl sys_timerfd_create_wrapper
  1444. sys_timerfd_create_wrapper:
  1445. lgfr %r2,%r2 # int
  1446. lgfr %r3,%r3 # int
  1447. jg sys_timerfd_create
  1448. .globl compat_sys_timerfd_settime_wrapper
  1449. compat_sys_timerfd_settime_wrapper:
  1450. lgfr %r2,%r2 # int
  1451. lgfr %r3,%r3 # int
  1452. llgtr %r4,%r4 # struct compat_itimerspec *
  1453. llgtr %r5,%r5 # struct compat_itimerspec *
  1454. jg compat_sys_timerfd_settime
  1455. .globl compat_sys_timerfd_gettime_wrapper
  1456. compat_sys_timerfd_gettime_wrapper:
  1457. lgfr %r2,%r2 # int
  1458. llgtr %r3,%r3 # struct compat_itimerspec *
  1459. jg compat_sys_timerfd_gettime
  1460. .globl compat_sys_signalfd4_wrapper
  1461. compat_sys_signalfd4_wrapper:
  1462. lgfr %r2,%r2 # int
  1463. llgtr %r3,%r3 # compat_sigset_t *
  1464. llgfr %r4,%r4 # compat_size_t
  1465. lgfr %r5,%r5 # int
  1466. jg compat_sys_signalfd4
  1467. .globl sys_eventfd2_wrapper
  1468. sys_eventfd2_wrapper:
  1469. llgfr %r2,%r2 # unsigned int
  1470. lgfr %r3,%r3 # int
  1471. jg sys_eventfd2
  1472. .globl sys_inotify_init1_wrapper
  1473. sys_inotify_init1_wrapper:
  1474. lgfr %r2,%r2 # int
  1475. jg sys_inotify_init1
  1476. .globl sys_pipe2_wrapper
  1477. sys_pipe2_wrapper:
  1478. llgtr %r2,%r2 # u32 *
  1479. lgfr %r3,%r3 # int
  1480. jg sys_pipe2 # branch to system call
  1481. .globl sys_dup3_wrapper
  1482. sys_dup3_wrapper:
  1483. llgfr %r2,%r2 # unsigned int
  1484. llgfr %r3,%r3 # unsigned int
  1485. lgfr %r4,%r4 # int
  1486. jg sys_dup3 # branch to system call
  1487. .globl sys_epoll_create1_wrapper
  1488. sys_epoll_create1_wrapper:
  1489. lgfr %r2,%r2 # int
  1490. jg sys_epoll_create1 # branch to system call
  1491. .globl sys32_readahead_wrapper
  1492. sys32_readahead_wrapper:
  1493. lgfr %r2,%r2 # int
  1494. llgfr %r3,%r3 # u32
  1495. llgfr %r4,%r4 # u32
  1496. lgfr %r5,%r5 # s32
  1497. jg sys32_readahead # branch to system call
  1498. .globl sys32_sendfile64_wrapper
  1499. sys32_sendfile64_wrapper:
  1500. lgfr %r2,%r2 # int
  1501. lgfr %r3,%r3 # int
  1502. llgtr %r4,%r4 # compat_loff_t *
  1503. lgfr %r5,%r5 # s32
  1504. jg sys32_sendfile64 # branch to system call
  1505. .globl sys_tkill_wrapper
  1506. sys_tkill_wrapper:
  1507. lgfr %r2,%r2 # pid_t
  1508. lgfr %r3,%r3 # int
  1509. jg sys_tkill # branch to system call
  1510. .globl sys_tgkill_wrapper
  1511. sys_tgkill_wrapper:
  1512. lgfr %r2,%r2 # pid_t
  1513. lgfr %r3,%r3 # pid_t
  1514. lgfr %r4,%r4 # int
  1515. jg sys_tgkill # branch to system call
  1516. .globl compat_sys_keyctl_wrapper
  1517. compat_sys_keyctl_wrapper:
  1518. llgfr %r2,%r2 # u32
  1519. llgfr %r3,%r3 # u32
  1520. llgfr %r4,%r4 # u32
  1521. llgfr %r5,%r5 # u32
  1522. llgfr %r6,%r6 # u32
  1523. jg compat_sys_keyctl # branch to system call
  1524. .globl compat_sys_preadv_wrapper
  1525. compat_sys_preadv_wrapper:
  1526. llgfr %r2,%r2 # unsigned long
  1527. llgtr %r3,%r3 # compat_iovec *
  1528. llgfr %r4,%r4 # unsigned long
  1529. llgfr %r5,%r5 # u32
  1530. llgfr %r6,%r6 # u32
  1531. jg compat_sys_preadv # branch to system call
  1532. .globl compat_sys_pwritev_wrapper
  1533. compat_sys_pwritev_wrapper:
  1534. llgfr %r2,%r2 # unsigned long
  1535. llgtr %r3,%r3 # compat_iovec *
  1536. llgfr %r4,%r4 # unsigned long
  1537. llgfr %r5,%r5 # u32
  1538. llgfr %r6,%r6 # u32
  1539. jg compat_sys_pwritev # branch to system call
  1540. .globl compat_sys_rt_tgsigqueueinfo_wrapper
  1541. compat_sys_rt_tgsigqueueinfo_wrapper:
  1542. lgfr %r2,%r2 # compat_pid_t
  1543. lgfr %r3,%r3 # compat_pid_t
  1544. lgfr %r4,%r4 # int
  1545. llgtr %r5,%r5 # struct compat_siginfo *
  1546. jg compat_sys_rt_tgsigqueueinfo_wrapper # branch to system call
  1547. .globl sys_perf_event_open_wrapper
  1548. sys_perf_event_open_wrapper:
  1549. llgtr %r2,%r2 # const struct perf_event_attr *
  1550. lgfr %r3,%r3 # pid_t
  1551. lgfr %r4,%r4 # int
  1552. lgfr %r5,%r5 # int
  1553. llgfr %r6,%r6 # unsigned long
  1554. jg sys_perf_event_open # branch to system call
  1555. .globl sys_clone_wrapper
  1556. sys_clone_wrapper:
  1557. llgfr %r2,%r2 # unsigned long
  1558. llgfr %r3,%r3 # unsigned long
  1559. llgtr %r4,%r4 # int *
  1560. llgtr %r5,%r5 # int *
  1561. jg sys_clone # branch to system call
  1562. .globl sys32_execve_wrapper
  1563. sys32_execve_wrapper:
  1564. llgtr %r2,%r2 # char *
  1565. llgtr %r3,%r3 # compat_uptr_t *
  1566. llgtr %r4,%r4 # compat_uptr_t *
  1567. jg sys32_execve # branch to system call
  1568. .globl sys_fanotify_init_wrapper
  1569. sys_fanotify_init_wrapper:
  1570. llgfr %r2,%r2 # unsigned int
  1571. llgfr %r3,%r3 # unsigned int
  1572. jg sys_fanotify_init # branch to system call
  1573. .globl sys_fanotify_mark_wrapper
  1574. sys_fanotify_mark_wrapper:
  1575. lgfr %r2,%r2 # int
  1576. llgfr %r3,%r3 # unsigned int
  1577. sllg %r4,%r4,32 # get high word of 64bit mask
  1578. lr %r4,%r5 # get low word of 64bit mask
  1579. llgfr %r5,%r6 # unsigned int
  1580. llgt %r6,164(%r15) # char *
  1581. jg sys_fanotify_mark # branch to system call
  1582. .globl sys_prlimit64_wrapper
  1583. sys_prlimit64_wrapper:
  1584. lgfr %r2,%r2 # pid_t
  1585. llgfr %r3,%r3 # unsigned int
  1586. llgtr %r4,%r4 # const struct rlimit64 __user *
  1587. llgtr %r5,%r5 # struct rlimit64 __user *
  1588. jg sys_prlimit64 # branch to system call
  1589. .globl sys_name_to_handle_at_wrapper
  1590. sys_name_to_handle_at_wrapper:
  1591. lgfr %r2,%r2 # int
  1592. llgtr %r3,%r3 # const char __user *
  1593. llgtr %r4,%r4 # struct file_handle __user *
  1594. llgtr %r5,%r5 # int __user *
  1595. lgfr %r6,%r6 # int
  1596. jg sys_name_to_handle_at
  1597. .globl compat_sys_open_by_handle_at_wrapper
  1598. compat_sys_open_by_handle_at_wrapper:
  1599. lgfr %r2,%r2 # int
  1600. llgtr %r3,%r3 # struct file_handle __user *
  1601. lgfr %r4,%r4 # int
  1602. jg compat_sys_open_by_handle_at
  1603. .globl compat_sys_clock_adjtime_wrapper
  1604. compat_sys_clock_adjtime_wrapper:
  1605. lgfr %r2,%r2 # clockid_t (int)
  1606. llgtr %r3,%r3 # struct compat_timex __user *
  1607. jg compat_sys_clock_adjtime
  1608. .globl sys_syncfs_wrapper
  1609. sys_syncfs_wrapper:
  1610. lgfr %r2,%r2 # int
  1611. jg sys_syncfs
  1612. .globl sys_setns_wrapper
  1613. sys_setns_wrapper:
  1614. lgfr %r2,%r2 # int
  1615. lgfr %r3,%r3 # int
  1616. jg sys_setns