Commit 564088da810384d869a65b7bcbca21dfabf3f2eb

Change some non-portable types in initrd
  
5555 } tar_header;
5656
5757 // Remember the address the initrd starts at
58 u32int initrd_start;
58 uintptr initrd_start;
5959 // Store the number of files in the archive
6060 u32int num_files;
6161
151151
152152 // Find the address of the initrd from the multiboot structure that GRUB gives
153153 // us, and then work out the number of files on it.
154 u32int scan(struct multiboot * ptr)
154 uintptr scan(struct multiboot * ptr)
155155 {
156156 num_files = 0;
157157
164164 }
165165
166166 // Get the ramdisk addres from the multiboot header
167 size_t address = initrd_start = *((size_t *) ptr->mods_addr);
167 uintptr address = initrd_start = *((uintptr *) ptr->mods_addr);
168168 tar_header * header = (tar_header *) address;
169169
170170 // Ensure that this is a proper tar archive
204204 // Read a file from the initrd
205205 u32int read(fs::node * node, u32int offset, size_t size, u8int * buffer)
206206 {
207 size_t address = initrd_start;
207 uintptr address = initrd_start;
208208 u32int file_size;
209209
210210 tar_header * header = (tar_header *) address;
  
2424namespace initrd
2525{
2626 // Set up the ramdisk and return its root node
27 fs::node * initialise(u32int initrd_address);
27 fs::node * initialise(uintptr initrd_address);
2828
2929 // Scan the initrd to determine how many files it contains
30 u32int scan(struct multiboot * ptr);
30 uintptr scan(struct multiboot * ptr);
3131}
3232
3333#endif