mirror of
				https://git.proxmox.com/git/mirror_zfs
				synced 2025-11-04 01:41:27 +00:00 
			
		
		
		
	Add default case to lua kernel code
Some platforms, e.g. FreeBSD, support user space setjmp semantics in kernel. Reviewed-by: Igor Kozhukhov <igor@dilos.org> Reviewed-by: Ryan Moeller <ryan@ixsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Closes #9450
This commit is contained in:
		
							parent
							
								
									47d57dbccf
								
							
						
					
					
						commit
						cf2eba666e
					
				@ -46,6 +46,7 @@
 | 
			
		||||
 | 
			
		||||
#ifdef _KERNEL
 | 
			
		||||
 | 
			
		||||
#ifdef __linux__
 | 
			
		||||
#if defined(__i386__)
 | 
			
		||||
#define	JMP_BUF_CNT	6
 | 
			
		||||
#elif defined(__x86_64__)
 | 
			
		||||
@ -85,6 +86,11 @@ void longjmp (label_t * buf) {
 | 
			
		||||
	for (;;);
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
#else
 | 
			
		||||
#define LUAI_THROW(L,c)		longjmp((c)->b, 1)
 | 
			
		||||
#define LUAI_TRY(L,c,a)		if (setjmp((c)->b) == 0) { a }
 | 
			
		||||
#define luai_jmpbuf		jmp_buf
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#else /* _KERNEL */
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user