diff options
Diffstat (limited to 'lib/bootstrap')
-rw-r--r-- | lib/bootstrap/common.c | 4 | ||||
-rw-r--r-- | lib/bootstrap/devfs.c | 2 | ||||
-rw-r--r-- | lib/bootstrap/disk.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/lib/bootstrap/common.c b/lib/bootstrap/common.c index 38ec272129..4a61992179 100644 --- a/lib/bootstrap/common.c +++ b/lib/bootstrap/common.c @@ -9,7 +9,7 @@ #include <bootstrap.h> #include <filetype.h> -void bootstrap_boot(int (*func)(void), bool barebox) +void bootstrap_boot(kernel_entry_func func, bool barebox) { if (!func) return; @@ -18,7 +18,7 @@ void bootstrap_boot(int (*func)(void), bool barebox) return; shutdown_barebox(); - func(); + func(0, 0, NULL); while (1); } diff --git a/lib/bootstrap/devfs.c b/lib/bootstrap/devfs.c index 5a64477eed..6a3dd76cdd 100644 --- a/lib/bootstrap/devfs.c +++ b/lib/bootstrap/devfs.c @@ -80,7 +80,7 @@ static unsigned int get_image_size(void *head) } #endif -void* bootstrap_read_devfs(char *devname, bool use_bb, int offset, +void* bootstrap_read_devfs(const char *devname, bool use_bb, int offset, int default_size, int max_size) { int ret; diff --git a/lib/bootstrap/disk.c b/lib/bootstrap/disk.c index ebf9ee5a98..a55d5d77f4 100644 --- a/lib/bootstrap/disk.c +++ b/lib/bootstrap/disk.c @@ -14,12 +14,12 @@ #include <libfile.h> #include <bootstrap.h> -void* bootstrap_read_disk(char *dev, char *fstype) +void* bootstrap_read_disk(const char *dev, const char *fstype) { int ret; void *buf; int len; - char *path = "/"; + const char *path = "/"; ret = mount(dev, fstype, path, NULL); if (ret) { |