* sysv_shm.cc (kern_shmat): Add debug_printf's.

This commit is contained in:
Corinna Vinschen 2004-08-31 10:47:27 +00:00
parent 607d4cafec
commit f0720ce7cb
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2004-08-31 Corinna Vinschen <corinna@vinschen.de>
* sysv_shm.cc (kern_shmat): Add debug_printf's.
2004-08-24 Corinna Vinschen <corinna@vinschen.de>
* bsd_mutex.cc (_msleep): Release process object while waiting.

View File

@ -382,6 +382,7 @@ kern_shmat(struct thread *td, int shmid, const void *shmaddr, int shmflg)
if ((shmflg & SHM_RDONLY) == 0)
prot |= VM_PROT_WRITE;
flags = MAP_ANON | MAP_SHARED;
debug_printf ("shmaddr: %x, shmflg: %x", shmaddr, shmflg);
if (shmaddr) {
flags |= MAP_FIXED;
if (shmflg & SHM_RND) {
@ -389,6 +390,7 @@ kern_shmat(struct thread *td, int shmid, const void *shmaddr, int shmflg)
} else if (((vm_offset_t)shmaddr & (SHMLBA-1)) == 0) {
attach_va = (vm_offset_t)shmaddr;
} else {
debug_printf ("Odd shmaddr: EINVAL");
error = EINVAL;
goto done2;
}