[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #25608] Unable to use NO_SYS=1 and SYS_LIGHTWEIGHT_PRO
From: |
Jim Pettinato |
Subject: |
[lwip-devel] [bug #25608] Unable to use NO_SYS=1 and SYS_LIGHTWEIGHT_PROT=1 |
Date: |
Tue, 03 Mar 2009 14:51:04 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 |
Follow-up Comment #4, bug #25608 (project lwip):
I have the SYS_ARCH_PROTECT macros defined in my lwipopts.h file. It works
fine, though I agree that it would be 'cleaner' if they were in sys_arch.h.
-------------------------------------------------------------
#define NO_SYS 1
#include "ei_di_in.h" // prototype for setintlvl() function
// using int masking (no mutexes, etc)
#define SYS_LIGHTWEIGHT_PROT 1
#define SYS_ARCH_DECL_PROTECT(lev) int lev;
// Define SYS_ARCH_PROTECT to mask just ETH0 interrupts
#define SYS_ARCH_PROTECT(lev) lev = setintlvl(2);
#define SYS_ARCH_UNPROTECT(lev) setintlvl(lev);
-------------------------------------------------------------
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?25608>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #25608] Unable to use NO_SYS=1 and SYS_LIGHTWEIGHT_PROT=1, Simon Goldschmidt, 2009/03/01
- [lwip-devel] [bug #25608] Unable to use NO_SYS=1 and SYS_LIGHTWEIGHT_PROT=1, Bill Auerbach, 2009/03/03
- [lwip-devel] [bug #25608] Unable to use NO_SYS=1 and SYS_LIGHTWEIGHT_PROT=1,
Jim Pettinato <=
- [lwip-devel] [bug #25608] Unable to use NO_SYS=1 and SYS_LIGHTWEIGHT_PROT=1, Bill Auerbach, 2009/03/03
- [lwip-devel] [bug #25608] Unable to use NO_SYS=1 and SYS_LIGHTWEIGHT_PROT=1, Jim Pettinato, 2009/03/03
- [lwip-devel] [bug #25608] Unable to use NO_SYS=1 and SYS_LIGHTWEIGHT_PROT=1, Bill Auerbach, 2009/03/03
- [lwip-devel] [bug #25608] Unable to use NO_SYS=1 and SYS_LIGHTWEIGHT_PROT=1, Jim Pettinato, 2009/03/03
- [lwip-devel] [bug #25608] Unable to use NO_SYS=1 and SYS_LIGHTWEIGHT_PROT=1, Kieran Mansley, 2009/03/03
- [lwip-devel] [bug #25608] Unable to use NO_SYS=1 and SYS_LIGHTWEIGHT_PROT=1, Bill Auerbach, 2009/03/03
- [lwip-devel] [bug #25608] Unable to use NO_SYS=1 and SYS_LIGHTWEIGHT_PROT=1, Bill Auerbach, 2009/03/03
- [lwip-devel] [bug #25608] Unable to use NO_SYS=1 and SYS_LIGHTWEIGHT_PROT=1, Simon Goldschmidt, 2009/03/03