Skip to content

Commit

Permalink
use better name for pae limit
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jan 16, 2015
1 parent f6efd1a commit 362e562
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions library/system/src/modules/Kernel.rb
Expand Up @@ -310,6 +310,8 @@ def IsGraphicalDesktop

#---------------------------------------------------------------

# specifies limit of memory which can be addressed without pae on 32-bit system
PAE_LIMIT = 3_221_225_472
# select kernel depending on architecture and system type.
#
# @return [void]
Expand Down Expand Up @@ -365,12 +367,11 @@ def ProbeKernel
[0, "resource", "phys_mem", 0, "range"],
0
)
fourGB = 3_221_225_472
Builtins.y2milestone("Physical memory %1", memsize)

# for memory > 4GB and PAE support we install kernel-pae,
# PAE kernel is needed if NX flag exists as well (bnc#467328)
if (Ops.greater_or_equal(memsize, fourGB) ||
if (Ops.greater_or_equal(memsize, PAE_LIMIT) ||
Builtins.contains(cpuflags, "nx")) &&
Builtins.contains(cpuflags, "pae")
Builtins.y2milestone("Kernel switch: PAE detected")
Expand Down

0 comments on commit 362e562

Please sign in to comment.