Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
3203209d
Commit
3203209d
authored
Sep 25, 2013
by
Matt Fleming
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'arm/common' into next
parents
9efff389
4e283088
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
712 additions
and
567 deletions
+712
-567
Documentation/efi-stub.txt
Documentation/efi-stub.txt
+0
-0
arch/x86/Kconfig
arch/x86/Kconfig
+1
-1
arch/x86/boot/compressed/eboot.c
arch/x86/boot/compressed/eboot.c
+39
-541
arch/x86/boot/compressed/eboot.h
arch/x86/boot/compressed/eboot.h
+0
-9
drivers/firmware/efi/efi-stub-helper.c
drivers/firmware/efi/efi-stub-helper.c
+638
-0
include/linux/efi.h
include/linux/efi.h
+34
-16
No files found.
Documentation/
x86/
efi-stub.txt
→
Documentation/efi-stub.txt
View file @
3203209d
File moved
arch/x86/Kconfig
View file @
3203209d
...
...
@@ -1579,7 +1579,7 @@ config EFI_STUB
This kernel feature allows a bzImage to be loaded directly
by EFI firmware without the use of a bootloader.
See Documentation/
x86/
efi-stub.txt for more information.
See Documentation/efi-stub.txt for more information.
config SECCOMP
def_bool y
...
...
arch/x86/boot/compressed/eboot.c
View file @
3203209d
This diff is collapsed.
Click to expand it.
arch/x86/boot/compressed/eboot.h
View file @
3203209d
...
...
@@ -11,9 +11,6 @@
#define DESC_TYPE_CODE_DATA (1 << 0)
#define EFI_PAGE_SIZE (1UL << EFI_PAGE_SHIFT)
#define EFI_READ_CHUNK_SIZE (1024 * 1024)
#define EFI_CONSOLE_OUT_DEVICE_GUID \
EFI_GUID(0xd3b36f2c, 0xd551, 0x11d4, 0x9a, 0x46, 0x0, 0x90, 0x27, \
0x3f, 0xc1, 0x4d)
...
...
@@ -62,10 +59,4 @@ struct efi_uga_draw_protocol {
void
*
blt
;
};
struct
efi_simple_text_output_protocol
{
void
*
reset
;
void
*
output_string
;
void
*
test_string
;
};
#endif
/* BOOT_COMPRESSED_EBOOT_H */
drivers/firmware/efi/efi-stub-helper.c
0 → 100644
View file @
3203209d
This diff is collapsed.
Click to expand it.
include/linux/efi.h
View file @
3203209d
...
...
@@ -39,6 +39,8 @@
typedef
unsigned
long
efi_status_t
;
typedef
u8
efi_bool_t
;
typedef
u16
efi_char16_t
;
/* UNICODE character */
typedef
u64
efi_physical_addr_t
;
typedef
void
*
efi_handle_t
;
typedef
struct
{
...
...
@@ -96,6 +98,7 @@ typedef struct {
#define EFI_MEMORY_DESCRIPTOR_VERSION 1
#define EFI_PAGE_SHIFT 12
#define EFI_PAGE_SIZE (1UL << EFI_PAGE_SHIFT)
typedef
struct
{
u32
type
;
...
...
@@ -157,11 +160,13 @@ typedef struct {
efi_table_hdr_t
hdr
;
void
*
raise_tpl
;
void
*
restore_tpl
;
void
*
allocate_pages
;
void
*
free_pages
;
void
*
get_memory_map
;
void
*
allocate_pool
;
void
*
free_pool
;
efi_status_t
(
*
allocate_pages
)(
int
,
int
,
unsigned
long
,
efi_physical_addr_t
*
);
efi_status_t
(
*
free_pages
)(
efi_physical_addr_t
,
unsigned
long
);
efi_status_t
(
*
get_memory_map
)(
unsigned
long
*
,
void
*
,
unsigned
long
*
,
unsigned
long
*
,
u32
*
);
efi_status_t
(
*
allocate_pool
)(
int
,
unsigned
long
,
void
**
);
efi_status_t
(
*
free_pool
)(
void
*
);
void
*
create_event
;
void
*
set_timer
;
void
*
wait_for_event
;
...
...
@@ -171,7 +176,7 @@ typedef struct {
void
*
install_protocol_interface
;
void
*
reinstall_protocol_interface
;
void
*
uninstall_protocol_interface
;
void
*
handle_protocol
;
efi_status_t
(
*
handle_protocol
)(
efi_handle_t
,
efi_guid_t
*
,
void
**
)
;
void
*
__reserved
;
void
*
register_protocol_notify
;
void
*
locate_handle
;
...
...
@@ -181,7 +186,7 @@ typedef struct {
void
*
start_image
;
void
*
exit
;
void
*
unload_image
;
void
*
exit_boot_services
;
efi_status_t
(
*
exit_boot_services
)(
efi_handle_t
,
unsigned
long
)
;
void
*
get_next_monotonic_count
;
void
*
stall
;
void
*
set_watchdog_timer
;
...
...
@@ -494,10 +499,6 @@ typedef struct {
unsigned
long
unload
;
}
efi_loaded_image_t
;
typedef
struct
{
u64
revision
;
void
*
open_volume
;
}
efi_file_io_interface_t
;
typedef
struct
{
u64
size
;
...
...
@@ -510,20 +511,30 @@ typedef struct {
efi_char16_t
filename
[
1
];
}
efi_file_info_t
;
typedef
struct
{
typedef
struct
_efi_file_handle
{
u64
revision
;
void
*
open
;
void
*
close
;
efi_status_t
(
*
open
)(
struct
_efi_file_handle
*
,
struct
_efi_file_handle
**
,
efi_char16_t
*
,
u64
,
u64
);
efi_status_t
(
*
close
)(
struct
_efi_file_handle
*
);
void
*
delete
;
void
*
read
;
efi_status_t
(
*
read
)(
struct
_efi_file_handle
*
,
unsigned
long
*
,
void
*
);
void
*
write
;
void
*
get_position
;
void
*
set_position
;
void
*
get_info
;
efi_status_t
(
*
get_info
)(
struct
_efi_file_handle
*
,
efi_guid_t
*
,
unsigned
long
*
,
void
*
);
void
*
set_info
;
void
*
flush
;
}
efi_file_handle_t
;
typedef
struct
_efi_file_io_interface
{
u64
revision
;
int
(
*
open_volume
)(
struct
_efi_file_io_interface
*
,
efi_file_handle_t
**
);
}
efi_file_io_interface_t
;
#define EFI_FILE_MODE_READ 0x0000000000000001
#define EFI_FILE_MODE_WRITE 0x0000000000000002
#define EFI_FILE_MODE_CREATE 0x8000000000000000
...
...
@@ -792,6 +803,13 @@ struct efivar_entry {
struct
kobject
kobj
;
};
struct
efi_simple_text_output_protocol
{
void
*
reset
;
efi_status_t
(
*
output_string
)(
void
*
,
void
*
);
void
*
test_string
;
};
extern
struct
list_head
efivar_sysfs_list
;
static
inline
void
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment