Displaying 7 results from an estimated 7 matches for "disk_ebios_eparam".
2013 Sep 17
2
[PATCH 1/4 v2] com32/lib/: Avoid unneeded allocation.
...c
index 093751a..d96acbf 100644
--- a/com32/lib/syslinux/disk.c
+++ b/com32/lib/syslinux/disk.c
@@ -73,7 +73,7 @@ int disk_int13_retry(const com32sys_t * inreg, com32sys_t * outreg)
int disk_get_params(int disk, struct disk_info *const diskinfo)
{
static com32sys_t inreg, outreg;
- struct disk_ebios_eparam *eparam;
+ struct disk_ebios_eparam *eparam = NULL;
int rv = 0;
memset(diskinfo, 0, sizeof *diskinfo);
@@ -94,12 +94,12 @@ int disk_get_params(int disk, struct disk_info *const diskinfo)
diskinfo->ebios = 1;
}
- eparam = lmalloc(sizeof *eparam);
- if (!eparam)
- retur...
2013 Sep 06
2
[PATCH 1/2] com32/lib/: Avoid unneeded allocation.
...c
index 093751a..554bed3 100644
--- a/com32/lib/syslinux/disk.c
+++ b/com32/lib/syslinux/disk.c
@@ -73,7 +73,7 @@ int disk_int13_retry(const com32sys_t * inreg, com32sys_t * outreg)
int disk_get_params(int disk, struct disk_info *const diskinfo)
{
static com32sys_t inreg, outreg;
- struct disk_ebios_eparam *eparam;
+ struct disk_ebios_eparam *eparam = NULL;
int rv = 0;
memset(diskinfo, 0, sizeof *diskinfo);
@@ -94,12 +94,12 @@ int disk_get_params(int disk, struct disk_info *const diskinfo)
diskinfo->ebios = 1;
}
- eparam = lmalloc(sizeof *eparam);
- if (!eparam)
- ret...
2013 Sep 30
0
[PATCH 1/4 v2] com32/lib/: Avoid unneeded allocation.
...; --- a/com32/lib/syslinux/disk.c
> +++ b/com32/lib/syslinux/disk.c
> @@ -73,7 +73,7 @@ int disk_int13_retry(const com32sys_t * inreg, com32sys_t * outreg)
> int disk_get_params(int disk, struct disk_info *const diskinfo)
> {
> static com32sys_t inreg, outreg;
> - struct disk_ebios_eparam *eparam;
> + struct disk_ebios_eparam *eparam = NULL;
> int rv = 0;
>
> memset(diskinfo, 0, sizeof *diskinfo);
> @@ -94,12 +94,12 @@ int disk_get_params(int disk, struct disk_info *const diskinfo)
> diskinfo->ebios = 1;
> }
>
> - eparam = lmall...
2013 Sep 17
0
[PATCH 1/2] com32/lib/: Avoid unneeded allocation.
...; --- a/com32/lib/syslinux/disk.c
> +++ b/com32/lib/syslinux/disk.c
> @@ -73,7 +73,7 @@ int disk_int13_retry(const com32sys_t * inreg, com32sys_t * outreg)
> int disk_get_params(int disk, struct disk_info *const diskinfo)
> {
> static com32sys_t inreg, outreg;
> - struct disk_ebios_eparam *eparam;
> + struct disk_ebios_eparam *eparam = NULL;
> int rv = 0;
>
> memset(diskinfo, 0, sizeof *diskinfo);
> @@ -94,12 +94,12 @@ int disk_get_params(int disk, struct disk_info *const diskinfo)
> diskinfo->ebios = 1;
> }
>
> - eparam = lma...
2015 Sep 24
0
[PATCH] com32/disk: add UEFI support
...t cbios; /* CHS geometry is valid */
+ };
+ struct { /* EFI-specific information */
+ void *biop; /* EFI_BLOCK_IO_PROTOCOL pointer */
+ };
+ };
};
+#ifndef SYSLINUX_EFI
+
struct disk_ebios_dapa {
uint16_t len;
uint16_t count;
@@ -87,6 +97,8 @@ struct disk_ebios_eparam {
uint8_t checksum;
} __attribute__ ((packed));
+#endif
+
/**
* CHS (cylinder, head, sector) value extraction macros.
* Taken from WinVBlock. None expand to an lvalue.
@@ -169,19 +181,25 @@ struct disk_gpt_header {
} __attribute__ ((packed));
static const char disk_gpt_sig_magic[]...
2012 Jun 26
2
[GIT PULL] elflink bug fixes
...c
index d6409af..093751a 100644
--- a/com32/lib/syslinux/disk.c
+++ b/com32/lib/syslinux/disk.c
@@ -73,7 +73,8 @@ int disk_int13_retry(const com32sys_t * inreg, com32sys_t * outreg)
int disk_get_params(int disk, struct disk_info *const diskinfo)
{
static com32sys_t inreg, outreg;
- struct disk_ebios_eparam *eparam = __com32.cs_bounce;
+ struct disk_ebios_eparam *eparam;
+ int rv = 0;
memset(diskinfo, 0, sizeof *diskinfo);
diskinfo->disk = disk;
@@ -93,6 +94,10 @@ int disk_get_params(int disk, struct disk_info *const diskinfo)
diskinfo->ebios = 1;
}
+ eparam = lmall...
2012 Aug 20
13
[PATCH 00/12] Multidisk support
Hello,
the following patches should get multidisk access working.
The syntax accepted is the following:
(hdx,y)/path/to/file
where x is the disk number and start at 0 and the y is the partition number starting at 1. So (hd0,1) is the first partition of the first disk.
the other accepted syntax is using MBR's 32 bits disk signature so for example:
(mbr:0x12345678,2)/foo/bar
would address