History log of /openbsd-current/sys/arch/i386/include/asm.h
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.19 08-Dec-2022 guenther

_C_LABEL() and _ASM_LABEL() are no longer useful in the "everything
is ELF" world. Eliminate use of them in amd64, arm64, armv7, i386,
macppc, mips64, and sparc64 code.

ok deraadt@ jca@ krw@


Revision tags: OPENBSD_7_2_BASE
# 1.18 30-Aug-2022 miod

Remove long unused WARN_REFERENCES macro; idea guenther@, ok jsg@ jca@


# 1.17 27-Aug-2022 tb

Provide ENTRY_NB() for i386

ok guenther


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.16 11-Apr-2018 bluhm

More steps for i386 Meltdown fix:

- provide struct cpu_info_full
- prepare K-U sections
- reorganize interrupt, trap, syscall entry to use K-U trampoline
- prepare pmap for entering special mappings, the mappings are not
setup yet

This code will already trigger performance issues. We do more tlb
flushes, but we do not unmap the kernel yet. The latter
will be needed to prevent Meltdown.

from hshoexer@; input guenther@; OK mlarkin@ deraadt@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.15 29-Jun-2017 deraadt

kill RCSID macros; discussed with millert


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.14 30-Aug-2015 guenther

Provide remaining arch with END() macro for setting calculated size on
symbols in ASM

ok deraadt@ mpi@


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.13 28-Mar-2013 martynas

Add STRONG_ALIAS macros to be used from assembly code in libc and
libm. While at it, remove now unused workarounds for lint.
Agreed by kettenis@, guenther@, matthew@.


Revision tags: OPENBSD_5_3_BASE
# 1.12 22-Aug-2012 pascal

Convert cpp | as rules in bsd.lib.mk and lib/libc/sys/Makefile.inc to pure cc
invocations. This allows us to use the compiler builtin define __PIC__ to check
for PIC/PIEness rather than passing -DPIC. Simplifies PIE work a lot.

ok matthew@, conceptually ok kurt@


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.11 23-Mar-2011 pirofti

Normalize sentinel. Use _MACHINE_*_H_ and _<ARCH>_*_H_ properly and consitently.

Discussed and okay drahn@. Okay deraadt@.


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.10 27-May-2007 art

We can now access curcpu() members through %fs instead of doing it
with the complicated and expensive macros.

tom@ ok


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.9 24-Apr-2006 drahn

Enable profling in asm if either PROF or GPROF is enabled, kernel profiling
builds with GPROF, libraries build with PROF. ok espie, miod


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE
# 1.8 13-Jun-2004 niklas

debranch SMP, have fun


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE SMP_SYNC_A SMP_SYNC_B
# 1.7 02-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: UBC_SYNC_A
# 1.6 17-Apr-2003 drahn

i386 changes to move to ELF. asm cleanup. Change MAXDSIZ to 512M for 1Gsep.
DARPA funded work.


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE UBC_BASE UBC_SYNC_B
# 1.5 05-Sep-2001 espie

branches: 1.5.4;
Use __GLOBAL_OFFSET_TABLE_ consistently.


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.4 05-Aug-2000 niklas

$OpenBSD$


Revision tags: OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE SMP_BASE kame_19991208
# 1.3 29-Jan-1998 niklas

branches: 1.3.10;
Make profiling work, mostly from NetBSD


Revision tags: OPENBSD_2_2_BASE
# 1.2 07-Sep-1997 mickey

fill text on align with nop, not 0


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.18 30-Aug-2022 miod

Remove long unused WARN_REFERENCES macro; idea guenther@, ok jsg@ jca@


# 1.17 27-Aug-2022 tb

Provide ENTRY_NB() for i386

ok guenther


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.16 11-Apr-2018 bluhm

More steps for i386 Meltdown fix:

- provide struct cpu_info_full
- prepare K-U sections
- reorganize interrupt, trap, syscall entry to use K-U trampoline
- prepare pmap for entering special mappings, the mappings are not
setup yet

This code will already trigger performance issues. We do more tlb
flushes, but we do not unmap the kernel yet. The latter
will be needed to prevent Meltdown.

from hshoexer@; input guenther@; OK mlarkin@ deraadt@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.15 29-Jun-2017 deraadt

kill RCSID macros; discussed with millert


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.14 30-Aug-2015 guenther

Provide remaining arch with END() macro for setting calculated size on
symbols in ASM

ok deraadt@ mpi@


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.13 28-Mar-2013 martynas

Add STRONG_ALIAS macros to be used from assembly code in libc and
libm. While at it, remove now unused workarounds for lint.
Agreed by kettenis@, guenther@, matthew@.


Revision tags: OPENBSD_5_3_BASE
# 1.12 22-Aug-2012 pascal

Convert cpp | as rules in bsd.lib.mk and lib/libc/sys/Makefile.inc to pure cc
invocations. This allows us to use the compiler builtin define __PIC__ to check
for PIC/PIEness rather than passing -DPIC. Simplifies PIE work a lot.

