History log of /openbsd-current/sys/arch/sh/include/_types.h
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.22 02-Jul-2023 cheloha

all platforms, kernel: remove __HAVE_CLOCKINTR symbol

Every platform made the clockintr switch at least six months ago.
The __HAVE_CLOCKINTR symbol is now redundant. Remove it.

Prompted by claudio@.

Link: https://marc.info/?l=openbsd-tech&m=168826181015032&w=2

"makes sense" mlarkin@


Revision tags: OPENBSD_7_3_BASE
# 1.21 06-Dec-2022 cheloha

sh, landisk: switch to clockintr

Patch review and testing by miod@.

Link: https://marc.info/?l=openbsd-tech&m=166776412003652&w=2

ok mlarkin@, probably ok miod@


Revision tags: OPENBSD_6_3_BASE 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 OPENBSD_7_2_BASE
# 1.20 05-Mar-2018 deraadt

#define _MAX_PAGE_SHIFT in MD _types.h as the maximum pagesize an arch
needs (looking at you sgi, but others required this before). This is for
the circumstances we need pagesize known at compile time, not getpagesize()
runtime. Use it for malloc storage sizes, for shm, and to set pthread stack
default sizes. The stack sizes were a mess, and pushing them towards
page-aligned is healthy move (which will also be needed by the coming
stack register checker)
ok guenther kettenis, discussion with stefan


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.19 26-Sep-2015 guenther

lint is dead and C99 may be old enough to drive a car: delete LONGLONG
comments

ok millert@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.18 19-Mar-2014 guenther

It's safe to assumed 'signed' exists


Revision tags: OPENBSD_5_5_BASE
# 1.17 18-Dec-2013 deraadt

Provide MI symbol _STACKALIGNBYTES


Revision tags: OPENBSD_5_4_BASE
# 1.16 13-Jul-2013 deraadt

unify register_t to long on all platforms
ok miod kettenis


# 1.15 05-Jul-2013 guenther

Take II, this time without flubbing off_t: : move several internal
type definitions that are the same across all archs from
<machine/_types.h> to <sys/_types.h>

ok deraadt@ kettenis@ otto@


# 1.14 04-Jul-2013 otto

backout previous; off_t must be signed and there might be other C++ API
breakage lurking; ok kettenis@


# 1.13 04-Jul-2013 guenther

To ease future changes, move several internal type definitions that are
the same across all archs from <machine/_types.h> to <sys/_types.h>

ok deraadt@


Revision tags: OPENBSD_5_3_BASE
# 1.12 05-Nov-2012 miod

unifdef -D __HAVE_TIMECOUNTER


# 1.11 08-Sep-2012 miod

Switch landisk to timecounters. Adapted from NetBSD.


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.10 15-Nov-2011 deraadt

label_t is the kernel setjmp buffer. It should simply be an array of
the right type, noone will ever fiddle with the internals.
discussed with jsing


# 1.9 08-Sep-2011 guenther

Provide namespace-safe alignment macros in <machine/_types.h>, with
compat names kept in <machine/param.h>. In <sys/socket.h>, pull
in <sys/_types.h> instead of the namespace polluting <machine/param.h>
and completely eliminate __CMSG_ALIGN, replaced by _ALIGN

ok deraadt@


# 1.8 08-Sep-2011 guenther

Make the INT_FAST*_{MIN,MAX} macros match the types they're defined to.
Since the underlying types of the int_fast types are set by machine/_types.h,
put internal macros in that same file and define the exposed
INT_FAST*_{MIN,MAX} macros from those.

ok millert@, kettenis@


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.7 04-Nov-2009 kettenis

Get rid of __HAVE_GENERIC_SOFT_INTERRUPTS now that all our platforms support it.

ok jsing@, miod@


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.6 21-Jul-2008 martynas

- add proper double_t and float_t definitions for each arch
- math.h shouldn't define FLT_EVAL_METHOD, but float.h should (per
C99). remove from math.h, and add proper definitions in float.h
ok millert@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.5 16-May-2007 art

