~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/x86/include/asm/boot.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/x86/include/asm/boot.h (Version linux-6.12-rc7) and /arch/i386/include/asm-i386/boot.h (Version linux-6.4.16)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 
  2 #ifndef _ASM_X86_BOOT_H                           
  3 #define _ASM_X86_BOOT_H                           
  4                                                   
  5                                                   
  6 #include <asm/pgtable_types.h>                    
  7 #include <uapi/asm/boot.h>                        
  8                                                   
  9 /* Minimum kernel alignment, as a power of two    
 10 #ifdef CONFIG_X86_64                              
 11 # define MIN_KERNEL_ALIGN_LG2   PMD_SHIFT         
 12 #else                                             
 13 # define MIN_KERNEL_ALIGN_LG2   (PAGE_SHIFT +     
 14 #endif                                            
 15 #define MIN_KERNEL_ALIGN        (_AC(1, UL) <<    
 16                                                   
 17 #if (CONFIG_PHYSICAL_ALIGN & (CONFIG_PHYSICAL_    
 18         (CONFIG_PHYSICAL_ALIGN < MIN_KERNEL_AL    
 19 # error "Invalid value for CONFIG_PHYSICAL_ALI    
 20 #endif                                            
 21                                                   
 22 #if defined(CONFIG_KERNEL_BZIP2)                  
 23 # define BOOT_HEAP_SIZE         0x400000          
 24 #elif defined(CONFIG_KERNEL_ZSTD)                 
 25 /*                                                
 26  * Zstd needs to allocate the ZSTD_DCtx in ord    
 27  * The ZSTD_DCtx is ~160KB, so set the heap si    
 28  * round number and to allow some slack.          
 29  */                                               
 30 # define BOOT_HEAP_SIZE          0x30000          
 31 #else                                             
 32 # define BOOT_HEAP_SIZE          0x10000          
 33 #endif                                            
 34                                                   
 35 #ifdef CONFIG_X86_64                              
 36 # define BOOT_STACK_SIZE        0x4000            
 37                                                   
 38 /*                                                
 39  * Used by decompressor's startup_32() to allo    
 40  * mapping of the 4G of RAM in 4-level paging     
 41  * - 1 level4 table;                              
 42  * - 1 level3 table;                              
 43  * - 4 level2 table that maps everything with     
 44  *                                                
 45  * The additional level5 table needed for 5-le    
 46  * trampoline_32bit memory.                       
 47  */                                               
 48 # define BOOT_INIT_PGT_SIZE     (6*4096)          
 49                                                   
 50 /*                                                
 51  * Total number of page tables kernel_add_iden    
 52  * including page tables consumed by startup_3    
 53  *                                                
 54  * Worst-case scenario:                           
 55  *  - 5-level paging needs 1 level5 table;        
 56  *  - KASLR needs to map kernel, boot_params,     
 57  *    assuming all of them cross 256T boundary    
 58  *    + 4*2 level4 table;                         
 59  *    + 4*2 level3 table;                         
 60  *    + 4*2 level2 table;                         
 61  *  - X86_VERBOSE_BOOTUP needs to map the firs    
 62  *    + 1 level4 table;                           
 63  *    + 1 level3 table;                           
 64  *    + 1 level2 table;                           
 65  * Total: 28 tables                               
 66  *                                                
 67  * Add 4 spare table in case decompressor touc    
 68  * accounted above. Warn if it happens.           
 69  */                                               
 70 # define BOOT_PGT_SIZE_WARN     (28*4096)         
 71 # define BOOT_PGT_SIZE          (32*4096)         
 72                                                   
 73 #else /* !CONFIG_X86_64 */                        
 74 # define BOOT_STACK_SIZE        0x1000            
 75 #endif                                            
 76                                                   
 77 #ifndef __ASSEMBLY__                              
 78 extern unsigned int output_len;                   
 79 extern const unsigned long kernel_text_size;      
 80 extern const unsigned long kernel_total_size;     
 81                                                   
 82 unsigned long decompress_kernel(unsigned char     
 83                                 void (*error)(    
 84                                                   
 85 extern struct boot_params *boot_params_ptr;       
 86 #endif                                            
 87                                                   
 88 #endif /* _ASM_X86_BOOT_H */                      
 89                                                   

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php