ok matthew@, conceptually ok kurt@


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.11 23-Mar-2011 pirofti

Normalize sentinel. Use _MACHINE_*_H_ and _<ARCH>_*_H_ properly and consitently.

Discussed and okay drahn@. Okay deraadt@.


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.10 27-May-2007 art

We can now access curcpu() members through %fs instead of doing it
with the complicated and expensive macros.

tom@ ok


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.9 24-Apr-2006 drahn

Enable profling in asm if either PROF or GPROF is enabled, kernel profiling
builds with GPROF, libraries build with PROF. ok espie, miod


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE
# 1.8 13-Jun-2004 niklas

debranch SMP, have fun


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE SMP_SYNC_A SMP_SYNC_B
# 1.7 02-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: UBC_SYNC_A
# 1.6 17-Apr-2003 drahn

i386 changes to move to ELF. asm cleanup. Change MAXDSIZ to 512M for 1Gsep.
DARPA funded work.


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE UBC_BASE UBC_SYNC_B
# 1.5 05-Sep-2001 espie

branches: 1.5.4;
Use __GLOBAL_OFFSET_TABLE_ consistently.


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.4 05-Aug-2000 niklas

$OpenBSD$


Revision tags: OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE SMP_BASE kame_19991208
# 1.3 29-Jan-1998 niklas

branches: 1.3.10;
Make profiling work, mostly from NetBSD


Revision tags: OPENBSD_2_2_BASE
# 1.2 07-Sep-1997 mickey

fill text on align with nop, not 0


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.17 27-Aug-2022 tb

Provide ENTRY_NB() for i386

ok guenther


Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.16 11-Apr-2018 bluhm

More steps for i386 Meltdown fix:

- provide struct cpu_info_full
- prepare K-U sections
- reorganize interrupt, trap, syscall entry to use K-U trampoline
- prepare pmap for entering special mappings, the mappings are not
setup yet

This code will already trigger performance issues. We do more tlb
flushes, but we do not unmap the kernel yet. The latter
will be needed to prevent Meltdown.

from hshoexer@; input guenther@; OK mlarkin@ deraadt@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.15 29-Jun-2017 deraadt

kill RCSID macros; discussed with millert


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.14 30-Aug-2015 guenther

Provide remaining arch with END() macro for setting calculated size on
symbols in ASM

ok deraadt@ mpi@


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.13 28-Mar-2013 martynas

Add STRONG_ALIAS macros to be used from assembly code in libc and
libm. While at it, remove now unused workarounds for lint.
Agreed by kettenis@, guenther@, matthew@.


Revision tags: OPENBSD_5_3_BASE
# 1.12 22-Aug-2012 pascal

Convert cpp | as rules in bsd.lib.mk and lib/libc/sys/Makefile.inc to pure cc
invocations. This allows us to use the compiler builtin define __PIC__ to check
for PIC/PIEness rather than passing -DPIC. Simplifies PIE work a lot.

ok matthew@, conceptually ok kurt@


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.11 23-Mar-2011 pirofti

Normalize sentinel. Use _MACHINE_*_H_ and _<ARCH>_*_H_ properly and consitently.

Discussed and okay drahn@. Okay deraadt@.


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.10 27-May-2007 art

We can now access curcpu() members through %fs instead of doing it
with the complicated and expensive macros.

tom@ ok


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.9 24-Apr-2006 drahn

Enable profling in asm if either PROF or GPROF is enabled, kernel profiling
builds with GPROF, libraries build with PROF. ok espie, miod


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE
# 1.8 13-Jun-2004 niklas

debranch SMP, have fun


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE SMP_SYNC_A SMP_SYNC_B
# 1.7 02-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: UBC_SYNC_A
# 1.6 17-Apr-2003 drahn

i386 changes to move to ELF. asm cleanup. Change MAXDSIZ to 512M for 1Gsep.
DARPA funded work.


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE UBC_BASE UBC_SYNC_B
# 1.5 05-Sep-2001 espie

branches: 1.5.4;
Use __GLOBAL_OFFSET_TABLE_ consistently.


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.4 05-Aug-2000 niklas

$OpenBSD$


Revision tags: OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE SMP_BASE kame_19991208
# 1.3 29-Jan-1998 niklas

branches: 1.3.10;
Make profiling work, mostly from NetBSD


Revision tags: OPENBSD_2_2_BASE
# 1.2 07-Sep-1997 mickey

fill text on align with nop, not 0


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.16 11-Apr-2018 bluhm

More steps for i386 Meltdown fix:

- provide struct cpu_info_full
- prepare K-U sections
- reorganize interrupt, trap, syscall entry to use K-U trampoline
- prepare pmap for entering special mappings, the mappings are not
setup yet

