Root/
Source at commit 2381 created 10 years 21 days ago. By ifabio, Apply patch: (Credits to Thomas Jansen aka tja) - Reading options from all devices during boot. The options for the boot menu are only read from the devices rd(0,0) or bt(0,0). Consequently, boot menu options (e.g. "Quiet Boot", "Timeout", etc.) in plists on other devices (like most users have) are ignored. This patch extends the list of paths to search for the options plist on all devices that can be found. | |
---|---|
1 | /*␊ |
2 | * Supplemental ramdisk functions for the multiboot ramdisk driver␊ |
3 | * Copyright 2009 Tamas Kosarszky. All rights reserved.␊ |
4 | *␊ |
5 | */␊ |
6 | ␊ |
7 | #ifndef __BOOT_RAMDISK_H␊ |
8 | #define __BOOT_RAMDISK_H␊ |
9 | ␊ |
10 | #define RAMDISKCONFIG_FILENAME "rd(0,0)/RAMDisk.plist"␊ |
11 | //#define kPostbootRamdisk␊ |
12 | void md0Ramdisk();␊ |
13 | ␊ |
14 | typedef struct RAMDiskParam␊ |
15 | {␊ |
16 | ␉ppnum_t base;␊ |
17 | ␉unsigned int size;␊ |
18 | } RAMDiskParam;␊ |
19 | ␊ |
20 | /* mboot.c */␊ |
21 | extern struct multiboot_info *gMI;␊ |
22 | extern int multibootRamdiskReadBytes( int biosdev, unsigned int blkno,␊ |
23 | unsigned int byteoff,␊ |
24 | unsigned int byteCount, void * buffer );␊ |
25 | extern int multiboot_get_ramdisk_info(int biosdev, struct driveInfo *dip);␊ |
26 | //␊ |
27 | ␊ |
28 | extern BVRef gRAMDiskVolume;␊ |
29 | extern bool gRAMDiskBTAliased;␊ |
30 | ␊ |
31 | extern void setRAMDiskBTHook(bool mode);␊ |
32 | extern int mountRAMDisk(const char * param);␊ |
33 | extern void processRAMDiskCommand(char ** argPtr, const char * cmd);␊ |
34 | extern int loadPrebootRAMDisk();␊ |
35 | ␊ |
36 | #endif /* !__BOOT_RAMDISK_H */␊ |
37 |