The world of __HAVEs and __HAVE_NOTs is reducing. All architectures
have cpu_info now, so kill the option.

eyeballed by jsg@ and grange@


# 1.4 15-May-2007 art

Remove the MI implementation of mutexes and remove the __HAVE_MUTEX
option. Every architecture implements mutexes now.


# 1.3 14-May-2007 art

Switch sh to __HAVE_CPUINFO. The least possible effort for now.

deraadt@ ok


# 1.2 01-May-2007 miod

Simple monoprocessor mutex implementation, faster than the MI code, four left
to go.


# 1.1 06-Oct-2006 miod

branches: 1.1.1;
Initial revision


# 1.21 06-Dec-2022 cheloha

sh, landisk: switch to clockintr

Patch review and testing by miod@.

Link: https://marc.info/?l=openbsd-tech&m=166776412003652&w=2

ok mlarkin@, probably ok miod@


Revision tags: OPENBSD_6_3_BASE 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 OPENBSD_7_2_BASE
# 1.20 05-Mar-2018 deraadt

#define _MAX_PAGE_SHIFT in MD _types.h as the maximum pagesize an arch
needs (looking at you sgi, but others required this before). This is for
the circumstances we need pagesize known at compile time, not getpagesize()
runtime. Use it for malloc storage sizes, for shm, and to set pthread stack
default sizes. The stack sizes were a mess, and pushing them towards
page-aligned is healthy move (which will also be needed by the coming
stack register checker)
ok guenther kettenis, discussion with stefan


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.19 26-Sep-2015 guenther

lint is dead and C99 may be old enough to drive a car: delete LONGLONG
comments

ok millert@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.18 19-Mar-2014 guenther

It's safe to assumed 'signed' exists


Revision tags: OPENBSD_5_5_BASE
# 1.17 18-Dec-2013 deraadt

Provide MI symbol _STACKALIGNBYTES


Revision tags: OPENBSD_5_4_BASE
# 1.16 13-Jul-2013 deraadt

unify register_t to long on all platforms
ok miod kettenis


# 1.15 05-Jul-2013 guenther

Take II, this time without flubbing off_t: : move several internal
type definitions that are the same across all archs from
<machine/_types.h> to <sys/_types.h>

ok deraadt@ kettenis@ otto@


# 1.14 04-Jul-2013 otto

backout previous; off_t must be signed and there might be other C++ API
breakage lurking; ok kettenis@


# 1.13 04-Jul-2013 guenther

To ease future changes, move several internal type definitions that are
the same across all archs from <machine/_types.h> to <sys/_types.h>

ok deraadt@


Revision tags: OPENBSD_5_3_BASE
# 1.12 05-Nov-2012 miod

unifdef -D __HAVE_TIMECOUNTER


# 1.11 08-Sep-2012 miod

Switch landisk to timecounters. Adapted from NetBSD.


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.10 15-Nov-2011 deraadt

label_t is the kernel setjmp buffer. It should simply be an array of
the right type, noone will ever fiddle with the internals.
discussed with jsing


# 1.9 08-Sep-2011 guenther

Provide namespace-safe alignment macros in <machine/_types.h>, with
compat names kept in <machine/param.h>. In <sys/socket.h>, pull
in <sys/_types.h> instead of the namespace polluting <machine/param.h>
and completely eliminate __CMSG_ALIGN, replaced by _ALIGN

ok deraadt@


# 1.8 08-Sep-2011 guenther

Make the INT_FAST*_{MIN,MAX} macros match the types they're defined to.
Since the underlying types of the int_fast types are set by machine/_types.h,
put internal macros in that same file and define the exposed
INT_FAST*_{MIN,MAX} macros from those.

ok millert@, kettenis@


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.7 04-Nov-2009 kettenis

Get rid of __HAVE_GENERIC_SOFT_INTERRUPTS now that all our platforms support it.

ok jsing@, miod@


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.6 21-Jul-2008 martynas

