Skip to content

Commit

Permalink
Platform/Loongson: Modify loongarch uefi firmware block size
Browse files Browse the repository at this point in the history
Modify loongarch uefi firmware block size according to the 256 k alignment.

Cc: Bibo Mao <[email protected]>
Cc: Chao Li <[email protected]>
Signed-off-by: Xianglai Li <[email protected]>
  • Loading branch information
lixianglai committed Sep 7, 2024
1 parent 76eb7fe commit 1354a84
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions Platform/Loongson/LoongArchQemuPkg/Loongson.fdf.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,24 @@
#
##

DEFINE BLOCK_SIZE = 0x1000
DEFINE BLOCK_SIZE = 0x40000

############################################################################
# fd total
DEFINE FD_BASE_ADDRESS = 0x1c000000
DEFINE FD_BLOCKS = 0x400
DEFINE FD_BLOCKS = 0x10
DEFINE FD_SIZE = 0x400000

############################################################################
#flash code layout
#Set Sec base address and size in flash
DEFINE SECFV_OFFSET = 0x00000000
DEFINE SECFV_SIZE = 0x00010000
DEFINE SECFV_SIZE = 0x00040000

#Set Pei base address and size in flash
DEFINE PEIFV_OFFSET = 0x00010000
DEFINE PEIFV_OFFSET = 0x00040000
DEFINE PEIFV_SIZE = 0x00040000

#Set Dxe base address and size in flash
DEFINE DXEFV_OFFSET = 0x00050000
DEFINE DXEFV_SIZE = 0x00350000
DEFINE DXEFV_OFFSET = 0x00080000
DEFINE DXEFV_SIZE = 0x00380000
4 changes: 2 additions & 2 deletions Platform/Loongson/LoongArchQemuPkg/VarStore.fdf.inc
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
BaseAddress = 0x0
Size = 0x1000000
ErasePolarity = 1
BlockSize = 0x20000
NumBlocks = 128
BlockSize = 0x40000
NumBlocks = 64

0x00000000|0x00040000
#NV_VARIABLE_STORE
Expand Down

0 comments on commit 1354a84

Please sign in to comment.