Date: Wed, 2 Mar 2011 19:09:49 +0000 (UTC) From: Jung-uk Kim <jkim@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/amd64/amd64 cpu_switch.S exception.S fpu.c genassym.c machdep.c sys_machdep.c vm_machdep.c src/sys/amd64/ia32 ia32_reg.c ia32_signal.c src/sys/amd64/include pcb.h src/sys/amd64/linux32 linux32_machdep.c linux32_sysvec.c Message-ID: <201103021910.p22JA4Ts080143@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jkim 2011-03-02 19:09:49 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sys/amd64/amd64 cpu_switch.S exception.S fpu.c genassym.c machdep.c sys_machdep.c vm_machdep.c sys/amd64/ia32 ia32_reg.c ia32_signal.c sys/amd64/include pcb.h sys/amd64/linux32 linux32_machdep.c linux32_sysvec.c Log: SVN rev 219187 on 2011-03-02 19:09:49Z by jkim MFC: r216634, r216673 Improve PCB flags handling and make it more robust. Add two new functions for manipulating pcb_flags. These inline functions are very similar to atomic_set_int(9) and atomic_clear_int(9) but without unnecessary LOCK prefix for SMP. Add comments about the rationale. Use these functions wherever possible. Although there are some places where it is not strictly necessary (e.g., a PCB is copied to create a new PCB), it is done across the board for sake of consistency. Turn pcb_full_iret into a PCB flag as it is safe now. Move rarely used fields before pcb_flags and reduce size of pcb_flags to four bytes. Fix some style(9) nits in pcb.h while I am in the neighborhood. Revision Changes Path 1.169.2.6 +1 -1 src/sys/amd64/amd64/cpu_switch.S 1.140.2.11 +7 -7 src/sys/amd64/amd64/exception.S 1.165.2.5 +20 -16 src/sys/amd64/amd64/fpu.c 1.177.2.5 +6 -6 src/sys/amd64/amd64/genassym.c 1.707.2.18 +29 -19 src/sys/amd64/amd64/machdep.c 1.94.2.5 +8 -8 src/sys/amd64/amd64/sys_machdep.c 1.264.2.10 +9 -7 src/sys/amd64/amd64/vm_machdep.c 1.5.2.5 +1 -1 src/sys/amd64/ia32/ia32_reg.c 1.23.2.11 +12 -11 src/sys/amd64/ia32/ia32_signal.c 1.72.2.5 +42 -10 src/sys/amd64/include/pcb.h 1.53.2.10 +9 -5 src/sys/amd64/linux32/linux32_machdep.c 1.52.2.10 +6 -7 src/sys/amd64/linux32/linux32_sysvec.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103021910.p22JA4Ts080143>