This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void checkEmpty() { | |
final Adapter adapter = getAdapter(); | |
if (getEmptyView() != null) { | |
updateEmptyStatus((adapter == null) || adapter.isEmpty()); | |
} | |
} | |
@SuppressLint("WrongCall") | |
private void updateEmptyStatus(boolean empty) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static int | |
ckpt_thaw_proc(struct lwp *lp, struct file *fp) | |
{ | |
struct proc *p = lp->lwp_proc; | |
Elf_Phdr *phdr = NULL; | |
Elf_Ehdr *ehdr = NULL; | |
int error; | |
void *base; | |
vm_offset_t start, end; | |
vm_offset_t tmpaddr; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void | |
recreate_kva(void) | |
{ | |
void *base; | |
void *try; | |
try = (void *)KvaStart; | |
base = try; | |
base = mmap(try, KERNEL_KVA_SIZE, PROT_READ|PROT_WRITE, | |
MAP_FILE|MAP_SHARED|MAP_VPAGETABLE, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
base = (void *)0x40000000; //vkernel kva start | |
error = kern_mmap(p->p_vmspace, base, 0x40000000, | |
PROT_READ|PROT_WRITE, | |
MAP_FILE|MAP_SHARED|MAP_VPAGETABLE, | |
MemImageFd, 0, &res); | |
kprintf("XXX Mapped %i\n", error); | |
if (!error) { | |
//madvise | |
tmpaddr = (vm_offset_t)base + 0x40000000; |