- add proper double_t and float_t definitions for each arch
- math.h shouldn't define FLT_EVAL_METHOD, but float.h should (per
C99). remove from math.h, and add proper definitions in float.h
ok millert@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.5 16-May-2007 art

The world of __HAVEs and __HAVE_NOTs is reducing. All architectures
have cpu_info now, so kill the option.

eyeballed by jsg@ and grange@


# 1.4 15-May-2007 art

Remove the MI implementation of mutexes and remove the __HAVE_MUTEX
option. Every architecture implements mutexes now.


# 1.3 14-May-2007 art

Switch sh to __HAVE_CPUINFO. The least possible effort for now.

deraadt@ ok


# 1.2 01-May-2007 miod

Simple monoprocessor mutex implementation, faster than the MI code, four left
to go.


# 1.1 06-Oct-2006 miod

branches: 1.1.1;
Initial revision


# 1.20 05-Mar-2018 deraadt

#define _MAX_PAGE_SHIFT in MD _types.h as the maximum pagesize an arch
needs (looking at you sgi, but others required this before). This is for
the circumstances we need pagesize known at compile time, not getpagesize()
runtime. Use it for malloc storage sizes, for shm, and to set pthread stack
default sizes. The stack sizes were a mess, and pushing them towards
page-aligned is healthy move (which will also be needed by the coming
stack register checker)
ok guenther kettenis, discussion with stefan


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.19 26-Sep-2015 guenther

lint is dead and C99 may be old enough to drive a car: delete LONGLONG
comments

ok millert@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.18 19-Mar-2014 guenther

It's safe to assumed 'signed' exists


Revision tags: OPENBSD_5_5_BASE
# 1.17 18-Dec-2013 deraadt

Provide MI symbol _STACKALIGNBYTES


Revision tags: OPENBSD_5_4_BASE
# 1.16 13-Jul-2013 deraadt

unify register_t to long on all platforms
ok miod kettenis


# 1.15 05-Jul-2013 guenther

Take II, this time without flubbing off_t: : move several internal
type definitions that are the same across all archs from
<machine/_types.h> to <sys/_types.h>

ok deraadt@ kettenis@ otto@


# 1.14 04-Jul-2013 otto

backout previous; off_t must be signed and there might be other C++ API
breakage lurking; ok kettenis@


# 1.13 04-Jul-2013 guenther

To ease future changes, move several internal type definitions that are
the same across all archs from <machine/_types.h> to <sys/_types.h>

ok deraadt@


Revision tags: OPENBSD_5_3_BASE
# 1.12 05-Nov-2012 miod

unifdef -D __HAVE_TIMECOUNTER


# 1.11 08-Sep-2012 miod

Switch landisk to timecounters. Adapted from NetBSD.


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.10 15-Nov-2011 deraadt

label_t is the kernel setjmp buffer. It should simply be an array of
the right type, noone will ever fiddle with the internals.
discussed with jsing


# 1.9 08-Sep-2011 guenther

Provide namespace-safe alignment macros in <machine/_types.h>, with
compat names kept in <machine/param.h>. In <sys/socket.h>, pull
in <sys/_types.h> instead of the namespace polluting <machine/param.h>
and completely eliminate __CMSG_ALIGN, replaced by _ALIGN

ok deraadt@


# 1.8 08-Sep-2011 guenther

Make the INT_FAST*_{MIN,MAX} macros match the types they're defined to.
Since the underlying types of the int_fast types are set by machine/_types.h,
put internal macros in that same file and define the exposed
INT_FAST*_{MIN,MAX} macros from those.

ok millert@, kettenis@


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.7 04-Nov-2009 kettenis

Get rid of __HAVE_GENERIC_SOFT_INTERRUPTS now that all our platforms support it.

ok jsing@, miod@


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.6 21-Jul-2008 martynas

- add proper double_t and float_t definitions for each arch
- math.h shouldn't define FLT_EVAL_METHOD, but float.h should (per
C99). remove from math.h, and add proper definitions in float.h
ok millert@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.5 16-May-2007 art