This code will already trigger performance issues. We do more tlb
flushes, but we do not unmap the kernel yet. The latter
will be needed to prevent Meltdown.

from hshoexer@; input guenther@; OK mlarkin@ deraadt@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.15 29-Jun-2017 deraadt

kill RCSID macros; discussed with millert


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.14 30-Aug-2015 guenther

Provide remaining arch with END() macro for setting calculated size on
symbols in ASM

ok deraadt@ mpi@


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.13 28-Mar-2013 martynas

Add STRONG_ALIAS macros to be used from assembly code in libc and
libm. While at it, remove now unused workarounds for lint.
Agreed by kettenis@, guenther@, matthew@.


Revision tags: OPENBSD_5_3_BASE
# 1.12 22-Aug-2012 pascal

Convert cpp | as rules in bsd.lib.mk and lib/libc/sys/Makefile.inc to pure cc
invocations. This allows us to use the compiler builtin define __PIC__ to check
for PIC/PIEness rather than passing -DPIC. Simplifies PIE work a lot.

ok matthew@, conceptually ok kurt@


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.11 23-Mar-2011 pirofti

Normalize sentinel. Use _MACHINE_*_H_ and _<ARCH>_*_H_ properly and consitently.

Discussed and okay drahn@. Okay deraadt@.


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.10 27-May-2007 art

We can now access curcpu() members through %fs instead of doing it
with the complicated and expensive macros.

tom@ ok


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.9 24-Apr-2006 drahn

Enable profling in asm if either PROF or GPROF is enabled, kernel profiling
builds with GPROF, libraries build with PROF. ok espie, miod


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE
# 1.8 13-Jun-2004 niklas

debranch SMP, have fun


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE SMP_SYNC_A SMP_SYNC_B
# 1.7 02-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: UBC_SYNC_A
# 1.6 17-Apr-2003 drahn

i386 changes to move to ELF. asm cleanup. Change MAXDSIZ to 512M for 1Gsep.
DARPA funded work.


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE UBC_BASE UBC_SYNC_B
# 1.5 05-Sep-2001 espie

branches: 1.5.4;
Use __GLOBAL_OFFSET_TABLE_ consistently.


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.4 05-Aug-2000 niklas

$OpenBSD$


Revision tags: OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE SMP_BASE kame_19991208
# 1.3 29-Jan-1998 niklas

branches: 1.3.10;
Make profiling work, mostly from NetBSD


Revision tags: OPENBSD_2_2_BASE
# 1.2 07-Sep-1997 mickey

fill text on align with nop, not 0


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_6_2_BASE
# 1.15 29-Jun-2017 deraadt

kill RCSID macros; discussed with millert


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.14 30-Aug-2015 guenther

Provide remaining arch with END() macro for setting calculated size on
symbols in ASM

ok deraadt@ mpi@


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.13 28-Mar-2013 martynas

Add STRONG_ALIAS macros to be used from assembly code in libc and
libm. While at it, remove now unused workarounds for lint.
Agreed by kettenis@, guenther@, matthew@.


Revision tags: OPENBSD_5_3_BASE
# 1.12 22-Aug-2012 pascal

Convert cpp | as rules in bsd.lib.mk and lib/libc/sys/Makefile.inc to pure cc
invocations. This allows us to use the compiler builtin define __PIC__ to check
for PIC/PIEness rather than passing -DPIC. Simplifies PIE work a lot.

ok matthew@, conceptually ok kurt@


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.11 23-Mar-2011 pirofti

Normalize sentinel. Use _MACHINE_*_H_ and _<ARCH>_*_H_ properly and consitently.

Discussed and okay drahn@. Okay deraadt@.


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.10 27-May-2007 art

We can now access curcpu() members through %fs instead of doing it
with the complicated and expensive macros.

tom@ ok


Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.9 24-Apr-2006 drahn

Enable profling in asm if either PROF or GPROF is enabled, kernel profiling
builds with GPROF, libraries build with PROF. ok espie, miod


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE
# 1.8 13-Jun-2004 niklas

debranch SMP, have fun


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE SMP_SYNC_A SMP_SYNC_B
# 1.7 02-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: UBC_SYNC_A
# 1.6 17-Apr-2003 drahn

i386 changes to move to ELF. asm cleanup. Change MAXDSIZ to 512M for 1Gsep.
DARPA funded work.


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE UBC_BASE UBC_SYNC_B
# 1.5 05-Sep-2001 espie

branches: 1.5.4;
Use __GLOBAL_OFFSET_TABLE_ consistently.


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE
# 1.4 05-Aug-2000 niklas

$OpenBSD$


Revision tags: OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE SMP_BASE kame_19991208
# 1.3 29-Jan-1998 niklas

branches: 1.3.10;
Make profiling work, mostly from NetBSD


Revision tags: OPENBSD_2_2_BASE
# 1.2 07-Sep-1997 mickey

fill text on align with nop, not 0


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision