linux-user: correct timerfd_create syscall numbers
x86, m68k, ppc, sh4 and sparc failed to enable timerfd, because they didn't have timerfd_create system call defined. Instead QEMU defined timerfd syscall. Checking with kernel sources, it appears kernel developers reused timerfd syscall number with timerfd_create, presumably since no userspace called the old syscall number. Reported-by: Laurent Vivier <laurent@vivier.eu> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
This commit is contained in:
		
							parent
							
								
									13756fb008
								
							
						
					
					
						commit
						93a92d3bd6
					
				| @ -324,7 +324,7 @@ | ||||
| #define TARGET_NR_epoll_pwait	319 | ||||
| #define TARGET_NR_utimensat		320 | ||||
| #define TARGET_NR_signalfd		321 | ||||
| #define TARGET_NR_timerfd		322 | ||||
| #define TARGET_NR_timerfd_create	322 | ||||
| #define TARGET_NR_eventfd		323 | ||||
| #define TARGET_NR_fallocate		324 | ||||
| #define TARGET_NR_timerfd_settime	325 | ||||
|  | ||||
| @ -317,7 +317,7 @@ | ||||
| #define TARGET_NR_epoll_pwait	315 | ||||
| #define TARGET_NR_utimensat		316 | ||||
| #define TARGET_NR_signalfd		317 | ||||
| #define TARGET_NR_timerfd		318 | ||||
| #define TARGET_NR_timerfd_create	318 | ||||
| #define TARGET_NR_eventfd		319 | ||||
| #define TARGET_NR_fallocate		320 | ||||
| #define TARGET_NR_timerfd_settime	321 | ||||
|  | ||||
| @ -319,7 +319,7 @@ | ||||
| #define TARGET_NR_epoll_pwait	303 | ||||
| #define TARGET_NR_utimensat		304 | ||||
| #define TARGET_NR_signalfd		305 | ||||
| #define TARGET_NR_timerfd		306 | ||||
| #define TARGET_NR_timerfd_create	306 | ||||
| #define TARGET_NR_eventfd		307 | ||||
| #define TARGET_NR_sync_file_range2	308 | ||||
| #define TARGET_NR_fallocate		309 | ||||
|  | ||||
| @ -323,7 +323,7 @@ | ||||
| #define TARGET_NR_epoll_pwait	319 | ||||
| #define TARGET_NR_utimensat		320 | ||||
| #define TARGET_NR_signalfd		321 | ||||
| #define TARGET_NR_timerfd		322 | ||||
| #define TARGET_NR_timerfd_create	322 | ||||
| #define TARGET_NR_eventfd		323 | ||||
| #define TARGET_NR_fallocate		324 | ||||
| #define TARGET_NR_timerfd_settime	325 | ||||
|  | ||||
| @ -278,7 +278,7 @@ | ||||
| #define TARGET_NR_epoll_pwait	309 | ||||
| #define TARGET_NR_utimensat		310 | ||||
| #define TARGET_NR_signalfd		311 | ||||
| #define TARGET_NR_timerfd		312 | ||||
| #define TARGET_NR_timerfd_create	312 | ||||
| #define TARGET_NR_eventfd		313 | ||||
| #define TARGET_NR_fallocate		314 | ||||
| #define TARGET_NR_timerfd_settime	315 | ||||
|  | ||||
| @ -281,7 +281,7 @@ | ||||
| #define TARGET_NR_utimensat		280 | ||||
| #define TARGET_NR_epoll_pwait	281 | ||||
| #define TARGET_NR_signalfd		282 | ||||
| #define TARGET_NR_timerfd		283 | ||||
| #define TARGET_NR_timerfd_create	283 | ||||
| #define TARGET_NR_eventfd		284 | ||||
| #define TARGET_NR_fallocate		285 | ||||
| #define TARGET_NR_timerfd_settime	286 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Riku Voipio
						Riku Voipio