mirror of
https://github.com/limine-bootloader/limine
synced 2024-11-26 02:20:31 +03:00
limine: Rename 2 limine_file members
This commit is contained in:
parent
a75d3348fb
commit
6caaada636
@ -632,8 +632,8 @@ struct limine_uuid {
|
||||
|
||||
struct limine_file {
|
||||
uint64_t revision;
|
||||
void *base;
|
||||
uint64_t length;
|
||||
void *address;
|
||||
uint64_t size;
|
||||
char *path;
|
||||
char *cmdline;
|
||||
uint64_t partition_index;
|
||||
@ -648,8 +648,8 @@ struct limine_file {
|
||||
```
|
||||
|
||||
* `revision` - Revision of the `struct limine_file` structure.
|
||||
* `base` - The address of the file.
|
||||
* `length` - The size of the file.
|
||||
* `address` - The address of the file.
|
||||
* `size` - The size of the file.
|
||||
* `path` - The path of the file within the volume, with a leading slash.
|
||||
* `cmdline` - A command line associated with the file.
|
||||
* `partition_index` - 1-based partition index of the volume from which the
|
||||
|
@ -74,8 +74,8 @@ static struct limine_file get_file(struct file_handle *file, char *cmdline) {
|
||||
strcpy(path, file->path);
|
||||
ret.path = reported_addr(path);
|
||||
|
||||
ret.base = reported_addr(freadall(file, MEMMAP_KERNEL_AND_MODULES));
|
||||
ret.length = file->size;
|
||||
ret.address = reported_addr(freadall(file, MEMMAP_KERNEL_AND_MODULES));
|
||||
ret.size = file->size;
|
||||
|
||||
ret.cmdline = reported_addr(cmdline);
|
||||
|
||||
|
4
limine.h
4
limine.h
@ -26,8 +26,8 @@ struct limine_uuid {
|
||||
|
||||
struct limine_file {
|
||||
uint64_t revision;
|
||||
LIMINE_PTR(void *) base;
|
||||
uint64_t length;
|
||||
LIMINE_PTR(void *) address;
|
||||
uint64_t size;
|
||||
LIMINE_PTR(char *) path;
|
||||
LIMINE_PTR(char *) cmdline;
|
||||
uint64_t partition_index;
|
||||
|
@ -102,8 +102,8 @@ static char *get_memmap_type(uint64_t type) {
|
||||
|
||||
static void print_file(struct limine_file *file) {
|
||||
e9_printf("File->Revision: %d", file->revision);
|
||||
e9_printf("File->Base: %x", file->base);
|
||||
e9_printf("File->Length: %x", file->length);
|
||||
e9_printf("File->Address: %x", file->address);
|
||||
e9_printf("File->Size: %x", file->size);
|
||||
e9_printf("File->Path: %s", file->path);
|
||||
e9_printf("File->CmdLine: %s", file->cmdline);
|
||||
e9_printf("File->PartIndex: %d", file->partition_index);
|
||||
|
Loading…
Reference in New Issue
Block a user