Mercurial > hg > CbC > CbC_xv6
changeset 337:cb6045bce1d5
fix_build_about_inode
author | anatofuz |
---|---|
date | Sat, 15 Feb 2020 21:35:56 +0900 |
parents | 0e1c64818c0d |
children | 2cbaa4c74d15 |
files | src/impl/fs_impl.cbc src/impl/fs_impl_private.cbc src/impl/vm_impl.cbc src/impl/vm_impl_private.cbc src/pipe.cbc |
diffstat | 5 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/impl/fs_impl.cbc Sat Feb 15 21:18:21 2020 +0900 +++ b/src/impl/fs_impl.cbc Sat Feb 15 21:35:56 2020 +0900 @@ -115,6 +115,7 @@ goto allocinode(fs, dev, sb, next(...)); } +typedef struct inode inode; __code iupdatefs_impl(struct fs_impl* fs, struct inode* ip, __code next(...)) { struct buf *bp;
--- a/src/impl/fs_impl_private.cbc Sat Feb 15 21:18:21 2020 +0900 +++ b/src/impl/fs_impl_private.cbc Sat Feb 15 21:35:56 2020 +0900 @@ -26,6 +26,7 @@ typedef struct buf buf; typedef struct dinode dinode; +typedef struct inode inode; __code allocinode_loopcheck(struct fs_impl* fs_impl, uint inum, uint dev, struct superblock* sb, struct buf* bp, struct dinode* dip, __code next(...)){ //:skip if( inum < sb->ninodes){
--- a/src/impl/vm_impl.cbc Sat Feb 15 21:18:21 2020 +0900 +++ b/src/impl/vm_impl.cbc Sat Feb 15 21:35:56 2020 +0900 @@ -158,6 +158,7 @@ goto init_inituvm_check_sz(vm, pgdir, init, sz, next(...)); } +typedef struct inode inode; __code loaduvmvm_impl(struct vm_impl* vm, pde_t* pgdir, char* addr, struct inode* ip, uint offset, uint sz, __code next(...)) { Gearef(cbc_context, vm_impl)->pgdir = pgdir; Gearef(cbc_context, vm_impl)->addr = addr;
--- a/src/impl/vm_impl_private.cbc Sat Feb 15 21:18:21 2020 +0900 +++ b/src/impl/vm_impl_private.cbc Sat Feb 15 21:35:56 2020 +0900 @@ -76,6 +76,7 @@ goto loaduvm_check_PTE_SZ(vm_impl, next(ret, ...)); } +typedef struct inode inode; __code loaduvm_check_PTE_SZ(struct vm_impl* vm_impl, uint sz, uint i, uint n, struct inode* ip, uint pa, uint offset, __code next(int ret, ...)) { if (sz - i < PTE_SZ) {
--- a/src/pipe.cbc Sat Feb 15 21:18:21 2020 +0900 +++ b/src/pipe.cbc Sat Feb 15 21:35:56 2020 +0900 @@ -11,7 +11,6 @@ #define __ncode __code -/* struct pipe { struct spinlock lock; char data[PIPESIZE]; @@ -20,7 +19,6 @@ int readopen; // read fd is still open int writeopen; // write fd is still open }; -*/ int pipealloc(struct file **f0, struct file **f1) {