The world of __HAVEs and __HAVE_NOTs is reducing. All architectures
have cpu_info now, so kill the option.

eyeballed by jsg@ and grange@


# 1.4 15-May-2007 art

Remove the MI implementation of mutexes and remove the __HAVE_MUTEX
option. Every architecture implements mutexes now.


# 1.3 14-May-2007 art

Switch sh to __HAVE_CPUINFO. The least possible effort for now.

deraadt@ ok


# 1.2 01-May-2007 miod

Simple monoprocessor mutex implementation, faster than the MI code, four left
to go.


# 1.1 06-Oct-2006 miod

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.19 26-Sep-2015 guenther

lint is dead and C99 may be old enough to drive a car: delete LONGLONG
comments

ok millert@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.18 19-Mar-2014 guenther

It's safe to assumed 'signed' exists


Revision tags: OPENBSD_5_5_BASE
# 1.17 18-Dec-2013 deraadt

Provide MI symbol _STACKALIGNBYTES


Revision tags: OPENBSD_5_4_BASE
# 1.16 13-Jul-2013 deraadt

unify register_t to long on all platforms
ok miod kettenis


# 1.15 05-Jul-2013 guenther

Take II, this time without flubbing off_t: : move several internal
type definitions that are the same across all archs from
<machine/_types.h> to <sys/_types.h>

ok deraadt@ kettenis@ otto@


# 1.14 04-Jul-2013 otto

backout previous; off_t must be signed and there might be other C++ API
breakage lurking; ok kettenis@


# 1.13 04-Jul-2013 guenther

To ease future changes, move several internal type definitions that are
the same across all archs from <machine/_types.h> to <sys/_types.h>

ok deraadt@


Revision tags: OPENBSD_5_3_BASE
# 1.12 05-Nov-2012 miod

unifdef -D __HAVE_TIMECOUNTER


# 1.11 08-Sep-2012 miod

Switch landisk to timecounters. Adapted from NetBSD.


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.10 15-Nov-2011 deraadt

label_t is the kernel setjmp buffer. It should simply be an array of
the right type, noone will ever fiddle with the internals.
discussed with jsing


# 1.9 08-Sep-2011 guenther

Provide namespace-safe alignment macros in <machine/_types.h>, with
compat names kept in <machine/param.h>. In <sys/socket.h>, pull
in <sys/_types.h> instead of the namespace polluting <machine/param.h>
and completely eliminate __CMSG_ALIGN, replaced by _ALIGN

ok deraadt@


# 1.8 08-Sep-2011 guenther

Make the INT_FAST*_{MIN,MAX} macros match the types they're defined to.
Since the underlying types of the int_fast types are set by machine/_types.h,
put internal macros in that same file and define the exposed
INT_FAST*_{MIN,MAX} macros from those.

ok millert@, kettenis@


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE
# 1.7 04-Nov-2009 kettenis

Get rid of __HAVE_GENERIC_SOFT_INTERRUPTS now that all our platforms support it.

ok jsing@, miod@


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.6 21-Jul-2008 martynas

- add proper double_t and float_t definitions for each arch
- math.h shouldn't define FLT_EVAL_METHOD, but float.h should (per
C99). remove from math.h, and add proper definitions in float.h
ok millert@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.5 16-May-2007 art

The world of __HAVEs and __HAVE_NOTs is reducing. All architectures
have cpu_info now, so kill the option.

eyeballed by jsg@ and grange@


# 1.4 15-May-2007 art

Remove the MI implementation of mutexes and remove the __HAVE_MUTEX
option. Every architecture implements mutexes now.


# 1.3 14-May-2007 art

Switch sh to __HAVE_CPUINFO. The least possible effort for now.

deraadt@ ok


# 1.2 01-May-2007 miod

Simple monoprocessor mutex implementation, faster than the MI code, four left
to go.


# 1.1 06-Oct-2006 miod

branches: 1.1.1;
Initial revision