Commit b9d50909 authored by Stewart Brodie's avatar Stewart Brodie
Browse files

Documentation update ONLY.

  The example code showing how to re-enable IRQs in an Internet event
    handler used an obsolete method - it now uses a working method.
  No code changes - no need to products to take this version.

Version 5.39. Tagged as 'TCPIPLibs-5_39'
parent 1ed69c01
Acorn TCP/IP libraries version 5.30
Acorn TCP/IP libraries version 5.39
These libraries are an update to the libraries described in chapter 123 of the PRM
......@@ -2333,17 +2333,10 @@ If you are to do any processing on this event, you should enable interrupts.
Interrupts are only disabled on entry because it is an unavoidable feature of
OS_GenerateEvent. You should, however, disable interrupts again before
returning, as other EventV claimants may expect interrupts to be disabled.
If you are writing a module in C, then the following will suffice,
as the APCS guarantees that the PSR flags, including the interrupt status,
will be restored on exit from a function:
If you are writing a module in C, then the following will suffice:
int event_handler(_kernel_swi_regs *r)
int handle_internet_event(_kernel_swi_regs *r)
if (r->r[0] != Internet_Event || r->r[1] != Socket_Async_Event)
return 1;
if (r->r[2] == sock_data)
......@@ -2357,7 +2350,19 @@ will be restored on exit from a function:
return 1;
int event_handler(_kernel_swi_regs *r)
int result = 1;
if (r->r[0] == Internet_Event && r->r[1] == Socket_Async_Event)
result = handle_internet_event(r);
return result;
Note that the Internet module does not care whether or not the event is
claimed, but if the event is for one of your sockets you should generally
claim the event so that other EventV claimants are not called unnecessarily.
/* (5.38)
/* (5.39)
* This file is automatically maintained by srccommit, do not edit manually.
#define Module_MajorVersion_CMHG 5.38
#define Module_MajorVersion_CMHG 5.39
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 04 May 2000
#define Module_Date_CMHG 20 Mar 2001
#define Module_MajorVersion "5.38"
#define Module_Version 538
#define Module_MajorVersion "5.39"
#define Module_Version 539
#define Module_MinorVersion ""
#define Module_Date "04 May 2000"
#define Module_Date "20 Mar 2001"
#define Module_FullVersion "5.38"
#define Module_ApplicationDate2 "20-Mar-01"
#define Module_ApplicationDate4 "20-Mar-2001"
#define Module_ComponentName "TCPIPLibs"
#define Module_ComponentPath "RiscOS/Sources/Lib/TCPIPLibs"
#define Module_FullVersion "5.39"
#define Module_HelpVersion "5.39 (20 Mar 2001)"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment